koha authorities update linking authorities in subfield 0
In current iteration of Koha ILS, given the following marc authorities in marcxml format: The first record: <record> <leader>01877nz a2200433o 4500</leader> <controlfield tag="001">1</controlfield> .... </datafield> <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">Borneo</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">g</subfield> <subfield code="a">South East Asia</subfield> <subfield code="c">c_7260</subfield> </datafield> </record> The second record: <record> <leader>02462nz a2200553o 4500</leader> <controlfield tag="001">2</controlfield> ... <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">South East Asia</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">h</subfield> <subfield code="a">Borneo</subfield> <subfield code="c">c_1017</subfield> </datafield> </record> Is there a way in linking Borneo with Southeast Asia and vice versa? Such that the control no. is added in 550 tag like below: Authority Record no. 1: <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">Borneo</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">g</subfield> <subfield code="a">South East Asia</subfield> <subfield code="c">c_7260</subfield> <subfield code="0">2</subfield> </datafield> Authority Record no. 2: <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">South East Asia</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">h</subfield> <subfield code="a">Borneo</subfield> <subfield code="c">c_1017</subfield> <subfield code="0">1</subfield> Or if this was in MARC: =001 1 =035 \\$ac_1017 =151 \\$aBorneo =550 \\$wg$aSouth East Asia$cc_7260$02 =LDR 02462nz a2200553o 4500 =001 2 =035 \\$ac_7260 =151 \\$aSouth East Asia =550 \\$wh$aBorneo$cc_1017$01 Has anybody done such use case? Or is this possible in Koha? Is there a cronjob that should be run in order to link or merge these authorities? I see the merge authority cron job merges the authorities with the biblios. Thanks in advance and cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/koha-authorities-update-linking-authoritie... Sent from the Koha-general mailing list archive at Nabble.com.
Hi, not sure if this is what you are looking for, but there is a feature linked to the AuthDisplayHiearchy syspref that allows linking of authorities and a tree-like display of them. More information and a test plan that shows how to set this up can be found on the original bug report: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8523 Hope this helps, Katrin Am 08.09.2015 um 15:35 schrieb schnydszch:
In current iteration of Koha ILS, given the following marc authorities in marcxml format:
The first record: <record> <leader>01877nz a2200433o 4500</leader> <controlfield tag="001">1</controlfield> .... </datafield> <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">Borneo</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">g</subfield> <subfield code="a">South East Asia</subfield> <subfield code="c">c_7260</subfield> </datafield> </record>
The second record: <record> <leader>02462nz a2200553o 4500</leader> <controlfield tag="001">2</controlfield> ... <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">South East Asia</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">h</subfield> <subfield code="a">Borneo</subfield> <subfield code="c">c_1017</subfield> </datafield>
</record>
Is there a way in linking Borneo with Southeast Asia and vice versa? Such that the control no. is added in 550 tag like below:
Authority Record no. 1: <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">Borneo</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">g</subfield> <subfield code="a">South East Asia</subfield> <subfield code="c">c_7260</subfield> <subfield code="0">2</subfield> </datafield>
Authority Record no. 2: <datafield tag="151" ind1=" " ind2=" "> <subfield code="a">South East Asia</subfield> </datafield> <datafield tag="550" ind1=" " ind2=" "> <subfield code="w">h</subfield> <subfield code="a">Borneo</subfield> <subfield code="c">c_1017</subfield> <subfield code="0">1</subfield>
Or if this was in MARC:
=001 1 =035 \\$ac_1017 =151 \\$aBorneo =550 \\$wg$aSouth East Asia$cc_7260$02
=LDR 02462nz a2200553o 4500 =001 2 =035 \\$ac_7260 =151 \\$aSouth East Asia =550 \\$wh$aBorneo$cc_1017$01
Has anybody done such use case? Or is this possible in Koha? Is there a cronjob that should be run in order to link or merge these authorities? I see the merge authority cron job merges the authorities with the biblios. Thanks in advance and cheers!
-- View this message in context: http://koha.1045719.n5.nabble.com/koha-authorities-update-linking-authoritie... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Thanks for this Katrin! Yeah, I see this is working Katrin. However the case is if the Authorities are imports and not directly done in Koha, there is no linking between these authorities. So, in this case Borneo won't be link to Southeast Asia and vice versa unless there is subfield 9 which is the Control No. or 001 of the related term. I think this subfield 9 are not automatically populated unless there is a cron job that should be run which I might have missed. Although I was able to do this outside of Koha through XSLT, I'm also particularly curious if there is such in Koha. Thank and cheers! -- View this message in context: http://koha.1045719.n5.nabble.com/koha-authorities-update-linking-authoritie... Sent from the Koha-general mailing list archive at Nabble.com.
Hi, I think there is currently no cronjob to automate the linking between authorities - might be good to file an enh bug for this. Glad that you found a way to make it work :) Katrin Am 15.09.2015 um 16:34 schrieb schnydszch:
Thanks for this Katrin! Yeah, I see this is working Katrin. However the case is if the Authorities are imports and not directly done in Koha, there is no linking between these authorities. So, in this case Borneo won't be link to Southeast Asia and vice versa unless there is subfield 9 which is the Control No. or 001 of the related term. I think this subfield 9 are not automatically populated unless there is a cron job that should be run which I might have missed. Although I was able to do this outside of Koha through XSLT, I'm also particularly curious if there is such in Koha. Thank and cheers!
-- View this message in context: http://koha.1045719.n5.nabble.com/koha-authorities-update-linking-authoritie... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Thanks Katrin! I will file a enhancement bug for this. Just in case for those interested, I used MARCEdit's MARC Tools and added the following XSLT to transform the MARCXML into MARCXML adding the desired Control Nos.: <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="rdf dc marc"> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> <xsl:key name="term" match="datafield[@tag='151']|datafield[@tag='150']" use="subfield[@code='a']" /> <xsl:template match="datafield[@tag='550'][subfield[@code='a']]"> <xsl:variable name="t550a" select="subfield[@code='a']" /> <xsl:copy> <xsl:apply-templates select="@*|node()"/> <xsl:for-each select="key('term',$t550a)"> <subfield code="9"> <xsl:value-of select="../controlfield[@tag='001']" /> </subfield> </xsl:for-each> </xsl:copy> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> -- View this message in context: http://koha.1045719.n5.nabble.com/koha-authorities-update-linking-authoritie... Sent from the Koha-general mailing list archive at Nabble.com.
participants (2)
-
Katrin Fischer -
schnydszch