Koha/etc/zebradb
Zeno Tajoli cc878aee77 Bug 14332: Skip articles in MARC21 using indicator n.2 of field 245
Only in MARC21 is possible to use ind2 of tag 245 to skip articles.
This patch is based on inserting a special template in
koha-indexdefs-to-zebra.xsl With this patch you must not insert index
Title:s in biblio-koha-indexdefs.xml, it is defined in
koha-indexdefs-to-zebra.xsl.  It is not the best setup, but I find very
difficult  to use  biblio-koha-indexdefs.xml.

To test it in a english MARC21 setup:

Insert same records with titles and correct values in ind2 of 245.
If you have articles not in the skiping list of sort-string-utf.chr (The|the|a|A|an|An)
you can see that the sort by articles use also articles.

Insert the patch
Rebuilt indexes from scratch

Now all articles of titles are skipped

TO TEST WITHOUT INDEXING:

1. Go to etc/zebradb/marc_defs/marc21/biblios directory.

2. Put the sample MARCXML file in this directory.

3. Transform the file into Zebra indexes:
   xsltproc biblio-zebra-indexdefs.xsl record.xml
   Observe that the Title:s index contains:
   01 Business and Technologies

4. Apply the patch.

5. Repeat:
   xsltproc biblio-zebra-indexdefs.xsl record.xml
   Observe that the Title:s index contains:
   Business and Technologies

Signed-off-by: Frederic Demians <f.demians@tamil.fr>

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Verified working using yaz-client (as in
http://wiki.koha-community.org/wiki/Understanding_Zebra_indexing#Examine_Zebra_index,
though note that the `elem zebra::index` seems to be unneeded).

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-01-27 06:17:16 +00:00
..
authorities/etc Bug 9612: (follow-up) restore elementSetName in Context.pm 2014-05-19 16:46:57 +00:00
biblios/etc Bug 14198: RDA: Indexing 264 field (Zebra) 2015-11-02 11:41:36 -03:00
etc Bug 14542: Transliterate rule for all single quote forms 2015-11-16 15:45:21 -03:00
lang_defs Bug 14824: Fix sorting of Norwegian vowels 2015-10-26 11:19:03 -03:00
marc_defs Bug 14332: Skip articles in MARC21 using indicator n.2 of field 245 2016-01-27 06:17:16 +00:00
xsl Bug 14332: Skip articles in MARC21 using indicator n.2 of field 245 2016-01-27 06:17:16 +00:00
ccl.properties Bug 15198: Make OpacSuppression work even if there are no records suppressed 2015-11-23 11:26:08 -03:00
cql.properties
explain-authorities.xml Bug 5370: Fix all references to koha.org 2010-11-09 10:45:27 +13:00
explain-biblios.xml Bug 5370: Fix all references to koha.org 2010-11-09 10:45:27 +13:00
pqf.properties
retrieval-info-auth-dom.xml Bug 9612: fix SRU response for DOM indexing 2014-05-05 20:28:04 +00:00
retrieval-info-auth-grs1.xml Bug 3087 Fix Z39.50 server to return the correct record syntax 2012-10-22 14:12:22 +02:00
retrieval-info-bib-dom.xml Bug 11232: Add new syntax for facets definition on koha-indexdefs-to-zebra.xsl 2014-10-15 12:55:33 -03:00
retrieval-info-bib-grs1.xml Bug 3087 Fix Z39.50 server to return the correct record syntax 2012-10-22 14:12:22 +02:00
zebra-authorities-dom.cfg Bug 15405 - XML paths to zebra libraries is wrong for 64-bit installs on non-Debian linux Adjusts the modulePath to search in the well-known location for 64 bit systems. Required for at least Fedora. 2015-12-30 14:35:45 +00:00
zebra-authorities.cfg Bug 15405 - XML paths to zebra libraries is wrong for 64-bit installs on non-Debian linux Adjusts the modulePath to search in the well-known location for 64 bit systems. Required for at least Fedora. 2015-12-30 14:35:45 +00:00
zebra-biblios-dom.cfg Bug 15405 - XML paths to zebra libraries is wrong for 64-bit installs on non-Debian linux Adjusts the modulePath to search in the well-known location for 64 bit systems. Required for at least Fedora. 2015-12-30 14:35:45 +00:00
zebra-biblios.cfg Bug 15405 - XML paths to zebra libraries is wrong for 64-bit installs on non-Debian linux Adjusts the modulePath to search in the well-known location for 64 bit systems. Required for at least Fedora. 2015-12-30 14:35:45 +00:00