Re: [greenstone-users] Greenstone and BibTex..more...

From Michael Dewsnip
DateMon, 22 Sep 2003 10:48:56 +1200
Subject Re: [greenstone-users] Greenstone and BibTex..more...
In-Reply-To (20030918194008-UKYZ28647-fep04-svc-swip-net-fep04-svc-swip-net)
Hi Lars,

You've done everything right... except the name of the metadata element is wrong! The element is actually named "PublisherAddress", not "Address" (not sure why).

There are a few ways to check the names of the metadata elements used. Probably the easiest is to look at one of the doc.xml files created in the "archives" directory - this will show you
exactly what is being indexed and the metadata assigned to each file/record.

In this case the metadata element has had an index built on it for searching, so you can also look at the build.cfg file in the "index" directory. Looking at the code for the BibTex plugin
(BibTexPlug.pm, in the "perllib/plugins" folder) also shows the mapping between BibTex field name and metadata element name.

Anyway, change the "[Address]"s to "[PublisherAddress]"s in your format statement and you should be fine.

Regards,

Michael

pipeconsult@get2net.dk wrote:

> Hi there,
>
> In my Bibliography which is cfg-file based on the Colt-Collection, I would like my records to show the address of the publisher, so I have added the following line in the collect.cfg - file:
>
> {If}{[Address],<tr><td><b>Address:</b></td><td>[Address]</td></tr>}
>
> It does not show in the record in the bibliography except in the lower part where all the 'raw' BibTex format can be seen anyway !!!
>
> How do I get the address info. to show in the 'upper' section of the record too ??
>
> Here is an example of a record which should have shown the Address:
>
> @inbook{paii-smith-43-Bobek,
> author = {Bobek, H.},
> booktitle = {The Cambridge History of Iran, The Land of Iran. },
> title = {Vegetation},
> year = {1968},
> publisher = {University Press},
> pages = {280-293},
> volume = {1},
> address = {Cambridge},
> editor = {Fisher, W.B.}
> }
>
> ....but it doesn't
>
> The funny thing is that I can search for specific address data by the dropdown menu if I chose 'PublisherAddress' ....so the field and the data must be indexed one way or the other !!!
> I just don't get it !!!
>
> thanks
>
> ;-} Lars N. Clement Bertelsen
>
>
>
> -------------------------------------------------
> WebMail fra Tele2 http://www.tele2.dk
> -------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users