[Koha-bugs] [Bug 5572] Improve C4::AuthoritiesMarc->merge() + syspref AuthCleanBiblios

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 18 14:48:48 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5572

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45515|0                           |1
        is obsolete|                            |

--- Comment #31 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 45821
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45821&action=edit
[SIGNED-OFF] Bug 5572: Improve C4::AuthoritiesMarc->merge() + syspref
AuthCleanBiblios

A new syspref AuthCleanBiblios controls how modified info in a modified
authority are propagated to the attached biblio records. By default, the
merge() behavior isn't changed. When AuthCleanBiblios is set to yes, the
subfields of the authority heading are copied to biblio field. If the
biblio field contains subfields that are not anymore in the authority,
they are removed (this is true only for the authority subfields that are
neither ignored nor hidden in the authority editor)

This patch does some code refactoring:

  - New function C4::AuthoritiesMarc::GetBibliosByAuthid
  - New function C4::Biblios::GetBiblionumber($record)
  - Minimizing SQL queries, and caching
  - Code cleaning + doc

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Tested with dontmerge on/off, AuthCleanBiblioson/off
Work as described
Few errors fixed in folloups

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


More information about the Koha-bugs mailing list