Bug 5428: Add searchid to the "Return to the record" button (batch del)
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 Aug 2020 12:03:00 +0000 (14:03 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 05:55:45 +0000 (07:55 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt

index acdf6bc..8f99122 100644 (file)
         [% IF src == 'CATALOGUING' # from catalogue/detail.pl > Delete items in a batch%]
             [% IF biblio_deleted %]
                 <a class="btn btn-default" href="/cgi-bin/koha/cataloguing/addbooks.pl"><i class="fa fa-check-square-o"></i> Return to the cataloging module</a>
+            [% ELSIF searchid %]
+               <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&searchid=[% searchid | uri %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
             [% ELSE %]
                <a class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]"><i class="fa fa-check-square-o"></i> Return to the record</a>
             [% END %]