From 4111998c7680ad720bc8af1513cc2c15516ef69f Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 21 Sep 2009 16:28:48 +0200 Subject: [PATCH] Bug fix : click on confirm Bellow on opac-shelves Click on confirm Bellow was not showing the button up, or button was not really obvious This adds a button right bellow the message --- C4/VirtualShelves/Page.pm | 4 ++-- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 1e44bc9493..b32424ed70 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -233,10 +233,10 @@ SWITCH: { if (my $count = scalar @$contents){ unless (scalar grep {/^CONFIRM-$number$/} $query->param()) { if (defined $shelflist->{$number}) { - push(@paramsloop, {need_confirm=>$shelflist->{$number}->{shelfname}, count=>$count}); + push(@paramsloop, {shelf=>$number, need_confirm=>$shelflist->{$number}->{shelfname},shelftype=>"public", count=>$count}); $shelflist->{$number}->{confirm} = $number; } else { - push(@paramsloop, {need_confirm=>$privshelflist->{$number}->{shelfname}, count=>$count}); + push(@paramsloop, {shelf=>$number,need_confirm=>$privshelflist->{$number}->{shelfname},shelftype=>"private", count=>$count}); $privshelflist->{$number}->{confirm} = $number; } $stay = 0; diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl index e91aaced2e..1487d14118 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -50,9 +50,6 @@ $(function() { }); $(document).ready(function(){ - - $(".hold").html("Place Hold"); - $("#tagsel_tag").text("Tag"); $("#tagsel_button").click(function(){ @@ -83,7 +80,16 @@ $(document).ready(function(){
The list is not empty.
It has entries. -
Use the "Confirm" button below to confirm deletion. +
Use the "Confirm" button below to confirm deletion. +
+
+ + shelves" /> + " value="1" /> + " value="1" /> + +
+
-- 2.39.5