[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #18 from Katrin Fischer --- Matts, can you please double check? Your follow-up patch (only applied the second) doesn't apply cleanly on main. Also the commit title will fail QA tools ;) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Katrin Fischer changed: What|Removed |Added Keywords||release-notes-needed -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Attachment #182652|0 |1 is obsolete|| --- Comment #19 from Matthias Meusburger --- Created attachment 182671 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182671&action=edit Bug 38142, Follow-up: Choose language to report from authority to bibliographic record. - Rename LanguageToReportOnMerge system preference to LanguageToUseOnMerge - Use "use" instead of "report" in system preference description - Mark this feature as UNIMARC-only. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #17 from Matthias Meusburger --- Created attachment 182652 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182652&action=edit Bug 38142, Follow-up: Choose language to report from authority to bibliographic record. - Rename LanguageToReportOnMerge system preference to LanguageToUseOnMerge - Use "use" instead of "report" in system preference description - Mark this feature as UNIMARC-only. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Katrin Fischer changed: What|Removed |Added Keywords||rel_25_05_candidate -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #16 from Katrin Fischer --- I nudged Matts on Mattermost. I think to be more precise it would be something like: ... the language code of the main heading to use -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #15 from paxed --- I have to agree with the "reported" sounding weird. Perhaps it should be something like "used to select the authority record language" -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #14 from Katrin Fischer --- I don't think it exists in MARC21, see my previous comment. That's why I was asking to mark this as a UNIMARC only feature (no follow-up from developer yet...) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 paxed changed: What|Removed |Added CC||[email protected] --- Comment #13 from paxed --- What is this $7 format? I don't see anything like it described on https://www.loc.gov/marc/authority/adapndxh.html -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Katrin Fischer changed: What|Removed |Added Status|Passed QA |Pushed to main Version(s)||25.05.00 released in|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #12 from Katrin Fischer --- Pushed for 25.05! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Katrin Fischer changed: What|Removed |Added Keywords||additional_work_needed --- Comment #11 from Katrin Fischer --- This might work for MARC21, but I don't think it should: In MARC21 the 1xx fields are all marked as non-repeatable. And Koha's frameworks for MARC21 reflect that: https://www.loc.gov/marc/authority/ad1xx3xx.html And the $7 is used otherwise: $7 - Data provenance (R) As we usually expect the 1xx to not be repeated I am not sure what kind of problems could arise if it is. It looks like in UNIMARC authority this is OK: https://repository.ifla.org/server/api/core/bitstreams/3a3df76b-dad8-4a41-95ee-5198813784fa/content 1) I feel we should mark this as a UNIMARC feature in the system preference text. (please argue strongly or follow-up) 2) I am not sure if "reported" is clear here as the verb in both the system preference name and description. It's more like it will be the one that is used/copied to the bibliographic record if I understand correctly? (question to native speakers). (not a blocker, but might confuse translators?) 3) Please use say_success in your database updates... fixed before pushing (done) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Katrin Fischer changed: What|Removed |Added Summary|Choose language to report |Choose language to report |from authority to |from authority to |bibliographic record. |bibliographic record -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Martin Renvoize (ashimema) changed: What|Removed |Added Status|Signed Off |Passed QA CC||[email protected] ||o.uk QA Contact|[email protected] |[email protected] |y.org |o.uk -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Martin Renvoize (ashimema) changed: What|Removed |Added Attachment #180178|0 |1 is obsolete|| --- Comment #10 from Martin Renvoize (ashimema) --- Created attachment 180222 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180222&action=edit Bug 38142: Choose language to report from authority to bibliographic record. Currently, when reporting authority field to the bibliographic records, the merge function uses the first matching authority field. However, authorities can provide multiple versions of the same field, with different languages, identified by a code in the $7 field. French reference for languages codes for example, but any code system could be used: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d This patch introduces the LanguageToReportOnMerge system preference, which allows to specify a language code. When set, if there is an authority field with the given language code, it will be used to report to the bibliographic record. If the system preference is not set, or there is no matching field, the default behavior will apply: the first field will be used. The $7 in the authority field can be in a short or long form: - the short form is 2 characters long. Example: ba - the long form is 8 characters long, with the short form in position 5 and 6 (starting from 1). Example: ba0yba0y Test plan: -- 1) Edit the 'Personal Name' authority type framework to make the 100 field repeatable 2) Add an authority with several languages, like this (the order is important): 100_7ba0yda0y _a伊東豊雄 100_7ba0yba0y _aItō 3) Add a bibliographic record linked to that authority. (Click on the "tag editor" icon next to the 100$a field in the bibliographic record to search for the authority, then Search main heading ($a only): contains Itō) Note that you can choose which version you want when searching for the authority, under the "Get it!" column For this example, choose the latin version: Itō You should now have this in your bibliographic record: 100_aItō _92646 4) Edit the authority, you don't have to change anything, just edit and save. Note that your bibliographic record now looks like this: 100_7ba0yda0y _a伊東豊雄 _92646 The first 100 field of the authority has been reported back to the bibliographic record, regardless of what you chose when selecting the authority. 5) Apply the patch, set the LanguageToReportOnMerge system preference to: 'ba' 6) Edit the authority again, and check that your bibliographic record now looks like this, according to the system preference: 100_7ba0yba0y _aItō _92646 7) Edit the authority again, but set the $7 of the latin field to its short form: 100_7ba0yda0y _a伊東豊雄 100_7ba _aItō 8) Check that the bibliographic record still has the latin field reported: 100_7ba _aItō _92646 9) prove koha/t/db_dependent/Authority/Merge.t 10) Sign-off :) Sponsored-by: ENSA Works smoothly, both with UNIMARC/MARC21 Signed-off-by: Frédéric Demians Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Attachment #177508|0 |1 is obsolete|| --- Comment #9 from Matthias Meusburger --- Created attachment 180178 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180178&action=edit Bug 38142: Choose language to report from authority to bibliographic record. Currently, when reporting authority field to the bibliographic records, the merge function uses the first matching authority field. However, authorities can provide multiple versions of the same field, with different languages, identified by a code in the $7 field. French reference for languages codes for example, but any code system could be used: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d This patch introduces the LanguageToReportOnMerge system preference, which allows to specify a language code. When set, if there is an authority field with the given language code, it will be used to report to the bibliographic record. If the system preference is not set, or there is no matching field, the default behavior will apply: the first field will be used. The $7 in the authority field can be in a short or long form: - the short form is 2 characters long. Example: ba - the long form is 8 characters long, with the short form in position 5 and 6 (starting from 1). Example: ba0yba0y Test plan: -- 1) Edit the 'Personal Name' authority type framework to make the 100 field repeatable 2) Add an authority with several languages, like this (the order is important): 100_7ba0yda0y _a伊東豊雄 100_7ba0yba0y _aItō 3) Add a bibliographic record linked to that authority. (Click on the "tag editor" icon next to the 100$a field in the bibliographic record to search for the authority, then Search main heading ($a only): contains Itō) Note that you can choose which version you want when searching for the authority, under the "Get it!" column For this example, choose the latin version: Itō You should now have this in your bibliographic record: 100_aItō _92646 4) Edit the authority, you don't have to change anything, just edit and save. Note that your bibliographic record now looks like this: 100_7ba0yda0y _a伊東豊雄 _92646 The first 100 field of the authority has been reported back to the bibliographic record, regardless of what you chose when selecting the authority. 5) Apply the patch, set the LanguageToReportOnMerge system preference to: 'ba' 6) Edit the authority again, and check that your bibliographic record now looks like this, according to the system preference: 100_7ba0yba0y _aItō _92646 7) Edit the authority again, but set the $7 of the latin field to its short form: 100_7ba0yda0y _a伊東豊雄 100_7ba _aItō 8) Check that the bibliographic record still has the latin field reported: 100_7ba _aItō _92646 9) prove koha/t/db_dependent/Authority/Merge.t 10) Sign-off :) Sponsored-by: ENSA Works smoothly, both with UNIMARC/MARC21 Signed-off-by: Frédéric Demians -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Marcel de Rooy changed: What|Removed |Added Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Status|Patch doesn't apply |Signed Off --- Comment #8 from Matthias Meusburger --- Thanks Lucas, the patch has been rebased on main. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Attachment #172923|0 |1 is obsolete|| --- Comment #7 from Matthias Meusburger --- Created attachment 177508 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=177508&action=edit Bug 38142: Choose language to report from authority to bibliographic record. Currently, when reporting authority field to the bibliographic records, the merge function uses the first matching authority field. However, authorities can provide multiple versions of the same field, with different languages, identified by a code in the $7 field. French reference for languages codes for example, but any code system could be used: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d This patch introduces the LanguageToReportOnMerge system preference, which allows to specify a language code. When set, if there is an authority field with the given language code, it will be used to report to the bibliographic record. If the system preference is not set, or there is no matching field, the default behavior will apply: the first field will be used. The $7 in the authority field can be in a short or long form: - the short form is 2 characters long. Example: ba - the long form is 8 characters long, with the short form in position 5 and 6 (starting from 1). Example: ba0yba0y Test plan: -- 1) Edit the 'Personal Name' authority type framework to make the 100 field repeatable 2) Add an authority with several languages, like this (the order is important): 100_7ba0yda0y _a伊東豊雄 100_7ba0yba0y _aItō 3) Add a bibliographic record linked to that authority. (Click on the "tag editor" icon next to the 100$a field in the bibliographic record to search for the authority, then Search main heading ($a only): contains Itō) Note that you can choose which version you want when searching for the authority, under the "Get it!" column For this example, choose the latin version: Itō You should now have this in your bibliographic record: 100_aItō _92646 4) Edit the authority, you don't have to change anything, just edit and save. Note that your bibliographic record now looks like this: 100_7ba0yda0y _a伊東豊雄 _92646 The first 100 field of the authority has been reported back to the bibliographic record, regardless of what you chose when selecting the authority. 5) Apply the patch, set the LanguageToReportOnMerge system preference to: 'ba' 6) Edit the authority again, and check that your bibliographic record now looks like this, according to the system preference: 100_7ba0yba0y _aItō _92646 7) Edit the authority again, but set the $7 of the latin field to its short form: 100_7ba0yda0y _a伊東豊雄 100_7ba _aItō 8) Check that the bibliographic record still has the latin field reported: 100_7ba _aItō _92646 9) prove koha/t/db_dependent/Authority/Merge.t 10) Sign-off :) Sponsored-by: ENSA Works smoothly, both with UNIMARC/MARC21 Signed-off-by: Frédéric Demians -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #6 from Lucas Gass (lukeg) --- Doesn't apply cleanly to main -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Lucas Gass (lukeg) changed: What|Removed |Added CC||[email protected] Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Frédéric Demians changed: What|Removed |Added Attachment #172802|0 |1 is obsolete|| --- Comment #5 from Frédéric Demians --- Created attachment 172923 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172923&action=edit Bug 38142: Choose language to report from authority to bibliographic record. Currently, when reporting authority field to the bibliographic records, the merge function uses the first matching authority field. However, authorities can provide multiple versions of the same field, with different languages, identified by a code in the $7 field. French reference for languages codes for example, but any code system could be used: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d This patch introduces the LanguageToReportOnMerge system preference, which allows to specify a language code. When set, if there is an authority field with the given language code, it will be used to report to the bibliographic record. If the system preference is not set, or there is no matching field, the default behavior will apply: the first field will be used. The $7 in the authority field can be in a short or long form: - the short form is 2 characters long. Example: ba - the long form is 8 characters long, with the short form in position 5 and 6 (starting from 1). Example: ba0yba0y Test plan: -- 1) Edit the 'Personal Name' authority type framework to make the 100 field repeatable 2) Add an authority with several languages, like this (the order is important): 100_7ba0yda0y _a伊東豊雄 100_7ba0yba0y _aItō 3) Add a bibliographic record linked to that authority. (Click on the "tag editor" icon next to the 100$a field in the bibliographic record to search for the authority, then Search main heading ($a only): contains Itō) Note that you can choose which version you want when searching for the authority, under the "Get it!" column For this example, choose the latin version: Itō You should now have this in your bibliographic record: 100_aItō _92646 4) Edit the authority, you don't have to change anything, just edit and save. Note that your bibliographic record now looks like this: 100_7ba0yda0y _a伊東豊雄 _92646 The first 100 field of the authority has been reported back to the bibliographic record, regardless of what you chose when selecting the authority. 5) Apply the patch, set the LanguageToReportOnMerge system preference to: 'ba' 6) Edit the authority again, and check that your bibliographic record now looks like this, according to the system preference: 100_7ba0yba0y _aItō _92646 7) Edit the authority again, but set the $7 of the latin field to its short form: 100_7ba0yda0y _a伊東豊雄 100_7ba _aItō 8) Check that the bibliographic record still has the latin field reported: 100_7ba _aItō _92646 9) prove koha/t/db_dependent/Authority/Merge.t 10) Sign-off :) Sponsored-by: ENSA Works smoothly, both with UNIMARC/MARC21 Signed-off-by: Frédéric Demians -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Frédéric Demians changed: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #4 from Matthias Meusburger --- (In reply to Frédéric Demians from comment #2) > Very interesting! Two remarks/demands: > > - Could you develop the syspref description? Something with sample, and > explaining the 2 language code forms, short and long. Agreed. The patch has been updated with a more descriptive syspref. > > - Wouldn't it make sense to have a repeatable languages selection? Let say I > select 'ba,fa'. It means that I want first 'ba' authority, if not available > then 'fa' authority, otherwise the 1st one. This is an interesting idea, but maybe perfect is the enemy of good :) I this this could be added later in another BZ if needed. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Attachment #172684|0 |1 is obsolete|| --- Comment #3 from Matthias Meusburger --- Created attachment 172802 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172802&action=edit Bug 38142: Choose language to report from authority to bibliographic record. Currently, when reporting authority field to the bibliographic records, the merge function uses the first matching authority field. However, authorities can provide multiple versions of the same field, with different languages, identified by a code in the $7 field. French reference for languages codes for example, but any code system could be used: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d This patch introduces the LanguageToReportOnMerge system preference, which allows to specify a language code. When set, if there is an authority field with the given language code, it will be used to report to the bibliographic record. If the system preference is not set, or there is no matching field, the default behavior will apply: the first field will be used. The $7 in the authority field can be in a short or long form: - the short form is 2 characters long. Example: ba - the long form is 8 characters long, with the short form in position 5 and 6 (starting from 1). Example: ba0yba0y Test plan: -- 1) Edit the 'Personal Name' authority type framework to make the 100 field repeatable 2) Add an authority with several languages, like this (the order is important): 100_7ba0yda0y _a伊東豊雄 100_7ba0yba0y _aItō 3) Add a bibliographic record linked to that authority. (Click on the "tag editor" icon next to the 100$a field in the bibliographic record to search for the authority, then Search main heading ($a only): contains Itō) Note that you can choose which version you want when searching for the authority, under the "Get it!" column For this example, choose the latin version: Itō You should now have this in your bibliographic record: 100_aItō _92646 4) Edit the authority, you don't have to change anything, just edit and save. Note that your bibliographic record now looks like this: 100_7ba0yda0y _a伊東豊雄 _92646 The first 100 field of the authority has been reported back to the bibliographic record, regardless of what you chose when selecting the authority. 5) Apply the patch, set the LanguageToReportOnMerge system preference to: 'ba' 6) Edit the authority again, and check that your bibliographic record now looks like this, according to the system preference: 100_7ba0yba0y _aItō _92646 7) Edit the authority again, but set the $7 of the latin field to its short form: 100_7ba0yda0y _a伊東豊雄 100_7ba _aItō 8) Check that the bibliographic record still has the latin field reported: 100_7ba _aItō _92646 9) prove koha/t/db_dependent/Authority/Merge.t 10) Sign-off :) Sponsored-by: ENSA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Frédéric Demians changed: What|Removed |Added CC||[email protected] --- Comment #2 from Frédéric Demians --- Very interesting! Two remarks/demands: - Could you develop the syspref description? Something with sample, and explaining the 2 language code forms, short and long. - Wouldn't it make sense to have a repeatable languages selection? Let say I select 'ba,fa'. It means that I want first 'ba' authority, if not available then 'fa' authority, otherwise the 1st one. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Assignee|[email protected] |matthias.meusburger@biblibr |ity.org |e.com -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 Matthias Meusburger changed: What|Removed |Added Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 38142] Choose language to report from authority to bibliographic record.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38142 --- Comment #1 from Matthias Meusburger --- Created attachment 172684 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172684&action=edit Bug 38142: Choose language to report from authority to bibliographic record. Currently, when reporting authority field to the bibliographic records, the merge function uses the first matching authority field. However, authorities can provide multiple versions of the same field, with different languages, identified by a code in the $7 field. French reference for languages codes for example, but any code system could be used: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d This patch introduces the LanguageToReportOnMerge system preference, which allows to specify a language code. When set, if there is an authority field with the given language code, it will be used to report to the bibliographic record. If the system preference is not set, or there is no matching field, the default behavior will apply: the first field will be used. The $7 in the authority field can be in a short or long form: - the short form is 2 characters long. Example: ba - the long form is 8 characters long, with the short form in position 5 and 6 (starting from 1). Example: ba0yba0y Test plan: -- 1) Edit the 'Personal Name' authority type framework to make the 100 field repeatable 2) Add an authority with several languages, like this (the order is important): 100_7ba0yda0y _a伊東豊雄 100_7ba0yba0y _aItō 3) Add a bibliographic record linked to that authority. (Click on the "tag editor" icon next to the 100$a field in the bibliographic record to search for the authority, then Search main heading ($a only): contains Itō) Note that you can choose which version you want when searching for the authority, under the "Get it!" column For this example, choose the latin version: Itō You should now have this in your bibliographic record: 100_aItō _92646 4) Edit the authority, you don't have to change anything, just edit and save. Note that your bibliographic record now looks like this: 100_7ba0yda0y _a伊東豊雄 _92646 The first 100 field of the authority has been reported back to the bibliographic record, regardless of what you chose when selecting the authority. 5) Apply the patch, set the LanguageToReportOnMerge system preference to: 'ba' 6) Edit the authority again, and check that your bibliographic record now looks like this, according to the system preference: 100_7ba0yba0y _aItō _92646 7) Edit the authority again, but set the $7 of the latin field to its short form: 100_7ba0yda0y _a伊東豊雄 100_7ba _aItō 8) Check that the bibliographic record still has the latin field reported: 100_7ba _aItō _92646 9) prove koha/t/db_dependent/Authority/Merge.t 10) Sign-off :) Sponsored-by: ENSA -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. ___ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
