Bug 9497 - Make it easier to add new encodings for Z39.50 servers and add ISO 8859-1
commit3f2b5d270c5a2f6f2d267ca1b602e479a4855b08
authorMagnus Enger <magnus@enger.priv.no>
Sun, 27 Jan 2013 13:00:45 +0000 (27 14:00 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 31 Jan 2013 15:53:11 +0000 (31 10:53 -0500)
tree19d736aea0ec3598fb424083c28c59d495aac2a9
parent03b7c9f8b96cb995121b9ff80a531475f7317a8e
Bug 9497 - Make it easier to add new encodings for Z39.50 servers and add ISO 8859-1

This patch does three things:
- Makes admin/z3950servers.pl create one variable for encoding,
  not one variable for each encoding
- Makes the template create encoding options from a list
- Adds ISO 8859-1 to the list of available encodings
See the bug for a lengthier description

To test:
- Apply the patch
- Edit one Z39.50 server several times, choosing each available
  encoding in turn
- Check that for each encoding, the correct encoding is shown both in
  the list of Z39.50 servers and in the dropdown on the edit screen

Comment: Works as described, no errors.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
admin/z3950servers.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt