Bugzilla – Attachment 23921 Details for
Bug 11325
Focus on "Add item" in Lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Moved add barcode to be focus
0002-Bug-11325-Focus-not-on-Add-Item-in-Lists.patch (text/plain), 48.20 KB, created by
Samuel Crosby
on 2014-01-06 05:08:45 UTC
(
hide
)
Description:
Moved add barcode to be focus
Filename:
MIME Type:
Creator:
Samuel Crosby
Created:
2014-01-06 05:08:45 UTC
Size:
48.20 KB
patch
obsolete
>From c11fa9243d46986f253f3b9001292379dce0153c Mon Sep 17 00:00:00 2001 >From: Samuel <scrosby000@gmail.com> >Date: Mon, 6 Jan 2014 15:56:06 +1100 >Subject: [PATCH 2/2] Bug 11325 - Focus not on "Add Item" in Lists > >Potential fix. Moved the enter barcode interface to the top of the page. >This will allow for faster entry. > >Test instructions: >1. Create a list >2. Make sure you have an object with an assigned barcode >3. Go to the list >4. The barcode entry interface should be at the top, and it should work as normal >--- > ...nsure-cataloging-search-finds-results-for.patch | 49 ++ > ...de-receive-option-if-there-is-nothing-to-.patch | 231 +++++++ > .../prog/en/modules/virtualshelves/shelves.tt | 38 +- > .../prog/en/modules/virtualshelves/shelves.tt~ | 643 ++++++++++++++++++++ > 4 files changed, 943 insertions(+), 18 deletions(-) > create mode 100644 0001-Bug-11410-ensure-cataloging-search-finds-results-for.patch > create mode 100644 0002-Bug-6820-hide-receive-option-if-there-is-nothing-to-.patch > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt~ > >diff --git a/0001-Bug-11410-ensure-cataloging-search-finds-results-for.patch b/0001-Bug-11410-ensure-cataloging-search-finds-results-for.patch >new file mode 100644 >index 0000000..bf9a7d1 >--- /dev/null >+++ b/0001-Bug-11410-ensure-cataloging-search-finds-results-for.patch >@@ -0,0 +1,49 @@ >+From 2a4e193c242372f488892591a72752dfd4ffb138 Mon Sep 17 00:00:00 2001 >+From: Kyle M Hall <kyle@bywatersolutions.com> >+Date: Tue, 17 Dec 2013 16:04:10 -0500 >+Subject: [PATCH 1/2] Bug 11410: ensure cataloging search finds results for >+ searches with ampersands >+ >+When QueryParser is off, the cataloging search is passing the incorrect >+variable to SimpleSearch. I'm sure this is causing other issues, but >+the one I have identified is that any searches with an "&" in them >+return no results. This patch corrects the bug. >+ >+Test Plan: >+1) Catalog a new record titled "Cats & Dogs" >+2) Rebuild your zebra index so this record is indexed >+3) Browse to cataloguing/addbooks.pl >+4) Search for "Cats & Dogs" >+5) Notice you get no results >+6) Apply this patch >+7) Repeat the search >+8) Notice your result now shows up! >+ >+Signed-off-by: Heather Braum <hbraum@nekls.org> >+Signed-off-by: Suzanne Fayle <sfayle@roseman.edu> >+Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >+This works as described, passes all tests and QA script. >+Note: Because $query = $builtquery when the QueryParser is used, >+this problem is only visible when UseQueryParser is set to "Don't try". >+ >+Signed-off-by: Galen Charlton <gmc@esilibrary.com> >+--- >+ cataloguing/addbooks.pl | 2 +- >+ 1 file changed, 1 insertion(+), 1 deletion(-) >+ >+diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl >+index b22a646..35cfa2c 100755 >+--- a/cataloguing/addbooks.pl >++++ b/cataloguing/addbooks.pl >+@@ -82,7 +82,7 @@ if ($query) { >+ } >+ >+ # find results >+- my ( $error, $marcresults, $total_hits ) = SimpleSearch($query, $results_per_page * ($page - 1), $results_per_page); >++ my ( $error, $marcresults, $total_hits ) = SimpleSearch($builtquery, $results_per_page * ($page - 1), $results_per_page); >+ >+ if ( defined $error ) { >+ $template->param( error => $error ); >+-- >+1.7.9.5 >+ >diff --git a/0002-Bug-6820-hide-receive-option-if-there-is-nothing-to-.patch b/0002-Bug-6820-hide-receive-option-if-there-is-nothing-to-.patch >new file mode 100644 >index 0000000..48eb00a >--- /dev/null >+++ b/0002-Bug-6820-hide-receive-option-if-there-is-nothing-to-.patch >@@ -0,0 +1,231 @@ >+From cf9c1816a0c17329da1df96354f2340509d382fa Mon Sep 17 00:00:00 2001 >+From: Samuel <scrosby000@gmail.com> >+Date: Mon, 6 Jan 2014 15:25:37 +1100 >+Subject: [PATCH 2/2] Bug 6820 - hide receive option if there is nothing to >+ receive >+ >+The "receive shipment" button appears even if there are no orders to receive. >+This patch hides the button if there are no orders. >+ >+To test the patch: >+1. Go to "aquisitions" >+2. Create a vendor >+3. As the newly created vendor has no orders, there will now be no "receive shipment" button >+4. Create a basket >+5. Go back to the vendor search >+6. The button should now appear for that vendor >+ >+I've also tested it with a mix of vendors with and without baskets in the same search. >+--- >+ .../prog/en/modules/acqui/booksellers.tt | 2 + >+ .../prog/en/modules/acqui/booksellers.tt~ | 184 ++++++++++++++++++++ >+ 2 files changed, 186 insertions(+) >+ create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt~ >+ >+diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+index 3fa12e2..470fd74 100644 >+--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >++++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+@@ -88,7 +88,9 @@ $(document).ready(function() { >+ (inactive) >+ [% END %] >+ [% END %] >++ [% IF ( supplier.loop_basket.size ) %] >+ <a class="btn btn-small" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]"><i class="icon-inbox"></i> Receive shipment</a> >++ [% END %] >+ </span> >+ <div class="baskets"> >+ [% IF ( supplier.loop_basket.size ) %] >+diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt~ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt~ >+new file mode 100644 >+index 0000000..944a4d5 >+--- /dev/null >++++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt~ >+@@ -0,0 +1,184 @@ >++[% USE KohaDates %] >++[% INCLUDE 'doc-head-open.inc' %] >++<title>Koha › Search for vendor [% supplier %]</title> >++[% INCLUDE 'doc-head-close.inc' %] >++<style type="text/css"> >++#vendors td{ >++ vertical-align: top; >++} >++</style> >++<link rel="stylesheet" href="[% themelang %]/css/datatables.css" /> >++[% INCLUDE 'datatables.inc' %] >++<script type="text/javascript"> >++//<![CDATA[ >++$(document).ready(function() { >++ $("table.baskets").dataTable($.extend(true, {}, dataTablesDefaults, { >++ 'sDom': 't', >++ 'bPaginate': false, >++ 'bFilter': false, >++ 'bInfo': false, >++ "aaSorting": [[ 1, "asc" ]], >++ "aoColumns": [ >++ null,null,null,null,null,null,{ "sType": "title-string" },null,{ "sType": "title-string" },null >++ ], >++ 'aoColumnDefs': [ >++ { 'aTargets': [-1], 'bSortable': false } >++ ] >++ })); >++ $("#supplierlist").change(function() { >++ var id = $(this).find("option:selected").val(); >++ window.location.href = "#" + id; >++ }); >++ $(".modal").on("show", function(){ >++ var basket = $(this).data("basketno"); >++ var legend = _("Add order to basket") + " " + basket; >++ $(this).find("legend").html(legend); >++ }); >++}); >++//]]> >++</script> >++ >++</head> >++<body id="acq_booksellers" class="acq"> >++[% INCLUDE 'header.inc' %] >++[% INCLUDE 'acquisitions-search.inc' %] >++ >++<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › Search for vendor <em>[% supplier %]</em> </div> >++ >++<div id="doc3" class="yui-t2"> >++ >++ <div id="bd"> >++ <div id="yui-main"> >++ <div class="yui-b"> >++ >++[% INCLUDE 'acquisitions-toolbar.inc' %] >++[% UNLESS ( count == 1 ) %] >++<h1>You searched on <b>vendor [% supplier %],</b> [% count %] results found</h1> >++[% END %] >++[% IF ( loop_suppliers.size ) %] >++ [% UNLESS (count == 1) %] >++ <p>Choose a vendor in the list to jump directly to the right place. >++ <select id="supplierlist"> >++ [% FOREACH supplier1 IN loop_suppliers %] >++ <option value="[% supplier1.booksellerid %]">[% supplier1.name %]</option> >++ [% END %] >++ </select> >++ </p> >++ [% END %] >++ [% IF ( allbaskets ) %] >++ <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]">Show active baskets only</a></p> >++ [% ELSE %] >++ <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]&allbaskets=1">Show all baskets</a></p> >++ [% END %] >++ <div id="acqui_order_supplierlist"> >++ [% FOREACH supplier IN loop_suppliers %] >++ <div class="supplier"> >++ <span class="suppliername"> >++ [% IF (supplier.name) %] >++ <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">[% supplier.name %]</a> >++ [% ELSE %] >++ <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">NO NAME</a> >++ [% END %] >++ </span> >++ <span class="action"> >++ [% IF ( CAN_user_acquisition_order_manage ) %] >++ [% IF ( supplier.active ) %] >++ <a class="btn btn-small" href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&op=add_form"><i class="icon-plus"></i> New basket</a> >++ [% ELSE %] >++ (inactive) >++ [% END %] >++ [% END %] >++ [% IF ( supplier.loop_basket.size ) %] >++ <a class="btn btn-small" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]"><i class="icon-inbox"></i> Receive shipment</a> >++ [% END %] >++ </span> >++ <div class="baskets"> >++ [% IF ( supplier.loop_basket.size ) %] >++ <table class="baskets"> >++ <thead> >++ <tr> >++ <th>No.</th> >++ <th>Name</th> >++ <th>Item count</th> >++ <th>Biblio count</th> >++ <th>Items expected</th> >++ <th>Created by</th> >++ <th>Date</th> >++ <th>Basket group</th> >++ <th>Closed</th> >++ <th> </th> >++ </tr> >++ </thead> >++ <tbody> >++ [% FOREACH basket IN supplier.loop_basket %] >++ [% IF ( basket.uncertainprices ) %] >++ <tr class="problem"> >++ [% ELSE %] >++ <tr> >++ [% END %] >++ <td>[% basket.basketno %]</td> >++ <td>[% basket.basketname %]</td> >++ <td>[% basket.total_items %]</td> >++ <td>[% basket.total_biblios %]</td> >++ <td>[% basket.expected_items %]</td> >++ <td> >++ [% basket.authorisedby_firstname %] >++ [% basket.authorisedby_surname %] >++ </td> >++ <td><span title="[% basket.creationdate %]">[% basket.creationdate | $KohaDates %]</span></td> >++ <td> >++ [% IF basket.basketgroup %] >++ [% basketgroup = basket.basketgroup %] >++ [% IF basketgroup.closed %] >++ [% basketgroup.name %] (closed) >++ [% ELSE %] >++ <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basket.booksellerid %]&basketgroupid=[% basketgroup.id %]">[% basketgroup.name %]</a> >++ [% END %] >++ [% END %] >++ </td> >++ <td> >++ [% IF ( basket.closedate ) %] >++ <span title="[% basket.closedate %]">[% basket.closedate | $KohaDates %]</span> >++ [% ELSE %] >++ <span title="9999-99-99"></span> >++ [% END %] >++ </td> >++ <td> >++ <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">View</a> >++ >++ [% UNLESS ( basket.closedate ) %] >++ | <a id="addtoBasketLabel[% basket.basketno %]" href="#addtoBasket[% basket.basketno %]" role="button" data-toggle="modal">Add to basket</a> >++ <!-- Modal --> >++ <div id="addtoBasket[% basket.basketno %]" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno %]" aria-hidden="true" data-basketno="[% basket.basketname %]"> >++ <div class="modal-body"> >++ [% INCLUDE 'acquisitions-add-to-basket.inc' booksellerid=supplier.booksellerid basketno=basket.basketno %] >++ </div> >++ <div class="modal-footer"> >++ <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> >++ </div> >++ </div> >++ [% END %] >++ </td> >++ </tr> >++ [% END %][%# FOREACH basket IN supplier.loop_basket %] >++ </tbody> >++ </table> >++ >++ [% ELSE %] >++ <p>No pending baskets</p> >++ [% END %][%# IF ( supplier.loop_basket.size ) %] >++ </div> >++ </div> >++ [% END %][%# FOREACH supplier IN loop_suppliers %] >++ </div> >++[% END %][%# IF ( loop_suppliers.size ) %] >++</div> >++</div> >++<div class="yui-b"> >++[% IF ( booksellerid ) %] >++[% INCLUDE 'vendor-menu.inc' %] >++[% END %] >++[% INCLUDE 'acquisitions-menu.inc' %] >++</div> >++</div> >++[% INCLUDE 'intranet-bottom.inc' %] >+-- >+1.7.9.5 >+ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index aac163f..3f62d51 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -279,6 +279,25 @@ function placeHold () { > [% END %] > [% END %] > >+[% IF ( allowaddingitem ) %] >+<div class="yui-g"> >+<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post"> >+ <fieldset class="brief"> >+ <legend>Add an item to <i>[% shelfname | html %]</i></legend> >+ <ol> >+ <li> >+ <label for="addbarcode">Barcode:</label> >+ <input name="addbarcode" type="text" id="addbarcode" size="14" /> >+ <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /> >+ <input type="hidden" name="modifyshelfcontents" value="1" /> >+ <input type="submit" value="Add" /> >+ </li> >+ </ol> >+ </fieldset> >+</form> >+</div> >+[% END %]<!-- /allowaddingitem --> >+ > [% IF ( viewshelf ) %] > <div class="yui-g"> > [% IF ( itemsloop ) %] >@@ -413,24 +432,7 @@ function placeHold () { > </div> > [% END %]<!-- /viewshelf --> > >-[% IF ( allowaddingitem ) %] >-<div class="yui-g"> >-<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post"> >- <fieldset class="brief"> >- <legend>Add an item to <i>[% shelfname | html %]</i></legend> >- <ol> >- <li> >- <label for="addbarcode">Barcode:</label> >- <input name="addbarcode" type="text" id="addbarcode" size="14" /> >- <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /> >- <input type="hidden" name="modifyshelfcontents" value="1" /> >- <input type="submit" value="Add" /> >- </li> >- </ol> >- </fieldset> >-</form> >-</div> >-[% END %]<!-- /allowaddingitem --> >+ > > [% IF ( debug ) %] > [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt~ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt~ >new file mode 100644 >index 0000000..aac163f >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt~ >@@ -0,0 +1,643 @@ >+[% INCLUDE 'doc-head-open.inc' %] >+<title>Koha › [% IF ( viewshelf ) %]Lists › Contents of [% shelfname | html %][% ELSE %]Lists[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list [% shelfname | html %][% END %]</title> >+[% INCLUDE 'doc-head-close.inc' %] >+[% IF ( viewshelf ) %] >+ <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> >+ <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script> >+[% END %] >+<script type="text/javascript"> >+//<![CDATA[ >+ >+var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); >+var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the shelf?"); >+var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?"); >+[% IF ( viewshelf ) %] >+$(document).ready(function(){ >+ [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %] >+ $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Clear all")+"<\/a>"); >+ $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Select all")+"<\/a>"); >+ $("#CheckAll").click(function(){ >+ $(".checkboxed").checkCheckboxes(); >+ return false; >+ }); >+ $("#CheckNone").click(function(){ >+ $(".checkboxed").unCheckCheckboxes(); >+ return false; >+ }); >+ $(".placehold").on("click",function(e){ >+ placeHold(); >+ e.preventDefault(); >+ }); >+ $(".addtocart").show(); >+ var param1 = "| <label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>"; >+ [% IF ( intranetbookbag ) %] >+ param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; >+ [% END %] >+ [% IF ( virtualshelves ) %] >+ [% IF ( addbarshelves ) %] >+ param1 += "<optgroup label=\""+_("Your lists:")+"\">"; >+ [% FOREACH addbarshelvesloo IN addbarshelvesloop %] >+ [% IF ( shelfnumber != addbarshelvesloo.shelfnumber ) %] >+ param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>"; >+ [% END %] >+ [% END %] >+ param1 += "<\/optgroup>"; >+ [% END %] >+ [% IF ( addpubshelves ) %] >+ param1 += "<optgroup label=\""+_("Public lists:")+"\">"; >+ [% FOREACH addpubshelvesloo IN addpubshelvesloop %] >+ [% IF ( shelfnumber != addpubshelvesloo.shelfnumber ) %] >+ param1 += "<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>"; >+ [% END %] >+ [% END %] >+ param1 += "<\/optgroup>"; >+ [% END %] >+ [% IF ( ( addbarshelvesloop && addbarshelvesloop.size > 9 ) || (addpubshelvesloop && addpubshelvesloop.size > 9 )) %] >+ param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>"; >+ [% END %] >+ param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>" >+ [% END %] >+ param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-mini\">"+_("Save")+"</button>"; >+ $("span.addto").html(param1); >+ $("#cartsubmit").on("click",function(e){ >+ cartList(); >+ e.preventDefault(); >+ }); >+ $("#addto").change(function(){ >+ cartList(); >+ }); >+ $(".addto").find("input:submit").click(function(e){ >+ e.preventDefault(); >+ cartList(); >+ }); >+ $("#selection_ops").show(); >+ $(".merge-items").on("click",function(e){ >+ e.preventDefault(); >+ MergeItems(); >+ }); >+ $("#listform").on("submit",function(e){ >+ >+ }); >+ $(".list-remove").on("click",function(e){ >+ if($(".selection").filter(":checked").length > 0){ >+ return confirm(MSG_REMOVE_FROM_LIST); >+ } else { >+ alert(MSG_NO_ITEM_SELECTED); >+ e.preventDefault(); >+ } >+ }); >+}); >+[% END %] >+ >+ function confirmDelete(message){ >+ if (window.confirm(message)) { >+ location.href="/cgi-bin/koha/virtualshelves/shelves.pl?[% IF ( showprivateshelves ) %]display=privateshelves&[% END %]shelves=1&DEL-[% shelfnumber %]=1&shelfoff=[% shelfoff %]"; >+ } else { >+ return false; >+ } >+ } >+ >+ /** >+ * This function checks if the adequate number of records are checked for merging >+ */ >+ function MergeItems() { >+ var checkboxes = $("input:checkbox:checked"); >+ var nbCheckbox = checkboxes.length; >+ if (nbCheckbox != 2) { >+ alert(_("Two records must be selected for merging.")); >+ } else { >+ location.href='/cgi-bin/koha/cataloguing/merge.pl?biblionumber=' + checkboxes[0].value + '&biblionumber=' + checkboxes[1].value; >+ } >+ return false; >+ } >+ >+ /** >+ * This function checks all checkboxes if all are empty, >+ * or unchecks all if any already checked. >+ */ >+ function CheckAll(){ >+ var checkboxes = document.getElementsByTagName('input'); >+ var nbCheckbox = checkboxes.length; >+ var check = areAllChecked(); >+ for(var i=0;i<nbCheckbox;i++){ >+ if(checkboxes[i].getAttribute('type') == "checkbox" ){ >+ checkboxes[i].checked = (check) ? 0 : 1; >+ } >+ } >+ } >+ /** >+ * This function returns true if ALL checkboxes are checked >+ */ >+ function areAllChecked(){ >+ var checkboxes = document.getElementsByTagName('input'); >+ var nbCheckbox = checkboxes.length; >+ for(var i=0;i<nbCheckbox;i++){ >+ if(checkboxes[i].getAttribute('type') == "checkbox" ){ >+ if(checkboxes[i].checked == 0){ >+ return false; >+ } >+ } >+ } >+ return true; >+ } >+ >+function placeHold () { >+ var checkedItems = $(".selection:checked"); >+ if ($(checkedItems).size() == 0) { >+ alert(MSG_NO_ITEM_SELECTED); >+ return false; >+ } >+ var bibs = ""; >+ $(checkedItems).each(function() { >+ bibs += $(this).val() + "/"; >+ }); >+ $("#hold_form_biblios").val(bibs); >+ $("#hold_form").submit(); >+ return false; >+} >+ /** >+ * This function checks to make sure a list title is assigned >+ */ >+ function Check(f) { >+ var _alertString=""; >+ var alertString2; >+ >+ if($("#shelfname").val() == ""){ >+ _alertString += "- "+_("You must enter a List Name") + "\n"; >+ } >+ >+ if (_alertString.length==0) { >+ f.submit(); >+ } else { >+ alertString2 = _("Form not submitted because of the following problem(s)"); >+ alertString2 += "\n------------------------------------------------------------------------------------\n\n"; >+ alertString2 += _alertString; >+ alert(alertString2); >+ } >+ } >+ function cartList(){ >+ var checkboxes = $("#searchresults").find(":checkbox"); >+ var vshelf = vShelfAdd(checkboxes); >+ if($("#addto").find("option:selected").attr("value") == "addtolist"){ >+ var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s",""); >+ if (vshelf) { >+ openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500); >+ } >+ return false; >+ } else if($("#addto").find("option:selected").attr("value") == "newlist"){ >+ if (vshelf) { >+ openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500); >+ } >+ return false; >+ } else if($("#addto").find("option:selected").attr("value") == "morelists"){ >+ if (vshelf) { >+ openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500); >+ } >+ return false; >+ } >+ if($("#addto").find("option:selected").attr("value") == "addtocart"){ >+ addMultiple(checkboxes); >+ return false; >+ } >+ } >+//]]> >+</script> >+</head> >+<body id="lists_shelves" class="lists"> >+[% INCLUDE 'header.inc' %] >+[% INCLUDE 'cat-search.inc' %] >+ >+[% BLOCK list_permissions %] >+ <li> >+ <label for="permissions">Permissions: </label> >+ <select name="allow_add" id="allow_add"> >+ [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %] >+ [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %] >+ </select> >+ <span>anyone else to add entries.</span> >+ </li> >+ <li> >+ <label> </label> >+ <select name="allow_delete_own" id="allow_delete_own"> >+ [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %] >+ [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %] >+ </select> >+ <span>anyone to remove his own contributed entries.</span> >+ </li> >+ <li> >+ <label> </label> >+ <select name="allow_delete_other" id="allow_delete_other"> >+ [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %] >+ [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %] >+ </select> >+ <span>anyone to remove other contributed entries.</span> >+ </li> >+[% END %] >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> [% IF ( category1 ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a> [% ELSE %] Your lists [% END %] [% ELSIF ( category2 ) %] › [% IF ( viewshelf ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a> [% ELSE %] Public lists [% END %] [% ELSIF ( showprivateshelves ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a> [% ELSE %] Your lists [% END %] [% ELSIF ( showpublicshelves ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a> [% ELSE %] Public lists [% END %] [% END %] >+ >+[% IF ( viewshelf ) %]› Contents of <i>[% shelfname | html %]</i>[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list <i>[% shelfname | html %]</i>[% END %]</div> >+ >+<div id="doc2" class="yui-t7"> >+ <div id="bd"> >+ <div id="yui-main"> >+ <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %] >+ </div> >+[% IF ( paramsloop ) %] >+[% FOREACH paramsloo IN paramsloop %] >+<div class="yui-ge"> >+ <div class="yui-u first"> >+ [% IF ( paramsloo.already ) %]<div class="dialog alert">A List named [% paramsloo.already %] already exists!</div>[% END %] >+ [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %] >+ [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %] >+ [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %] >+ [% IF ( paramsloo.need_confirm ) %] >+ <div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty. >+ <br />It has <b>[% paramsloo.count %]</b> entries. >+ <br />Use the "Confirm" button below to confirm deletion. >+ </div> >+ [% END %] >+ [% IF ( paramsloo.nopermission ) %] >+ <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div> >+ [% END %] >+ [% IF ( paramsloo.failgetitem ) %] >+ <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div> >+ [% END %] >+ [% IF ( paramsloo.duplicatebiblio ) %] >+ <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div> >+ [% END %] >+ [% IF ( paramsloo.nothingdeleted) %] >+ <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div> >+ [% END %] >+ [% IF ( paramsloo.somedeleted) %] >+ <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div> >+ [% END %] >+ [% IF ( paramsloo.modifyfailure) %] >+ <div class="dialog message">ERROR: List could not be modified.</div> >+ [% END %] >+ </div> >+</div> >+[% END %] >+[% END %] >+ >+[% IF ( viewshelf ) %] >+ <div class="yui-g"> >+ [% IF ( itemsloop ) %] >+ >+ <h3>Contents of <i>[% shelfname | html %]</i></h3> >+ <div class="pages">[% pagination_bar %]</div> >+ <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed"> >+ <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /> >+ <input type="hidden" name="modifyshelfcontents" value="1" /> >+ >+[% IF direction == 'asc' %] >+ [% SET new_direction = 'desc' %] >+[% ELSE %] >+ [% SET direction = 'desc' %] >+ [% SET new_direction = 'asc' %] >+[% END %] >+ >+<div id="searchheader"> >+ [% IF ( itemsloop ) %] >+ <div id="selection_ops"><span class="checkall"></span> | >+ <span class="clearall"></span> >+ >+ <span class="addto">| </span> >+ >+ [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %] >+ <div class="btn-group"><button class="btn btn-mini placehold"><i class="icon-hold"></i> Place hold</button></div> >+ [% END %] >+ [% IF ( allowremovingitems ) %] >+ <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="icon-remove-sign"></i> Remove selected</button></div> >+ [% END %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-mini merge-items"><i class="icon-merge"></i> Merge selected</button></div>[% END %] >+ </div> >+ [% END %] >+</div> >+ >+ <table id="searchresults"> >+ <tr> >+ [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %] >+ >+ [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %] >+ <th> >+ <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% IF sort != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a> >+ [% IF sort == 'title' %] >+ <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" /> >+ [% ELSE %] >+ <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" /> >+ [% END %] >+ </th> >+ <th> >+ <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% IF sort != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a> >+ [% IF sort == 'author' %] >+ <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" /> >+ [% ELSE %] >+ <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" /> >+ [% END %] >+ </th> >+ <th>Date added</th> >+ <th> >+ <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% IF sort != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a> >+ [% IF sort == 'itemcallnumber' %] >+ <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" /> >+ [% ELSE %] >+ <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" /> >+ [% END %] >+ </th> >+ </tr> >+ [% FOREACH itemsloo IN itemsloop %] >+ [% UNLESS ( loop.odd ) %] >+ <tr class="highlight"> >+ [% ELSE %] >+ <tr> >+ [% END %] >+ [% IF ( itemsloop ) %] >+ <td> >+ [% IF ( itemsloo.confirm ) %] >+ <input type="hidden" name="CONFIRM-[% itemsloo.confirm %]" /> >+ <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" checked /> >+ [% ELSE %] >+ <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" /> >+ [% END %] >+ </td> >+ [% END %] >+ [% UNLESS ( item_level_itypes ) %]<td> >+ [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %] >+ </td>[% END %] >+ <td> >+ [% IF ( itemsloo.XSLTBloc ) %] >+ [% itemsloo.XSLTBloc %] >+ [% ELSE %] >+ [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %] >+ [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a> >+ [% END %] >+ <p class="hold"> >+ [% IF ( itemsloo.notforloan ) %] >+ <span class="noholdstext">No holds allowed</span> >+ [% ELSE %] >+ [% IF ( itemsloo.ITEM_RESULTS.size ) %] >+ <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a> >+ [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %] >+ [% ELSE %] >+ <span class="noholdstext">No holds allowed</span> >+ [% END %] >+ [% END %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] >+ | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a> >+ [% END %] >+ [% IF ( CAN_user_editcatalogue_edit_items ) %] >+ | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a> >+ [% END %] >+ </p> >+ </td> >+ <td>[% itemsloo.author %]</td> >+ <td>[% itemsloo.dateadded %]</td> >+ <td> >+ <ul> >+ [% FOREACH result IN itemsloo.ITEM_RESULTS %] >+ <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %] >+ [% IF ( result.itemcallnumber ) %] >+ [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=[% result.itemcallnumber |url %]">[% result.itemcallnumber %]</a>] >+ [% END %] >+ </li> >+ [% END %] >+ </ul> >+ </td> >+ </tr> >+ [% END %]<!-- /itemsloop --> >+ </table> >+ <div class="pages">[% pagination_bar %]</div> >+</form> >+ >+ [% END %] >+ </div> >+[% END %]<!-- /viewshelf --> >+ >+[% IF ( allowaddingitem ) %] >+<div class="yui-g"> >+<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post"> >+ <fieldset class="brief"> >+ <legend>Add an item to <i>[% shelfname | html %]</i></legend> >+ <ol> >+ <li> >+ <label for="addbarcode">Barcode:</label> >+ <input name="addbarcode" type="text" id="addbarcode" size="14" /> >+ <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /> >+ <input type="hidden" name="modifyshelfcontents" value="1" /> >+ <input type="submit" value="Add" /> >+ </li> >+ </ol> >+ </fieldset> >+</form> >+</div> >+[% END %]<!-- /allowaddingitem --> >+ >+[% IF ( debug ) %] >+ [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %] >+ [% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %] >+[% END %] >+ >+[% IF ( seflag ) %] >+<div class="yui-ge"> >+ <div class="yui-u first"> >+ <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl"> >+ <fieldset class="rows"> >+ >+ [% IF ( shelves ) %] >+ <input type="hidden" name="shelves" value="1" /> >+ <legend>Create a new list</legend> >+ <ol> >+ <li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" /></li> >+ <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li> >+ <li><label for="sortfield" >Sort this list by: </label> >+ <select name="sortfield" id="sortfield"> >+ <option value="title">Title</option> >+ <option value="author">Author</option> >+ <option value="copyrightdate">Copyrightdate</option> >+ <option value="itemcallnumber">Call number</option> >+ </select></li> >+ <li><label for="category">Category: </label> >+ <select name="category" id="category"> >+ <option value="1">Private</option> >+ <option value="2">Public</option> >+ </select></li> >+ [% INCLUDE list_permissions %] >+ </ol> >+ [% END %] >+ >+ [% IF ( edit ) %] >+ <input type="hidden" name="op" value="modifsave" /> >+ [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %] >+ <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> >+ <legend>Edit list <i>[% shelfname | html %]</i></legend> >+ <ol> >+ <li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" /></li> >+ <li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]" />[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]</li> >+ <li><label for="sortfield" >Sort this list by: </label> >+ <select name="sortfield"> >+ [% IF ( sortfield == "title" ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %] >+ [% IF ( sortfield == "author" ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %] >+ [% IF ( sortfield == "copyrightdate" ) %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %] >+ [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %] >+ </select></li> >+ <li><label for="category">Category: </label> >+ <select id="category" name="category"> >+ [% IF ( category1 ) %] >+ <option value="1" selected="selected">Private</option> >+ [% ELSE %] >+ <option value="1">Private</option> >+ [% END %] >+ [% IF ( category2 ) %] >+ <option value="2" selected="selected">Public</option> >+ [% ELSE %] >+ <option value="2">Public</option> >+ [% END %] >+ </select></li> >+ [% INCLUDE list_permissions %] >+ </ol> >+ [% END %] >+ >+ </fieldset> >+ <fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" /> >+ [% IF ( showprivateshelves ) %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>[% ELSE %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>[% END %] >+ </fieldset> >+ </form> >+ </div> >+ <div class="yui-u"> >+ <div class="help"><ul> >+ <li>A <b>Private</b> list is managed by you and can be seen only by you.</li> >+ <li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li> >+ <br/> >+ <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li> >+ </ul> >+ </div> >+ </div> >+</div> >+[% END %]<!-- /seflag --> >+ >+[% UNLESS ( vseflag ) %] >+ <h2>Lists</h2> >+ <div class="statictabs"> >+ <ul> >+ [% IF ( showprivateshelves ) %] >+ <li id="privateshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li> >+ [% ELSE %] >+ <li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li> >+ [% END %] >+ [% IF ( showpublicshelves ) %] >+ <li id="publicshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li> >+ [% ELSE %] >+ <li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li> >+ [% END %] >+ </ul> >+ [% IF ( showprivateshelves ) %] >+ <div id="privateshelves" class="tabs-container" style="display:block;"> >+ [% ELSE %] >+ <div id="privateshelves" class="tabs-container" style="display:none;"> >+ [% END %] >+ [% IF ( shelveslooppriv ) %] >+ <div class="pages">[% pagination_bar %]</div> >+ <table> >+ <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr> >+ [% FOREACH shelveslooppri IN shelveslooppriv %] >+ [% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] >+ <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td> >+ <td>[% shelveslooppri.count %] item(s)</td> >+ <td>[% IF ( shelveslooppri.sortfield == "author" ) %]Author[% ELSIF ( shelveslooppri.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelveslooppri.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td> >+ <td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %] >+ [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %] >+ </td> >+ <td> >+ [% IF ( shelveslooppri.mine ) %] >+ <form action="merge.pl" method="get"> >+ <input type="hidden" name="shelf" value="[% shelveslooppri.shelf %]" /> >+ </form> >+ <form action="shelves.pl" method="get"> >+ <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" /> >+ <input type="hidden" name="op" value="modif" /> >+ <input type="hidden" name="display" value="privateshelves" /> >+ <input type="submit" class="editshelf" value="Edit" /> >+ </form> >+ <form action="shelves.pl" method="post"> >+ <input type="hidden" name="shelfoff" value="[% shelfoff %]" /> >+ <input type="hidden" name="shelves" value="1" /> >+ <input type="hidden" name="display" value="privateshelves" /> >+ <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" /> >+ [% IF ( shelveslooppri.confirm ) %] >+ <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" /> >+ <input type="submit" class="approve" value="Confirm" /> >+ [% ELSE %] >+ <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> >+ [% END %] >+ </form> >+ [% ELSE %] >+ None >+ [% END %] >+ </td> >+ </tr> >+ [% END %] >+ </table> >+ [% ELSE %] >+ <p>No private lists.</p> >+ [% END %]<!-- /shelveslooppriv --> >+ </div><!-- /privateshelves --> >+ >+ [% IF ( showpublicshelves ) %] >+ <div id="publicshelves" class="tabs-container" style="display:block;"> >+ [% ELSE %] >+ <div id="publicshelves" class="tabs-container" style="display:none;"> >+ [% END %] >+ [% IF ( shelvesloop ) %] >+ <div class="pages">[% pagination_bar %]</div> >+ <table> >+ <tr><th>List Name</th><th>Created by</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr> >+ [% FOREACH shelvesloo IN shelvesloop %] >+ [% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] >+ <td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td> >+ <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% shelvesloo.owner %]">[% shelvesloo.ownername %]</td> >+ <td>[% shelvesloo.count %] item(s)</td> >+ <td>[% IF ( shelvesloo.sortfield == "author" ) %]Author[% ELSIF ( shelvesloo.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelvesloo.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td> >+ <td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %] >+ [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %] >+ </td> >+ <td> >+ [% IF ( shelvesloo.manageshelf ) %] >+ <form action="shelves.pl" method="get"> >+ <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" /> >+ <input type="hidden" name="op" value="modif" /> >+ <input type="submit" class="editshelf" value="Edit" /> >+ </form> >+ <form action="shelves.pl" method="post"> >+ <input type="hidden" name="shelfoff" value="[% shelfoff %]" /> >+ <input type="hidden" name="shelves" value="1" /> >+ <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" /> >+ [% IF ( shelvesloo.confirm ) %] >+ <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" /> >+ <input type="submit" class="approve" value="Confirm" /> >+ [% ELSE %] >+ <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" /> >+ [% END %] >+ </form> >+ [% ELSE %] >+ None >+ [% END %] >+ </td> >+ </tr> >+ [% END %] >+ </table> >+ [% ELSE %] >+ [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %] >+ [% END %]<!-- /shelvesloop --> >+ </div><!-- /publicshelves --> >+ </div> >+[% END %] >+ >+<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> >+ <!-- Value will be set here by placeHold() --> >+ <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" /> >+ <input type="hidden" name="multi_hold" value="1"/> >+</form> >+ >+</div> >+</div> >+[% INCLUDE 'intranet-bottom.inc' %] >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11325
:
23921
|
40231
|
40421
|
40475