Bug 14739: Adapt wording in breadcrumbs if a new batch is created
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 5 Oct 2015 08:20:02 +0000 (09:20 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 6 Oct 2015 13:25:30 +0000 (10:25 -0300)
Don't display "Manage batch number 0" but "Create new batch"

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt

index a15ca7e..532406a 100644 (file)
         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
         <a href="/cgi-bin/koha/labels/label-home.pl">Labels home</a> &rsaquo;
         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Manage label batches</a> &rsaquo;
-        Manage batch number [% batch_id %]
+        [% IF batch_id %]
+            Manage batch number [% batch_id %]
+        [% ELSE %]
+            Create new batch
+        [% END %]
     </div>
     <div id="doc3" class="yui-t2">
         <div id="bd">
index 5427f9c..e360cf2 100644 (file)
         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
         <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
         <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Manage patron card batches</a> &rsaquo;
-        Manage batch number [% batch_id %]
+        [% IF batch_id %]
+            Manage batch number [% batch_id %]
+        [% ELSE %]
+            Create new batch
+        [% END %]
     </div>
     <div id="doc3" class="yui-t2">
         <div id="bd">