https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25273
--- Comment #15 from Julian Maurice <julian.maur...@biblibre.com> --- (In reply to Nick Clemens from comment #14) > 1 - Yes, was trying to save a call to GuessAuthType, reverted GuessAuthTypeCode only checks in its hardcoded list of authtypecodes, it doesn't even check if the auth type code exist in database. If someone use custom authority types, this will probably break. There is get_auth_type_location but it needs the authtypecode... so we cannot use it to find the authtypecode in the MARC record. It seems that the only way to get the correct information is to get it directly from database using the authid (SELECT authtypecode WHERE authid = ?) Or maybe it would be better to pass a Koha::Object (Koha::Authority or Koha::Biblio) to the indexer, so we can retrieve easily the authtypecode and the MARC::Record but that would probably require rewriting some parts of the indexation code. I'm not sure where to go on this one. It clearly shows that passing the MARC::Record alone to the indexer is not enough. Any thoughts ? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/