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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 29 Dec 2014 17:37:30 +0000 (18:37 +0100)
commit5734dd9a1514f15c9b8e69c059a9375df3c4e27b
tree78910a57e795c61b0ae9a9015f0009320c387fc6
parent4cda914acf23e285ada2770a83dddbbd8aa7ddc7
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: Mason James <mtj@kohaaloha.com>

(cherry picked from commit 08a938597e3649d80eea63347787d7bbbe6d0086)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Breeding.pm