From 0dc68f901143af71d64eaf83cedd4e8cac9edfae Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 21 Jun 2024 15:10:05 +0000 Subject: [PATCH] Bug 36557: (follow-up) Restore missing "Remove from list" control This patch restores the "Remove from list" control to the batch operations toolbar when one is looking at the contents of a list. It was unintentionally left out of the previous patch. The patch also corrects some button markup to ensure consisten style of controls in the batch operations toolbar. --- .../bootstrap/en/includes/result-batch-controls.inc | 10 +++++++++- .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 3 +-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/result-batch-controls.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/result-batch-controls.inc index eed84b5736..8e9e7d5bbe 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/result-batch-controls.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/result-batch-controls.inc @@ -23,7 +23,9 @@ [% IF ( CartEnabled ) %]
- Add to cart +
[% END %] @@ -62,6 +64,12 @@ New list + [% IF loggedinusername && can_remove_biblios %] + + + [% END %] + [% END # /IF virtualshelves %] [% IF ( MultiHolds ) %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 49ad1d7392..81ef824034 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -959,9 +959,8 @@ $(function() { selected_titles.prop("checked", false ); } }); - - $("#removeitems").html(" "+_("Remove from list")+""); [% END %] + [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %] [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] -- 2.39.2