| From | Richard Managh |
| Date | Tue, 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>[highlight]{Or}{[Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>publication date: [Date]}{If}{[NumPages],<br>no. of pages: [NumPages]}{If}{[Source],<br>_textsource_[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> [highlight]{Or}{[Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>publication date: [Date]}{If}{[NumPages],<br>no. of pages: [NumPages]}{If}{[Source],<br>_textsource_[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:
| |