Add separator from fields 245a and 245c
Hi there. We have below XML: <datafield tag="245" ind1=" " ind2=" "> <subfield code="a">Gestión empresarial. El caso de dieciocho cooperativas</subfield> <subfield code="b"></subfield> <subfield code="c">Consultores Asociados (Coord.)</subfield> </datafield> Which leads to below string both in admin and OPAC: Gestión empresarial. El caso de dieciocho cooperativas Consultores Asociados (Coord.) Question: how to add a string (let's say " | ") between fiedls 245a and 245c? Thanks. Javier
Hi Javier, usually the punctuation is added to the data in MARC21. At the moment there is no feature in Koha to assist in adding those while cataloguing or adding them to the displays. What you could do is make a copy of the default XSLT files that are used to generate the display in the detail view and result lists and modify them in order to generate separators. The new XSLT files can be activated using the XSLT system preferences. There is a XSLT library in the wiki that shows some examples of modifications people have made: https://wiki.koha-community.org/wiki/XSLT_Library Hope this helps, Katrin On 29.06.21 18:11, Javi Legido wrote:
Hi there.
We have below XML:
<datafield tag="245" ind1=" " ind2=" "> <subfield code="a">Gestión empresarial. El caso de dieciocho cooperativas</subfield> <subfield code="b"></subfield> <subfield code="c">Consultores Asociados (Coord.)</subfield> </datafield>
Which leads to below string both in admin and OPAC:
Gestión empresarial. El caso de dieciocho cooperativas Consultores Asociados (Coord.)
Question: how to add a string (let's say " | ") between fiedls 245a and 245c?
Thanks.
Javier _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Good morning. Thanks Katrin, I was able to do my first tests modifying XSLT file. Cheers. Javier On Sat, 10 Jul 2021 at 12:21, Katrin Fischer <katrin.fischer.83@web.de> wrote:
Hi Javier,
usually the punctuation is added to the data in MARC21. At the moment there is no feature in Koha to assist in adding those while cataloguing or adding them to the displays.
What you could do is make a copy of the default XSLT files that are used to generate the display in the detail view and result lists and modify them in order to generate separators. The new XSLT files can be activated using the XSLT system preferences.
There is a XSLT library in the wiki that shows some examples of modifications people have made:
https://wiki.koha-community.org/wiki/XSLT_Library
Hope this helps,
Katrin
On 29.06.21 18:11, Javi Legido wrote:
Hi there.
We have below XML:
<datafield tag="245" ind1=" " ind2=" "> <subfield code="a">Gestión empresarial. El caso de dieciocho cooperativas</subfield> <subfield code="b"></subfield> <subfield code="c">Consultores Asociados (Coord.)</subfield> </datafield>
Which leads to below string both in admin and OPAC:
Gestión empresarial. El caso de dieciocho cooperativas Consultores Asociados (Coord.)
Question: how to add a string (let's say " | ") between fiedls 245a and 245c?
Thanks.
Javier _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Javi Legido -
Katrin Fischer