From 64632f6e59b08c25f4c006570f3692427fb43503 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 10 Jun 2010 08:48:08 -0400 Subject: [PATCH] Fix for Bug 4869 - Non-staff patrons logging into the OPAC don't have option to place holds from Public Lists The template was originally designed so that form controls were hidden from users who didn't have permission to modify a particular shelf because the form controls were only used for deleting from lists. Now that users can place holds and add tags via the check- boxes, the controls must be available to all users. --- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 38 ++++++------------- 1 files changed, 12 insertions(+), 26 deletions(-) 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 217993c..1810adf 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -73,9 +73,9 @@ function tagAdded() { } $(function() { - $("span.clearall").html(""+_('Clear All')+"<\/a>|"); - $("span.checkall").html(""+_('Select All')+"<\/a>"); - $("a.print").show(); + $("span.clearall").html(""+_('Clear All')+"<\/a>|"); + $("span.checkall").html(""+_('Select All')+"<\/a>"); + $("a.print").show(); $("#placehold").html(""+_('Place Hold')+"<\/a>"); $("a.hold").click(function(){ holdSelections(); @@ -83,7 +83,6 @@ $(function() { }); $("#listcontents").tablesorter({ widgets : ['zebra'], - sortList: [[2,0]], @@ -92,16 +91,6 @@ $(function() { sortList: [[1,0]], headers: { 0: { sorter: false },1:{sorter: 'articles'} - - - sortList: [[1,0]], - - sortList: [[2,1]], - - sortList: [[0,0]], - - headers: { 0:{sorter:'articles'} - } }); $("#CheckAll").click(function(){ @@ -196,13 +185,13 @@ $(function() {

Lists /../images/caret.gif" width="16" height="16" alt=">" border="0" />

-
- + -
+ " /> - + @@ -256,10 +244,8 @@ $(function() { -
   Item Type Title Author
" value=" " alt="" title="" /> @@ -312,8 +298,8 @@ $(function() { - + @@ -423,7 +409,7 @@ $(function() { No Private Lists. - +
Log in to create new Lists.
-- 1.7.0.4