[Bug 42039] New: Properly set LDR/5 for deleted bibliographic records
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Bug ID: 42039 Summary: Properly set LDR/5 for deleted bibliographic records Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: MARC Bibliographic data support Assignee: koha-bugs@lists.koha-community.org Reporter: januszop@gmail.com QA Contact: testopia@bugs.koha-community.org For deleted authority records we automatically set LDR/5 to 'd' (cf. https://www.loc.gov/marc/authority/adleader.html). The same should be done for bibliographic records: "System-Generated Elements - Following Leader elements are usually system generated: [...] 05 Record status" (cf. https://www.loc.gov/marc/bibliographic/bdleader.html) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 --- Comment #1 from Janusz Kaczmarek <januszop@gmail.com> --- Created attachment 195017 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195017&action=edit Bug 42039: Properly set LDR/5 for deleted bibliographic records For deleted authority records we automatically set LDR/5 to 'd' (cf. https://www.loc.gov/marc/authority/adleader.html). Test plan: ========== 1. Find any bibliographic record. Check the value of the 5th byte of the leader. It should not be equal to 'd'. 2. Delete the bibliographic record (you may have to delete the items first). 3. In ktd --dbshell check the 5th byte of the leader, e.g.: select biblionumber, ExtractValue(metadata, '//leader') from deletedbiblio_metadata order by timestamp desc limit 1; It should be equlal to the initial value. 4. Apply the patch ; restart_all. 5. Repeat p. 1-3. The 5th byte of the leader should now be properly set to 'd'. Sponsored-by: Pontificia Università di San Tommaso d'Aquino (Angelicum) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 --- Comment #2 from Janusz Kaczmarek <januszop@gmail.com> --- Created attachment 195018 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195018&action=edit Bug 42039: Unit tests -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl Comma delimited| |Pontificia Università di list of Sponsors| |San Tommaso d'Aquino | |(Angelicum) Sponsorship status|--- |Sponsored Assignee|koha-bugs@lists.koha-commun |januszop@gmail.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=42044 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Roman Dolny <roman.dolny@jezuici.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Roman Dolny <roman.dolny@jezuici.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #195017|0 |1 is obsolete| | Attachment #195018|0 |1 is obsolete| | --- Comment #3 from Roman Dolny <roman.dolny@jezuici.pl> --- Created attachment 195022 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195022&action=edit Bug 42039: Properly set LDR/5 for deleted bibliographic records For deleted authority records we automatically set LDR/5 to 'd' (cf. https://www.loc.gov/marc/authority/adleader.html). Test plan: ========== 1. Find any bibliographic record. Check the value of the 5th byte of the leader. It should not be equal to 'd'. 2. Delete the bibliographic record (you may have to delete the items first). 3. In ktd --dbshell check the 5th byte of the leader, e.g.: select biblionumber, ExtractValue(metadata, '//leader') from deletedbiblio_metadata order by timestamp desc limit 1; It should be equlal to the initial value. 4. Apply the patch ; restart_all. 5. Repeat p. 1-3. The 5th byte of the leader should now be properly set to 'd'. Sponsored-by: Pontificia Università di San Tommaso d'Aquino (Angelicum) Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 --- Comment #4 from Roman Dolny <roman.dolny@jezuici.pl> --- Created attachment 195023 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195023&action=edit Bug 42039: Unit tests Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=17387 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |42044 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42044 [Bug 42044] Automatically update record status (LDR/5) for modified records -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42039 --- Comment #5 from Janusz Kaczmarek <januszop@gmail.com> --- Created attachment 196274 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196274&action=edit Bug 42039: (follow-up) Use Koha::Util::MARC::update_record_status Make use of Koha::Util::MARC::update_record_status -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org