From 088807ac65455547275ce71acbed9155861548a4 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 5 Nov 2008 16:14:45 +0100 Subject: [PATCH] [bug #2531] fix the private shelf deletion in opac this patch add an "hidden" field in the template, that permit in C4::VirtualShelves::Pages to get the right(privates) shelves with GetShelves instead of always public shelves. So when a private shelf is wanted to be deleted, the script watch only in public shelves if the shelf exists, and doesn't work. The patch make some tab cleaning. --- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 281 ++++++++++---------- 1 files changed, 141 insertions(+), 140 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 6f1619f..788210a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -11,33 +11,33 @@ $.tablesorter.addParser({ }); $(function() { - $("span.clearall").html("Clear All"); - $("span.checkall").html("Select All"); - $("#listcontents").tablesorter({ - widgets : ['zebra'], - - sortList: [[1,0]], - headers: { 0: { sorter: false },1:{sorter: 'articles'} - - sortList: [[0,0]], - headers: { 0:{sorter:'articles'} - - } - }); - $("#CheckAll").click(function(){ - $(".checkboxed").checkCheckboxes(); - return false; - }); - $("#CheckNone").click(function(){ - $(".checkboxed").unCheckCheckboxes(); - return false; - }); + $("span.clearall").html("Clear All"); + $("span.checkall").html("Select All"); + $("#listcontents").tablesorter({ + widgets : ['zebra'], + + sortList: [[1,0]], + headers: { 0: { sorter: false },1:{sorter: 'articles'} + + sortList: [[0,0]], + headers: { 0:{sorter:'articles'} + + } + }); + $("#CheckAll").click(function(){ + $(".checkboxed").checkCheckboxes(); + return false; + }); + $("#CheckNone").click(function(){ + $(".checkboxed").unCheckCheckboxes(); + return false; + }); }); //]]> -
+
@@ -49,47 +49,47 @@ $.tablesorter.addParser({
A List named already exists!
-
-
ERROR: No barcode given.
-
ERROR: No shelfnumber given.
- -
The list is not empty. -
It has entries. -
Use the "Confirm" button below to confirm deletion. -
- - -
ERROR: You do not have adequate permission for that action on list .
- - -
ERROR: No item found with barcode .
- - -
A record matching barcode has already been added.
- - -
List Deleted.
- - -
ERROR: Database error. Delete (list number ) failed.
- - -
ERROR: List number unrecognized.
- -
+
+
ERROR: No barcode given.
+
ERROR: No shelfnumber given.
+ +
The list is not empty. +
It has entries. +
Use the "Confirm" button below to confirm deletion. +
+ + +
ERROR: You do not have adequate permission for that action on list .
+ + +
ERROR: No item found with barcode .
+ + +
A record matching barcode has already been added.
+ + +
List Deleted.
+ + +
ERROR: Database error. Delete (list number ) failed.
+ + +
ERROR: List number unrecognized.
+ +
- - + + - +

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

-
- | &op=modif">Edit List
+
+ | &op=modif">Edit List "/> @@ -97,7 +97,7 @@ $.tablesorter.addParser({
" /> - + @@ -137,25 +137,25 @@ $.tablesorter.addParser({
This List is empty. You can add to your lists from the results of any search!
- + - - + + - " /> - - " /> + " /> + + " /> - " value="1" /> - - + " value="1" /> + + - + -

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

+

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

" /> @@ -168,12 +168,12 @@ $.tablesorter.addParser({ -
  • - -
  • +
  • + +
  • ">Cancel
    @@ -195,118 +195,119 @@ $.tablesorter.addParser({ -
    - -
     
    - + +
    List NameContentsSort byType 
    + + Public + Open + - + + " /> + + + + + + " value="1" /> + + + " value="1" /> + + + + + +   + +
    List NameContentsSort byType 
    "> item(s) Private - Public - Open - - - " /> - - - -
    - - " value="1" /> - - " value="1" /> - - - - -
    -   -
    No Private Lists.
    - New List + New List -
    Log in to create new Lists.
    +
    Log in to create new Lists.
    -
    +
    -
    - -
    - - + +
    -- 1.5.6.3