Bug 6194 Suppress punctuation when no location
authorColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 18 Apr 2011 03:35:21 +0000 (23:35 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 26 Apr 2011 08:29:37 +0000 (20:29 +1200)
Template was showing empty parentheses when no location
data was present. Punctuation should be dependent on
the variable being set

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt

index 9717899..8d27bd0 100644 (file)
@@ -64,7 +64,8 @@ $(document).ready(function() {
 [% UNLESS ( popup ) %]
        [% INCLUDE 'serials-toolbar.inc' %]
 
-       <h1>Serial Collection information for  <i>[% bibliotitle %]</i> ([% location %] ) 
+       <h1>Serial Collection information for  <i>[% bibliotitle %]</i>
+        [% IF location %] ([% location %] ) [% END %]
                [% IF ( callnumber ) %]callnumber: [% callnumber %][% END %]</h1>
 [% END %]
 
index a93a369..145166d 100644 (file)
@@ -178,7 +178,8 @@ $(document).ready(function() {
        <div class="yui-b">
 
 <h1>Serial Edition <i>[% bibliotitle %]</i>
-       ( [% location %] ) [% IF ( callnumber ) %] callnumber: [% callnumber %][% END %]</h1>
+       i[% IF location %] ( [% location %] ) [% END %]
+    [% IF ( callnumber ) %] callnumber: [% callnumber %][% END %]</h1>
 <form method="post" name="f" action="serials-edit.pl" id="serials_edit">
 <!--onsubmit="return barcode_check()">-->