Bug 12621: Z39.50-targets - Record type is untranslatable
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sun, 10 Aug 2014 22:53:44 +0000 (19:53 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 14 Aug 2014 23:22:16 +0000 (20:22 -0300)
This patch makes displayed record types translatable

To test:
1) Go to Administration > Z39.50 servers
2) On column Record type the value is 'biblio' or 'authority'
3) Apply the patch
4) Reload the page, now record type must show 'Bibliographic'
or 'Authority'
5) Update translation file for a language, verify new entries
Strings are already on translation file, only a reference
for new entry on the file.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, no problems found.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt

index c43e6eb..9657a0e 100644 (file)
                 <tr>
             [% END %]
             <td><a href="[% loo.script_name %]?op=edit&amp;id=[% loo.id %]">[% loo.name %]</a></td><td>[% loo.host %]:[% loo.port %]</td><td>[% loo.db %]</td><td>[% loo.userid %]</td><td>[% IF loo.password %]########[% END %]</td><td>[% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %]</td><td>[% loo.rank %]</td>
-<td>[% loo.syntax %]</td><td>[% loo.encoding %]</td><td>[% loo.timeout %]</td><td>[% loo.recordtype %]</td>
+<td>[% loo.syntax %]</td><td>[% loo.encoding %]</td><td>[% loo.timeout %]</td>
+            <td>[% IF ( loo.recordtype == 'biblio' )  %]
+                <span>Bibliographic</span>
+                [% ELSIF ( loo.recordtype == 'authority' ) %]
+                <span>Authority</span>
+                [% END %]
+            </td>
             <td><a href="[% loo.script_name %]?op=edit&amp;id=[% loo.id %]">Edit</a> <a href="[% loo.script_name %]?op=add&amp;id=[% loo.id %]">Copy</a> <a href="javascript:void(0);" onclick="ConfirmDelete('[% loo.name | replace("['\"]","") %]','[% loo.id %]');">Delete</a></td>
             </tr>
         [% END %]