Bug 29486: _koha_marc_update_bib_ids no longer needed for GetMarcBiblio
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Nov 2021 08:13:30 +0000 (09:13 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 12 Jun 2023 15:35:55 +0000 (12:35 -0300)
commit92e6c8029ad4a5e001ec74a48e1a498691132094
tree14654ff3cfd3b631d4b09f3f4b2aead6f56dcd2a
parent07130050a1d0dec3bb0d399d49f82b5c23928311
Bug 29486: _koha_marc_update_bib_ids no longer needed for GetMarcBiblio

This subroutine is ensuring that the biblionumber and biblioitemnumber
will be part of the MARC record.
We should not need that, unless there is something broken somewhere
else.

This line has been added by the following commit:
  commit 4e95e94727b09b33d2f6c597bdd218a59dcc3681
  Bug 6789: biblios with many items can result in broken search results link

"""
To this end, it also moves the fix_biblio_ids portion of get_corrected_marc_record out of rebuild_zebra.pl,
and makes it a part of GetMarcBiblio (right before EmbedItemsInMarcBiblio, so the 952s still come last).  fix_biblio_ids
is kept as a subroutine for the deletion portion of rebuild_zebra.pl, which still uses it.
"""

But it does not explain why it's better to have it in GetMarcBiblio.
If we need it for the reindexation process, we shouldn't impact
GetMarcBiblio which is used from several different places.

We might then consider adding the fix_biblio_ids call to
rebuild_zebra.pl, but I am failing to understand in which cases it could
be useful.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Biblio.pm