Bug 10948: make reference labels translatable in OPAC auth results
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 25 Sep 2013 15:50:07 +0000 (11:50 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 2 Oct 2013 15:21:40 +0000 (15:21 +0000)
For some reason the translator script was not picking up the see also
and used for/see from labels on the OPAC. This patch fixes the problem.

To test:
1) Apply patch.
2) Generate PO files.
3) Note that "see from" and "used for/see from" appear.
4) Sign off.

Signed-off-by: Nuño López Ansótegui <nunyo@masmedios.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, thx for the fix.
Tested by updating the German po files, translating the
strings and installing the templates.
Verified strings show up in German in the authority
result list.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc

index 6e6db3c..b113049 100644 (file)
             <span class="RT">RT: [% heading | html %]</span>
         [% END %]
     [% ELSE %]
-        [% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
+        [% IF ( label ) %]<span class="label">[% SWITCH label %]
+        [% CASE 'see also:' %]see also:
+        [% CASE 'used for/see from:' %]used for/see from:
+        [% END %]</span>[% END %]
         <span class="heading">
         [% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
         [% ELSE %][% heading | html %][% END %]