Re: [greenstone-users] Examples of use of CSVPlug and/or ExcelPlug

From Michael Dewsnip
DateFri, 25 Aug 2006 09:46:50 +1200
Subject Re: [greenstone-users] Examples of use of CSVPlug and/or ExcelPlug
In-Reply-To (031a01c6c792$ce41cfd0$5c016c0a-hq-prl-ab-ca)
Hi Michael,

I've attached an example .csv file for assigning metadata to two
documents in the Greenstone Demo collection. The first line contains the
metadata element names, and subsequent lines contain the metadata values.

The Filename value specifies which file to assign the metadata to. In
your case you don't have any files -- it's all metadata. The solution in
this case is to create dummy (empty) .nul files, one per record, and use
the name of these files for the Filename value. You will need both
"plugin CSVPlug" and "plugin NULPlug" in your collection configuration.

Hope this helps,

Michael

Michael Silver wrote:

>Hello,
>
>Still working away on my little problem. I'm making progress, but I'm having
>difficulty using the CSVPlug and ExcelPlug plugins. I haven't found a
>tutorial or sample collection in my searches on the web and in the wiki. Can
>anyone point me towards one?
>
>Thank you,
>Michael
>
>Michael Silver, Network Administrator
>Parkland Regional Library
>5404 56 Avenue Lacombe, AB T4L 1G1
>Phone: 403.782.3850 Fax: 403.782.4650
>http://www.prl.ab.ca/
>
>
>
>
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>
>


<<attachment>>
Type: text/x-comma-separated-values
Filename: demo.csv

Filename,dls.Title,dls.Language,dls.Subject

b17mie/b17mie.htm,Microlivestock - Little-Known Small Animals with a Promising Economic Future (b17mie),English,"Animal Husbandry and Animal Product Processing|Other animals (micro-livestock, little known animals, silkworms, reptiles, frogs, snails, game, etc.)"
b18ase/b18ase.htm,Little Known Asian Animals With a Promising Economic Future (b18ase),English,"Animal Husbandry and Animal Product Processing|Other animals (micro-livestock, little known animals, silkworms, reptiles, frogs, snails, game, etc.)"


<<attachment>>
Type: text/plain
Filename: collect.cfg

creatorgreenstone&#64;cs.waikato.ac.nz
maintainergreenstone@cs.waikato.ac.nz
publictrue

betafalse

indexessection:text section:Title document:text

pluginGAPlug
pluginCSVPlug
pluginHTMLPlug -description_tags
pluginArcPlug
pluginRecPlug -use_metadata_files

classifyHierarchy -metadata dls.Subject -sort dls.Title -buttonname Subject
classifyHierarchy -metadata dls.AZList -hlist_at_top -sort dls.Title -buttonname Title
classifyHierarchy -metadata dls.Organization -sort dls.Title -buttonname Organization
classifyHierarchy -metadata dls.Keyword -sort dls.Title -buttonname Howto

# To build this collection using the List clasifier for the Howto
# listing (as shown in the Greenstone Developer's Guide) you should
# uncomment the following two lines and comment out the line above
# before rebuilding.
#classify List -metadata dls.Keyword -buttonname Howto
#format CL4VList "<br>[link][dls.Keyword][/link]"

format SearchVList "<td valign=top>[link][icon][/link]</td><td>{If}{[parent(All': '):Title],[parent(All': '):Title]:}[link][Title][/link]</td>"
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>source ref: [Source]}</small></i></td>"

format DocumentText "<h3>[Title]</h3>\n\n<p>[Text]"
format DocumentImages true
format DocumentButtons "Expand Text|Expand Contents|Detach|Highlight"

format DateList "<td>[link][icon][/link]</td><td>[highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight]</td><td>[Date]</td>"

format HList "[link][highlight][Title][/highlight][/link]"

format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"

collectionmetaiconcollectionsmall [l=en] "/gsdl/collect/demo/images/en/demosm.gif"
collectionmetaiconcollection [l=en] "/gsdl/collect/demo/images/en/demo.gif"

collectionmetaiconcollectionsmall [l=fr] "/gsdl/collect/demo/images/fr/demosm.gif"
collectionmetaiconcollection [l=fr] "/gsdl/collect/demo/images/fr/demo.gif"

collectionmetaiconcollectionsmall [l=es] "/gsdl/collect/demo/images/es/demosm.gif"
collectionmetaiconcollection [l=es] "/gsdl/collect/demo/images/es/demo.gif"

collectionmetaiconcollectionsmall [l=ru] "/gsdl/collect/demo/images/ru/demosm.gif"
collectionmetaiconcollection [l=ru] "/gsdl/collect/demo/images/ru/demo.gif"

# -- English strings ----------------
collectionmetacollectionname [l=en] "Greenstone demo"
collectionmetacollectionextra [l=en] "This is a demonstration collection for the Greenstone digital library software. It contains a small subset (11 documents) of the Humanitarian and Development Libraries."

collectionmeta.section:text [l=en] "chapters"
collectionmeta.section:Title [l=en] "section titles"
collectionmeta.document:text [l=en] "entire documents"

# -- French strings ----------------
collectionmetacollectionname [l=fr] "€mo Greenstone"
collectionmetacollectionextra [l=fr] "Il s'agit d'une collection de €monstration pour le logiciel Greenstone. Elle contient seulement un petit€chantillon des Bibliot€ques humanitaires pour le €veloppement (11 documents)."

collectionmeta.section:text [l=fr] "chapitres"
collectionmeta.section:Title [l=fr] "titres des sections"
collectionmeta.document:text [l=fr] "documents entiers"

# -- Spanish strings ----------------
collectionmetacollectionname [l=es] "Colecc€n de muestra Greenstone"
collectionmetacollectionextra [l=es] "Esta es una colecc€n de demostrac€n del programa Greenstone. Contiene un pequ€o subconjunto (11 documentos) de las Bibliotecas Humanitarias para el Desarrollo."

collectionmeta.section:text [l=es] "ca€tulos"
collectionmeta.section:Title [l=es] "€tulos de las secciones"
collectionmeta.document:text [l=es] "documentos enteros"

# -- Russian strings ----------------
collectionmetacollectionname [l=ru] "демонстрационный пример Greenstone"
collectionmetacollectionextra [l=ru] "Это - демонстрационная коллекция программного обеспечения цифровой библиотеки Greenstone. Она содержит небольшой поднабор (11 документов) Гуманитарной библиотеки и Библиотеки развития."

collectionmeta.section:text [l=ru] "Главы"
collectionmeta.section:Title [l=ru] "Названия разделов"
collectionmeta.document:text [l=ru] "Полные документы"

# -- Armenian strings ----------------
collectionmetacollectionextra [l=hy] "Սա Գրինսթոուն թվային գրադարանի ցուցադրական նմուշ է։ Այն պարունակում է հասարակագիտական և զարգացման բնագավառների 11 փաստաթղթերի հավաքածու"

collectionmeta.section:text [l=hy] "Բաժիններ"
collectionmeta.section:Title [l=hy] "Բաժինների վերնագրեր"
collectionmeta.document:text [l=hy] "ողջ փաստաթուղթը"

# -- Finnish strings ----------------
collectionmetacollectionextra [l=fi] "€€ on esimerkkikokoelma, joka on tehty Greenstone digitaalisen kirjaston ohjelmistoa varten. Se si€€€ osan (11 dokumenttia) Human€€rises€ kirjastosta ja Kehityst€kirjastosta."

collectionmeta.section:text [l=fi] "kappaleita"
collectionmeta.section:Title [l=fi] "osien otsakkeita"
collectionmeta.document:text [l=fi] "koko dokumentteja"