Re: [greenstone-users] help me with the external links !

From Richard Managh
DateTue, 27 Mar 2007 10:31:07 +1200
Subject Re: [greenstone-users] help me with the external links !
In-Reply-To (BAY124-W273DF9C926E47A53A37588C9780-phx-gbl)
Hi Israel,

If im interpretting your question correctly, you want to add pdf documents to your collection as html files and include a link to the original pdf document in the displayed html file. However, im going to show you how to add a link to the original pdf with your documents when they are displayed as a list.

You probably need to add the pdf to the html file as an associated file, then you will have metadata with which to generate an internal greenstone link to your pdfs.

remove PDFplug from your list of plugins, as we will use htmlplug to deal with the pdfs

add

" -associate_ext pdf"

 to the HTMLPlug options

so you might have something like:

plugin HTMLPlug -associate_ext pdf

in your collect.cfg file for your collection.

This associate_ext pdf option for html plug, tells greenstone to add pdf's it finds with the same base filename as associated files to html files.

so if you had test1.html in your import directory, and wanted to add a pdf as an associated file to it you would need to name it test1.pdf and put it in that same directory.

When greenstone builds the collection  with this option, for the documents that have associated pdf's, 3 metadata items are generated. They are:
pdf.
pdf.assoclink
equivlink

you could use pdf.assoclink in a format statement, (for example vlist) to display the links to your html files associated pdf's

For example, if you had a format statement as follows

format VList "<td valign=top>[link][icon][/link]</td><td valign=top>[h\ighlight]{Or}{[Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>_textdate_[Date]}{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source],<br>_texts\ource_[Source]}</small></i></td>"

You might add {If}{[pdf.assoclink],[pdf.assoclink]} to it to display the link to the pdf.

format VList "<td valign=top>[link][icon][/link] {If}{[pdf.assoclink],[pdf.assoclink]}</td><td valign=top> [h\ighlight]{Or}{[Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>_textdate_[Date]}{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source],<br>_texts\ource_[Source]}</small></i></td>"

For more information about formatting the output of your collection please see:
http://greenstone.sourceforge.net/wiki/index.php/How_to_format_the_output_of_your_collection


Hope this helps,


Richard.
-- 
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com



Israel Abraham Flores Cruz wrote:
Hi! I´ve been trying implement a collection with pdf,word & html files, but  I have a pair of troubles:
-in the pdf files I can´t get obtain the images (altough I´ve installed Ghostscript & ImageMagick),in fact
 I´ve desist to use pdf files in this collection,because I´ve lose the format this files too),instead of use these  files, I´ve changed this  files with a tool called "ABBYY TRANSFORMER" that change the pdf files to html & doc(file's word) but the last have a little diferent format, theraby , I make up my mind use only html files , but I need to  the final users can get obtain a copy of any file,then I only,I'll use html files and my question is, how can I activate a link in all html files to obtain a copy in pdf files that i don't include in this collect,but I've only obtain in a test collection External link , & I don't get my goal!,(I've been trying to include zip files, but GSDL ,it only give off this pdf's & I come back to my trouble, what option i need to use in the html plug in or how can obtain my goal, thank you!(I accept any suggest)


Explore the seven wonders of the world Learn more!

_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users