@@ -, +, @@
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/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 | 71 +++++++++++++++++------------
1 file changed, 42 insertions(+), 29 deletions(-)
--- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl
+++ a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl
@@ -250,7 +250,19 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
']
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -262,34 +274,35 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
-
-
-
- contains('
-
- ', @code)
-
-
-
-
-
-
-
- substring(.,
-
- ,
-
- )
-
-
- .
-
-
-
-
-
-
-
+
+
+
+
+ contains('
+
+ ', @code)
+
+
+
+
+
+
+
+ substring(.,
+
+ ,
+
+ )
+
+
+ .
+
+
+
+
+
+
+
--