Bug 13296 - error when using z3950 with UNIMARC authorities
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 19 Nov 2014 10:56:54 +0000 (11:56 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 19 Dec 2014 17:41:52 +0000 (14:41 -0300)
commit9ccdbc49c715c6182e97e815eb46c6969926874f
tree91805a82e6d6b82a3ee55799287769b4e8281110
parent2f266d94be06af73e72a807d9408136278e8fed4
Bug 13296 - error when using z3950 with UNIMARC authorities

When using a z3950 connexion with UNIMARC authorities, you get an error :
Unsupported UNIMARC character encoding [ ] for XML output for UNIMARCAUTH; 100$a -> 20141119

I've seen thant Bug 2060 when adds authorities import adds a special behavior for UNIMARC : marc flavor must be UNIMARCAUTH instead of just UNIMARC.

This patch adds the same behavior when using z3950 connexion and import.

Test plan :
 - Use a UNIMARC install
 - Define a z3950 connexion for UNIMARC authorities
 - Go to Authorities module
 - Click on "New from Z39.50"
 - Perform a search
=> Without patch : you get the error
=> With patch : you get results
 - Import one result
=> You get the authoritie creation form with all datas
You may check same plan with MARC21 install

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
NOTE: depending on the target, the syntax in the configuration
might not be UNIMARC, but MARC21/USMARC instead!

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Breeding.pm