]> git.koha-community.org Git - koha.git/commit
Bug 16442: Make C4::Ris plack safe
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 May 2016 18:53:46 +0000 (19:53 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 15 Jun 2016 05:59:57 +0000 (07:59 +0200)
commita987ff3ba92e1558e11a63335895749b5efd1689
tree0e7a074bb942c13390129b7b8d6e92fb24978c5c
parent12f6f9438a426a12c408b7d27e1af2e0cd52d1a3
Bug 16442: Make C4::Ris plack safe

C4::Ris incorrectly uses 4 package variables:
- $utf: not used, can be removed
- $intype: set to marcflavour once, but later it assumes that it is
  usmarc if not defined
- $marcprint: always 0, so set it to 0
- $protoyear: only used in 1 subroutine, let's define it at this
  level

Test plan:
Just make sure the RIS export works as before this patch

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 87b181c6d40e7a811fee511648ddd3cb7d44c4e4)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/Ris.pm