[greenstone-users] copying metadata / internal nodes

From Daniel Mulholland
DateSun, 19 Jun 2005 12:19:31 +1200
Subject [greenstone-users] copying metadata / internal nodes



I’ve just recently begun using Greenstone 2.60 to develop a collection of philosophy texts. So far I’m quite impressed by Greenstone, but my command of the language is rather inadequate. Please forgive the following newby questions:


(1) When using the GLI, I drag in my documents, and assign them metadata. If I then update an original document and drag it through to the GLI, is there any way of copying metadata from one document to another?


(2) Most of my documents will be in either html or pdf format. For the Titles of the documents, I have an AZList classifier with the following in its format string (CL1VList):


<td valign=top>[link]{If}{[ex.FileFormat] eq "HTML",[icon]}[/link]

[ex.srclink]{If}{[ex.FileFormat] eq "PDF",[ex.srcicon]}[/ex.srclink] </td>


The idea behind this is that for PDF files, I only want the user to be able to download the pdf file (which is image with text metalayer). This works fine for the Title, but I have other classifiers where this style of formatting stops them from functioning.


For example, I have a hierarchy classifier by the Type of material. This would typically be Journal, Magazine, etc. down to the name of the Magazine/Journal followed by the title and the documents inside it. When I replace the existing linking and icon information from:


<td valign=top>[link][icon][/link]</td>

<td valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>


to the above and look at the collection, I find I only get the top layer title (Magazine) without any icons leading to lower layers. I suspect my formatting statement is interfering with internal nodes, but I’m unsure how to proceed. I think what I want is a way so that my format statements don’t apply to internal nodes, but I don’t know how to specify this.