[Koha-bugs] [Bug 19220] Allow XSLT processing for Z39.50 authority targets like for bibliographic targets

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jun 13 18:35:06 CEST 2021


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

--- Comment #13 from Filippos Kolovos <f.kolovos at gmail.com> ---
Created attachment 121897
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121897&action=edit
Bug 19220 - Allow XSLT processing for Z39.50 authority

Matthias and Katrin,

I worked on it a bit and I seem to have found where the issue might be.
It is in the Breeding.pm module, where for the Authorities if an
import_record_id already exists in the import_records table for that authority
in the import_auths table, then it simply returns the import_record_id,
ignoring the new MARC data that have been returned from the new XSL
transformation.
If the auth record does not exist in the import_auths table, then the
AddAuthToBatch() is called, which adds the auth into import_records, with the
marc and marcxml correctly.

In the case of biblios, it always runs the AddBiblioToBatch(), even if the
biblio is already in the cache, returning the new id, hence the new marc.

Please try the patch I have uploaded, where I update the import_records table
for the specific import_record_id, with the new marc values (plain marc and
marcxml), since they ae both used later on in the Marc Preview and import
functionalities.

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


More information about the Koha-bugs mailing list