@@ -, +, @@ Encuadernador:w Encuadernador:w - Verify that the shipped XSLT files are current regarding the shipped index definitions: $ for i in marc21 normarc unimarc; do xsltproc etc/zebradb/xsl/xsl/koha-indexdefs-to-zebra.xsl \ etc/zebradb/marc_defs/$i/biblios/biblio-koha-indexdefs.xml \ > etc/zebradb/marc_defs/$i/biblios/biblio-zebra-indexdefs.xsl done $ git status - Apply the patch - Re-run the previous commands - Add a condition to an index_subfields tag (for example, condition="@ind2='7'" in the Author's index - Regenerate the specific XSLT - Apply the generated xsl to a MARCXML record that has a field matching the condition like this: $ xsltproc .../biblio-zebra-indexdefs.xsl sample_record.xml - Sign off and feel really happy :-D --- etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 86 +++++++++++++++++++------- 1 files changed, 63 insertions(+), 23 deletions(-) --- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl +++ a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl @@ -262,34 +262,74 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + + + - contains(' - - ', @code) + - - - - - - - substring(., - - , - - ) - - - . - - + + + + contains(' + + ', @code) - - + + + + + + + substring(., + + , + + ) + + + . + + + + + + + - + + + + + + contains(' + + ', @code) + + + + + + + + substring(., + + , + + ) + + + . + + + + + + + + + --