[greenstone-users] how to view the original file?

From Greenstone Team
DateTue Jul 12 19:51:00 2011
Subject [greenstone-users] how to view the original file?
In-Reply-To (CAKiObEY-VCmERgZS7A=sDvNdWE5Tii0basJJtZk37-txc7t=BQ-mail-gmail-com)
Hi again Farzaneh,

See also the other email I sent you today on your earlier questions.

Concerning your other questions:

> 2) I have created username and password for my users, but I don't
know how to apply them to the files and folders so that certain users
can access them.

You can password protect documents as well as entire collections. Please
consult http://wiki.greenstone.org/wiki/index.php/Authentication

>1) I want my users can see and access the original files (.pdf .doc
.zip ...) instead of converting them to html.
so that they could save the file.
Where should I apply this setting?

By default, Greenstone converts PDFs, Docs and other recognised
documents that extractable information in the form of text into HTML,
which allows for searchable documents. However, by default again,
Greenstone not only provides a link to the HTML version it generated,
but also links to the original document like PDF, Doc, RTF.

To confirm this for yourself, try the following:
If you build a new, simple test collection with just 2 PDFs and do not
change any settings in Greenstone but go straight to preview it after
building it, you will see that the default Titles and Filenames browse
facilities give you access to both the html document and the original
source document (PDF in our example).

This is handy since Greenstone indexes the extracted text and highlights
them in the HTML.

In order to make the icon to the HTML version of your documents go away
when your Greenstone collection documents are served, go to the "Format"
panel of GLI, choose "VList" under "Format Features", then in the text
area at the bottom (titled "HTML Format String"), remove the first line,
so it no longer says:

<td valign="top">[link][icon][/link]</td>
<td
valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td valign="top">[highlight]
{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}
[/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>

And instead says:

<td
valign="top">[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td valign="top">[highlight]
{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}
[/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>

This way, though Greenstone still extracts text from your document and
constructs a HTML version of the original document from it, it won't be
visible to your users, who will only see the PDF or Doc versions of the
documents in your collection. It also means they can still use
Greenstone's Search feature to work out which documents contain their
search terms.

Regards,
Anupama

Farzaneh Ghayour wrote:
> Hi,
>
> I have installed Greenstone 2 successfully (Thank to this mailing list
> guys). Now I have 2 questions:
>
> 1)
> I want my users can see and access the original files (.pdf .doc .zip
> ...) instead of converting them to html.
> so that they could save the file.
> Where should I apply this setting?
>
> 2)
> I have created username and password for my users, but I don't know
> how to apply them to the files and folders so that certain users can
> access them.
>
>
> I couldn't find a manual answering such questions.
> Thanks in advance,
>
>
>
> --
> Farzaneh Ghayour
> M.Sc. Student , Software Engineering
> Department of Computer Engineering
> Sharif University of Technology
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>