[Koha-bugs] [Bug 6977] Support for repeated subfields when importing an authority into a biblio record field.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 21 18:33:32 CEST 2011


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

--- Comment #9 from Frédérick Capovilla <fcapovilla at live.ca> 2011-10-21 16:33:32 UTC ---
Created attachment 6020
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6020
Follow-up patch : catch CloneSubfield errors

I have found a problem with this functionnality :

If subfields are repeated in the authority record, but these subfields are not
repeatable in the biblio record, the CloneSubfield function fails with a
javascript error, and the popup doesn't disappear.

Example : Importing informations of a UNIF_TITLE authority with multiple $x
subfields in the biblio's 440 field. On my test instance, 440$x isn't
repeatable, so an error occurs when trying to clone it.

I added a try/catch to catch the error. In that case, the subfield isn't cloned
and only the first subfield value is added to the biblio record.

Follow-up patch attached.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list