[Koha-patches] [PATCH] [SIGNED-OFF] Bug 6458: Incorrect translation processing / opac-detail.tt

Owen Leonard oleonard at myacpl.org
Thu Aug 25 18:54:06 CEST 2011


From: Katrin Fischer <Katrin.Fischer.83 at web.de>

Patch removes template directives from within HTML tags from OPAC detail view.

Problems were related to the items tabs for holdings, subscriptions, and serial collection.

Fixed the problem spotted by Frère Sébastien Marie - thx!

Signed-off-by: Owen Leonard <oleonard at myacpl.org>
---
 koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
index 40af8f5..3e28e1a 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
@@ -322,9 +322,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
 <div id="bibliodescriptions" class="toptabs">
 
 <ul>   
-<li[% IF ( defaulttab == 'holdings' ) %] class="ui-tabs-selected"[% END %]><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#holdings">Holdings
-    ( [% count %] )</a>
-   </li>
+[% IF ( defaulttab == 'holdings' ) %]<li class="ui-tabs-selected">
+[% ELSE %]<li>[% END %]
+	<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#holdings">Holdings ( [% count %] )</a></li>
  <li> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#descriptions">Title Notes</a></li>
 [% IF ( SYNDETICS_TOC ) %]
  <li> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#toc">TOC</a></li>
@@ -350,7 +350,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
 <li> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#LTFLTagBrowse">Tag Browser</a></li>
 [% END %]
 [% END %]
-[% IF ( subscriptionsnumber ) %]<li[% IF ( defaulttab == 'subscriptions' ) %] class="ui-tabs-selected"[% END %]>
+[% IF ( subscriptionsnumber ) %]
+	[% IF ( defaulttab == 'subscriptions' ) %]<li class="ui-tabs-selected">
+	[% ELSE %]<li>[% END %]
             <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#subscriptions">Subscriptions</a>
     </li>[% END %]
 [% IF ( reviewson ) %]
@@ -366,7 +368,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
     [% IF ( Babeltheque ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#babeltheque">Babelthèque</a></li>[% END %]
 
     [% IF ( serialcollection ) %]
-    <li[% IF ( defaulttab == 'serialcollection' ) %] class="ui-tabs-selected"[% END %]><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#serialcollection">Serial Collection</a></li>
+		[% IF ( defaulttab == 'serialcollection' ) %]<li class="ui-tabs-selected">
+		[% ELSE %]<li>[% END %]
+		<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#serialcollection">Serial Collection</a></li>
     [% END %]
 </ul>
 
-- 
1.7.3



More information about the Koha-patches mailing list