[Koha-devel] Fix on DOM inedxing. We still work on biblio-koha-indexdefs.xml or directly on biblio-zebra-indexdefs.xsl

Tomas Cohen Arazi tomascohen at gmail.com
Fri Feb 13 13:43:05 CET 2015


Zeno,

The existence of biblio-koha-indexdefs.xml is not related to GRS-1 right
now. It might have been (for a while) a way to transform the record.abs
file into something translatable to XSLT. But it is a more useful thing now.

The XML file provides with a user-friendly syntax for defining indexes (and
now also facets). The etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl file is
designed to process that syntax for creating a suitable XSLT for use in DOM.

So, if you want to change some indexes, or facet definitions: do it on the
XML file.

If you want to change the behaviour of DOM indexing (for example, you could
want to generate an index for the 'availability' filter on each record, so
it is calculated on indexing time instead of complex un-doable PQF
queries), then you should patch the meta-XSLT (koha-indexdefs-to-zebra.xsl)
so it generates an XSLT that generates that specific index out of a MARCXML
record.

It's been a while since we stopped re-generating the DOM files from the
GRS-1, as we've been forcing people to fix both GRS-1 *and* DOM each time.

Hope this clarifies the landscape.
Regards
Tomas


On Fri, Feb 13, 2015 at 7:07 AM, Tajoli Zeno <z.tajoli at cineca.it> wrote:

> Hi to all,
>
> I find a bug on MARC21/Normarc DOM indexing.
> Bug 12948: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12948
>
> Now that grs1 is deprecated, do we still use
> biblio-koha-indexdefs.xml and generate biblio-zebra-indexdefs.xsl ?
>
> Or now do we prefer edit biblio-zebra-indexdefs.xsl directly
>
> Bye
> Zeno Tajoli
>
> --
> Dr. Zeno Tajoli
> Servizi Innovativi -- Automazione Biblioteche
> z.tajoli at cineca.it
> fax +39 02 2135520
> CINECA - Sede operativa di Segrate
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>



-- 
Tomás Cohen Arazi
Prosecretaría de Informática
Universidad Nacional de Córdoba
✆ +54 351 5353750 ext 13168
GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20150213/a239eacd/attachment.html>


More information about the Koha-devel mailing list