source: collections/documented-examples/trunk/marc-e/etc/collect.cfg@ 19359

Last change on this file since 19359 was 19359, checked in by anna, 15 years ago

Spanish translations of the documented example collections. Many thanks to Diego Spano.

  • Property svn:executable set to *
File size: 13.5 KB
RevLine 
[18738]1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mgpp
6
[19209]7indexes text dc.Title
[18738]8defaultindex text
9
10levels document
11
[19060]12plugin GreenstoneXMLPlugin
[19357]13plugin MARCPlugin -OIDtype incremental
[19060]14plugin MetadataXMLPlugin
15plugin ArchivesInfPlugin
16plugin DirectoryPlugin
[18738]17
[19209]18classify AZList -metadata dc.Title -removesuffix \\s*(\\/|;|,|\\.).*
19classify AZCompactList -metadata dc.Creator -removesuffix (b\\.\\s+)?(\\d+(\\-?))(\\d+(\\.)?)?
20classify AZCompactList -metadata dc.Subject
[18738]21
[19209]22format VList "<td>[link][icon][/link]</td>
23<td>{If}{[numleafdocs],[Title],<b>[dc.Title]</b>{If}{[dc.Creator], [sibling:dc.Creator]}{If}{[dc.Publisher], <i>[dc.Publisher]</i>}}</td>{If}{[numleafdocs],<td><i>([numleafdocs])</i></td>}"
[18738]24
[19209]25#format CL2VList "<td>[link][icon][/link]</td><td>{If}{[numleafdocs],[Title],[dc.Creator]; <i>[dc.Title]</i>{If}{[dc.Publisher], <i>[dc.Publisher]</i>}}</td><td>{If}{[numleafdocs],<i>([numleafdocs])</i>}</td>"
26#format CL3VList "<td>[link][icon][/link]</td><td>{If}{[numleafdocs]{[Title],[dc.Title]{If}{[dc.Creator], [dc.Creator]}{If}{[dc.Publisher], [dc.Publisher]}}</td><td>{If}{[numleafdocs],<i>([numleafdocs])</i>}</td>"
[18738]27
28format HList "[link][highlight][ex.Title][/highlight][/link]"
29
[19209]30format DocumentHeading "[dc.Title]<br>"
[18738]31
32format DocumentText "[Text]"
33
34format DocumentButtons ""
35
36format SearchTypes "plain,form"
37
[19209]38collectionmeta .text [l=en] "_labeltext_"
39collectionmeta .Title [l=en] "_labelTitle_"
40collectionmeta .Source [l=en] "_labelSource_"
[18738]41
[19357]42collectionmeta sampleoid "D0s156"
[18738]43
44# -- English strings ----------------
45collectionmeta collectionname [l=en] "MARC example"
46
47# -- French strings ----------------
48collectionmeta collectionname [l=fr] "Exemple MARC"
49
50# -- Spanish strings ----------------
51collectionmeta collectionname [l=es] "Colección de muestra MARC"
52
53# -- Russian strings ----------------
54collectionmeta collectionname [l=ru] "ПрОЌер MARC"
55
56# -- English text ----------------
57collectionmeta collectionextra [l=en] "This collection, which contains _about:numdocs_ MARC entries, is based on the MARC records of working papers published by
58<a href=\"http://www.cs.waikato.ac.nz\">Computer Science Department</a> at <a href=\"http://www.waikato.ac.nz\">the University of Waikato</a>.
[19357]59<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">Here</a> is a sample document in the collection.
[18738]60
61<h3>How the collection works</h3>\n
62
63<p>
[19209]64The <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>configuration file</a> uses <i>MARCPlugin</i> to process the MARC records, as well as the
65standard plugins. There are three classifiers, based on <i>dc.Title</i>,
66<i>dc.Creator</i>, and <i>dc.Subject</i> metadata. The <i>Title</i> classifier uses AZList, while the other two use AZCompactList, which groups items with the same metadata into a bookshelf. The <i>-removesuffix</i> argument for the <i>Title</i> and <i>Creator</i>
67classifiers removes suffixes from the metadata string (<i>dc.Title</i> and
68<i>dc.Creator</i> respectively). This is specified as a PERL regular
[18738]69expression, and trims characters (such as trailing punctuation)
[19209]70from the strings for display.
[18738]71<p>
[19209]72The <i>VList</i> format statement controls the display of search results and all classifiers. For bookshelves, the number of leaf documents is displayed on the right-hand side. For documents, <i>dc.Title</i> is displayed, along with <i>dc.Creator</i> and <i>dc.Publisher</i>. <i>[sibling:dc.Creator]</i> is used as dc.Creator has multiple values, and specifies that all values be output, not just the first one.
73<p>
[18738]74
75The MARC plugin uses a special file to map MARC field numbers to
76Greenstone-style metadata. This file resides in the
[19209]77<i>greenstone/etc</i> directory, and is called
78<a href=\"_httpprefix_/etc/marc2dc.txt\" target=marc2dc>marc2dc.txt</a>.
[18738]79It lists the correspondences between MARC field numbers and Greenstone
80metadata. Any MARC fields that are not listed simply do not
81appear as metadata, though they are still present in the
82Greenstone document. Each line in the file has the format
83<blockquote>
[19209]84&lt;MARC field number&gt; -&gt; GreenstoneMetadataName
[18738]85</blockquote>
[19249]86Lines in the file that begin with \"\#\" are comments. \n
[18738]87<p>
88The standard version of this file is loosely based on
89the MARC to Dublin Core mapping found at <a
[19209]90href=\"http://www.loc.gov/marc/marc2dc.html\">http://www.loc.gov/marc/marc2dc.html</a>
91(which assumes USMARC/MARC21).
[18738]92<p>
[19249]93Multiple MARC fields may map to a single Dublin Core field.
94For example, fields 720 (\"Uncontrolled name\"), 100 (\"Personal name\"),
95110 (\"Corporate name\") and 111 (\"Meeting name\") all map to
96<i>dc.Creator</i>. Actual MARC records normally
[18738]97define only one of these fields, and anyway Greenstone allows
98multi-valued metadata.\n
99<p>
[19249]100Some mappings are dependent on subfields. For example, MARC field 260 contains
101information about publication and distribution. Subfields \"c\" (Date of Publication) and \"g\" (Date of manufacture) are mapped to <i>dc.Date</i>, using the following mapping line:
102<blockquote>
103260$c$g -&gt; dc.Date
104</blockquote>
105
106Greenstone also provides a file for mapping MARC to <b>qualified</b> dublin core: <a href=\"_httpprefix_/etc/marc2qdc.txt\" target=marc2qdc>greenstone/etc/marc2qdc.txt</a>. This can be used by the MARC plugin by setting the <i>-metadata_mapping_file</i> option to \"marc2qdc.txt\".
[18738]107"
108
109# -- French text ----------------
110collectionmeta collectionextra [l=fr] "Cette collection, which contains _about:numdocs_ MARC entries, is based on the MARC records of working papers published by
111<a href=\"http://www.cs.waikato.ac.nz\">Computer Science Department</a> at <a href=\"http://www.waikato.ac.nz\">the University of Waikato</a>.
[19357]112<a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">Voici</a> un document échantillon dans la collection.
[18738]113
114<h3>Comment marche cette collection ?</h3>
115
116<p>
117Le <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>fichier de configuration</a> utilise <i>ZipPlug</i> et <i>MarcPlug</i> à coté des trois qui sont utilisés en standard.
[19209]118Il y a trois classificateurs basés sur les méta-données <i>dc.Title</i>, <i>dc.Creator</i> et <i>dc.Subject</i>. _text1_
119 Ceci est spécifié comme une expression
120réguliÚre de PERL et ajuste pour l\'affichage des caractÚres (comme une ponctuation finale).
121<p>
122_text2_
[18738]123
124<p>
125Le module Marc utilise un fichier spécial pour la mise en correspondance des numéros de champ MARC avec les méta-donnée de type Greenstone. Ce fichier se trouve dans le répertoire <i>gsdl/etc</i>,
[19209]126et est appelé <a href=\"_httpprefix_/etc/marc2dc.txt\" target=marc2dc>marc2dc.txt</a>. Il liste les correspondences entre les numéros de champ MARC et les méta-données Greenstone. Tous les champs MARC qui ne sont pas listés ne vont pas apparaître comme méta-données, bien qu\'ils spient toujours présents dans le document Greenstone. Chaque ligne dans le fichier à le format:
[18738]127
128<blockquote>
[19209]129&lt;numéro de champ MARC&gt; -&gt; NonMetadonnéeGreenstone
[18738]130</blockquote>
131
[19249]132Les lignes dans le fichier qui commence par \"\#\" sont des commentaires.
[18738]133
134<p>
[19209]135La version standard de ce fichier est approximativement basée sur la mise en correspondance MARC - Dublin Core trouvé à <a href=\"http://www.loc.gov/marc/marc2dc.html\">http://www.loc.gov/marc/marc2dc.html</a>
[19249]136(qui suppose USMARC/MARC21).
137_text3_
[18738]138"
139
140# -- Spanish text ----------------
141collectionmeta collectionextra [l=es] "Esta colección, which contains _about:numdocs_ MARC entries, is based on the MARC records of working papers published by
[19357]142<a href=\"http://www.cs.waikato.ac.nz\">Computer Science Department</a> at <a href=\"http://www.waikato.ac.nz\">the University of Waikato</a>. He <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">aquí</a> un documento muestra de la colección.
[18738]143<p>
144
145<h3>Cómo trabaja esta colección</h3>
146<p>
147
[19359]148El <a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>archivo de configuración</a> utiliza <i>MARCPlugin</i> además de los tres plugins estándar. Existen tres clasificadores basados en los metadatos <i>dc.Título</i>, <i>dc.Creador</i> y <i>dc.Asunto</i>. El clasificador <i>dc.Title</i> es una AZList, mientras que los otros dos son AZCompactList, que agrupa items con el mismo metadato en un "estante". El argumento <i>-removesuffix</i> para el clasificador por <i>Title</i> y por <i>Creator</i> remueve los sufijos de la cadena de caracteres (<i>dc.Title</i> y <i>dc.Creator</i> respectivamente). Esto se especifica como una expresión regular PERL y ordena los caracteres (como la puntuación que se encuentra al final) a partir de las cadenas para su presentación en pantalla.
[18738]149<p>
[19359]150La cadena de formateo <i>VList</i> controla la forma en la que se muestran los resultados y todos los clasificadores. Para los estantes, el número de documentos contenidos se muestra en la parte derecha. Para los documentos, se muestra el metadato <i>dc.Title</i>, junto al <i>dc.Creator</i> y el <i>dc.Publisher</i>. <i>[sibling:dc.Creator]</i> se utiliza debido a que dc.Creator tiene múltiples valores, y especifica que se deben mostrar todos los valores, no solamente el primero.
[18738]151
152<p>
153
[19209]154El plugin de MARC utiliza un archivo especial para mapear y convertir los números de campo MARC a metadatos estilo Greenstone. Este archivo reside en el directorio <i>gsdl/etc</i> y se llama <a href=\"_httpprefix_/etc/marc2dc.txt\" target=marc2dc>marc2dc.txt</a>. Incluye una lista de las correspondencias entre los números de campo MARC y los metadatos Greenstone. Cualquier campo MARC que no esté incluido en la lista simplemente no aparece como metadato, aunque siga estando presente en el documento Greenstone. Cada línea del archivo tiene el siguiente formato:
155<p>
156
[18738]157<blockquote>
[19209]158&lt;MARC field number&gt; -&gt; GreenstoneMetadataName
[18738]159</blockquote>
160<p>
161
[19249]162Las líneas en el archivo que empiezan con \"\#\" son comentarios.
[18738]163<p>
164
[19249]165La versión estándar de este archivo se basa libremente en el mapeo de MARC a Dublin Core que se encuentra en <a href=\"http://www.loc.gov/marc/marc2dc.html\">http://www.loc.gov/marc/marc2dc.html</a> (el cual asume USMARC/MARC21).
[18738]166
[19359]167Múltiples campos MARC pueden mapearse a un mismo campo Dublin Core.
168Por ejemplo, los campos 720 (\"Uncontrolled name\"), 100 (\"Personal name\"),
169110 (\"Corporate name\") y 111 (\"Meeting name\") mapean todos a <i>dc.Creator</i>. Los registros actuales de MARC normalmente definen solo uno de esos campos, pero de cualquier manera Greenstone permite metadatos multivalor. \n
170<p>
171Algunos mapeos dependen de los subcampos. Por ejemplo, el campo MARC 260 contiene información sobre la publicación y la distribución. Subcampos \"c\" (Date of Publication) y \"g\" (Date of manufacture) son mapeados a <i>dc.Date</i>, usando la siguiente linea de configuración:
172<blockquote>
173260$c$g -&gt; dc.Date
174</blockquote>
175
176Greenstone también provee un archivo para el mapeo de MARC a Dublin Core <b>cualificado</b>: <a href=\"_httpprefix_/etc/marc2qdc.txt\" target=marc2qdc>greenstone/etc/marc2qdc.txt</a>. Puede ser usado por el plugin de MARC configurando el parámetro <i>-metadata_mapping_file</i> con \"marc2qdc.txt\".
[18738]177"
178
179# -- Russian text ----------------
180collectionmeta collectionextra [l=ru] "This collection, which contains _about:numdocs_ MARC entries, is based on the MARC records of working papers published by
[19357]181<a href=\"http://www.cs.waikato.ac.nz\">Computer Science Department</a> at <a href=\"http://www.waikato.ac.nz\">the University of Waikato</a>. <a href=\"_gwcgi_?l=_cgiargl_&a=d&c=_cgiargc_&d=_sampleoid_\">ЗЎесь</a> преЎставлеМ тОпПвПй ЎПкуЌеМт ЎаММПй кПллекцОО.
[18738]182
183<h3>Как рабПтает кПллекцОя</h3>
184<p>
185
[19209]186<a href=\"_httpcollection_/etc/collect.cfg\" target=collect.cfg>КПМфОгурацОПММый файл</a> ОспПльзует плагОМы <i>ZIPPlug</i> О <i>MARCPlug</i>, пПЌОЌП третьегП стаМЎарта. ИЌеются трО классОфОкатПра, ПсМПваММые Ма ЌетаЎаММых
[18738]187 <i>НазваМОя (dc.Title)</i>, <i>СПзЎателя (dc.Creator)</i> О <i>ПреЎЌета (dc.Subject)</i>. _text1_ ЭтП требует устаМПвкО PERL Ўля правОльМПгП выражеМОя, О урезает зМакО (тОпа кПМечМых
[19209]188 зМакПв препОМаМОя) Оз стрПкО Ўля ПтПбражеМОя.
189<p>
[18738]190_text2_
[19209]191<p>
[18738]192
193ПлагОМ MARC ОспПльзует спецОальМый файл Ўля сПпПставлеМОя МПЌера пПля в MARC О ЌетаЎаММых
[19209]194 Greenstone. ЭтПт файл Мах
[18738]195ПЎОтся в ЎОректПрОО <i>gsdl/etc</i> О Мазывается <a href=\"_httpprefix_/etc/marc2dc.txt\" target=marc2dc>marc2dc.txt</a>. ОМ преЎставляет спОсПк сППтветствОя ЌежЎу МПЌераЌО пПлей сОстеЌы MARC О ЌетаЎаММыЌО Greenstone. ᅵюбые пПля MARC, кПтПрые Ме вМесеМы в спОсПк, прПстП Ме пПявляются как ЌетаЎаММые, х
[19249]196Птя ПМО прОсутствуют в ЎПкуЌеМте Greenstone. КажЎая стрПка в этПЌ файле ОЌеет слеЎующОй фПрЌат.
[18738]197
198<blockquote>
[19249]199&lt;MARC field number&gt; -&gt; GreenstoneMetadataName
[18738]200</blockquote>
[19249]201СтрПкО в ЎаММПЌ файле, кПтПрые МачОМаются сП зМака \"\#\", являются кПЌЌеМтарОяЌО.
202<p>
203
204СтаМЎартМая версОя этПгП файла свПбПЎМП базОруется Ма MARC в ПпОсаМОО Dublin Core, кПтПрПе вПспрОМОЌает USMARC/MARC21 О кПтПрПе ЌПжМП МайтО Ма <a href=\"http://www.loc.gov/marc/marc2dc.html\">http://www.loc.gov/marc/marc2dc.html</a>.
205
206_text3_
207"
Note: See TracBrowser for help on using the repository browser.