https://www.loc.gov/marc/authority/ad035.html The 035 field in authorities can contain a system control number, this is useful for authority cleanup work as it can contain a non-Koha id for the record When importing, however, we cannot use this field for matching as it is not indexed
Created attachment 120894 [details] [review] Bug 28337: Add System-control-number index to Zebra MARC21 files To test: 1 - Apply patch 2 - Copy zebra files to destination: cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml /etc/koha/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl 3 - Reindex authorities 4 - Edit an authority and add 035$aExpialodocious 5 - Export the authority 6 - Create a new record matchign rule: Matching rule code: SCN Description: System control number Match threshhold: 1000 Record type: Authority record Search-index: System-control-number Score: 1000 Tag: 035 Subfields: a 7 - Stage the record and use the new matchign rule 8 - Match found!
Created attachment 120946 [details] [review] Bug 28337: Add System-control-number index to Zebra MARC21 files To test: 1 - Apply patch 2 - Copy zebra files to destination: cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml /etc/koha/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl 3 - Reindex authorities 4 - Edit an authority and add 035$aExpialodocious 5 - Export the authority 6 - Create a new record matchign rule: Matching rule code: SCN Description: System control number Match threshhold: 1000 Record type: Authority record Search-index: System-control-number Score: 1000 Tag: 035 Subfields: a 7 - Stage the record and use the new matchign rule 8 - Match found! Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Hi :) Some small things: 1) Patch includes an unrelated change to koha-tmpl/intranet-tmpl/prog/en/includes/tools-item-action.inc. 2) Index name: We already have an index on 035 for bibliographic records. My suggestion is to have the index names match, to make them a little easier to work with. It's Other-control-number or ocn.
Created attachment 123184 [details] [review] Bug 28337: Add System-control-number index to Zebra MARC21 files To test: 1 - Apply patch 2 - Copy zebra files to destination: cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml /etc/koha/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl 3 - Reindex authorities 4 - Edit an authority and add 035$aExpialodocious 5 - Export the authority 6 - Create a new record matchign rule: Matching rule code: OCN Description: Other control number Match threshhold: 1000 Record type: Authority record Search-index: Other-control-number Score: 1000 Tag: 035 Subfields: a 7 - Stage the record and use the new matchign rule 8 - Match found! Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Hi Nick, sorry, I might have confused myself a bit here: In ccl.properties we now have doubled up lines Other-control-number It looks like there is only one file for both bibliographic and authority indexes? I am not sure about the consequences of this. We now have: From before (bibliogrpahic): #Other-control-number 1211 Other control number MARC21 035 Other-control-number 1=1211 New (auhority): Other-control-number 1=Other-control-number I wonder if these line will be in conflict - we have different use attributes for bibliographic and authority. But only the attribute 1211 is even mentioned in the file, 9052 is not. Can index names not overlap or should we start using the same attribute for both? Can you help unravel?
Created attachment 124240 [details] [review] Bug 28337: Use existing definition in ccl.properties and bib1.att As the field is already dfined, we don't need to add anything here. Bib1.att can use the existing number as well To test, enable zebra debugging in koha-conf, adding 'request' to the list: <zebra_loglevels>none,fatal,warn,request</zebra_loglevels> Restart all the things Repeat matching (redo matching with no rule, then with OCN rule) Tail the zebra-output.log and note 1=Ohter-control-number is searched and match is found Perform a search in the staff client for: other-control-number:expialodocious Note in logs that 1=1211 is searched Previous test plan did not mention copying ccl.properties and bib1.att to the package install, so highlighted that things work without these changes
Created attachment 126024 [details] [review] Bug 28337: Use existing definition in ccl.properties and bib1.att As the field is already dfined, we don't need to add anything here. Bib1.att can use the existing number as well To test, enable zebra debugging in koha-conf, adding 'request' to the list: <zebra_loglevels>none,fatal,warn,request</zebra_loglevels> Restart all the things Repeat matching (redo matching with no rule, then with OCN rule) Tail the zebra-output.log and note 1=Ohter-control-number is searched and match is found Perform a search in the staff client for: other-control-number:expialodocious Note in logs that 1=1211 is searched Previous test plan did not mention copying ccl.properties and bib1.att to the package install, so highlighted that things work without these changes Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 126025 [details] [review] Bug 28337: Add System-control-number index to Zebra MARC21 files To test: 1 - Apply patch 2 - Copy zebra files to destination: cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml /etc/koha/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl 3 - Reindex authorities 4 - Edit an authority and add 035$aExpialodocious 5 - Export the authority 6 - Create a new record matchign rule: Matching rule code: OCN Description: Other control number Match threshhold: 1000 Record type: Authority record Search-index: Other-control-number Score: 1000 Tag: 035 Subfields: a 7 - Stage the record and use the new matchign rule 8 - Match found! Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 126026 [details] [review] Bug 28337: Use existing definition in ccl.properties and bib1.att As the field is already dfined, we don't need to add anything here. Bib1.att can use the existing number as well To test, enable zebra debugging in koha-conf, adding 'request' to the list: <zebra_loglevels>none,fatal,warn,request</zebra_loglevels> Restart all the things Repeat matching (redo matching with no rule, then with OCN rule) Tail the zebra-output.log and note 1=Ohter-control-number is searched and match is found Perform a search in the staff client for: other-control-number:expialodocious Note in logs that 1=1211 is searched Previous test plan did not mention copying ccl.properties and bib1.att to the package install, so highlighted that things work without these changes Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to master for 21.11, thanks to everybody involved!
*** Bug 12736 has been marked as a duplicate of this bug. ***