[Koha-bugs] [Bug 27577] Autolink bibs after generating the biblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 29 14:36:45 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27577

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 116030
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116030&action=edit
Bug 27577: Autolink biblio after biblionumber is generated

If BiblioAddsAuthorities and AutoCreateAuthorities are enabled, a new record is
auto linked when saving and authorities generated with a 670 field that
indicates which record generated the new authority.

The code to do this is called before the biblionumber is generated, so the
variable that adds the biblionumber to the citation is empty

This patch moves the linking code to after the biblionumber is generated

To recreate:
1 - Enable BiblioAddsAuthorities and AutoCreateAuthorities
2 - Import or create a new record
3 - Ensure the record has controlled fields that do not have authorities before
saving, i.e.:
    Add a 650 with "test_bug_27577_01"
4 - Search for the authority record
5 - Note the 670 field does not contain the biblionumber
6 - Apply patch, restart all the things
7 - Repeat 2-4
8 - Note the 670 now has the biblionumber

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list