]> git.koha-community.org Git - koha.git/commit
Bug 20310: Introduce Koha::Biblio->host_record
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 19 Mar 2018 13:14:39 +0000 (14:14 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:34 +0000 (15:47 +0200)
commit2a4a8266efe150241727716aa263d91efcc33038
treecfb84b4be4e745c16905da25c4ffa7fafa278c56
parent5b17567f2b74bb1347195f4df7e694fbd23eb7a0
Bug 20310: Introduce Koha::Biblio->host_record

This is a more generic method that allows you to get to the host record
as defined in MARC21 field 773$w. This control number is looked up in the
search engine (MARC21 field 001).

Note: The current implementation is based on MARC21 and does not change
behavior for UNIMARC.
This includes the follow-up originally submitted separately on Bugzilla,
dealing with multiple 773 fields.

Test plan:
Run t/db_dependent/Koha/Biblio/host_record.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Biblio.pm
t/db_dependent/Koha/Biblio/host_record.t [new file with mode: 0644]