Owen Leonard
9074faee25
Recent change to C4/VirtualShelves/Page.pm caused display of subtitles to break in the staff client display of lists Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
451 lines
21 KiB
Cheetah
451 lines
21 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › <!-- TMPL_IF NAME="viewshelf" -->Lists › Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Lists<!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> › Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> › Edit List <!-- TMPL_VAR name="shelfname"--><!-- /TMPL_IF --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
|
|
|
|
$(document).ready(function(){
|
|
$("#addbarcode").focus();
|
|
$("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").show();
|
|
});
|
|
|
|
function confirmDelete(message){
|
|
if (window.confirm(message)) {
|
|
location.href="/cgi-bin/koha/virtualshelves/shelves.pl?<!-- TMPL_IF NAME="showprivateshelves" -->display=privateshelves&<!-- /TMPL_IF -->shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1";
|
|
} 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(f.addshelf.value.length ==0){
|
|
_alertString += _("- You must enter a List Name\n");
|
|
}
|
|
|
|
if (_alertString.length==0) {
|
|
document.Aform.submit();
|
|
} else {
|
|
alertString2 = _("Form not submitted because of the following problem(s)\n");
|
|
alertString2 += "------------------------------------------------------------------------------------\n\n";
|
|
alertString2 += _alertString;
|
|
alert(alertString2);
|
|
}
|
|
}
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
|
|
<!-- TMPL_IF NAME="viewshelf" -->› Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i><!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> › Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> › Edit List <i><!-- TMPL_VAR name="shelfname"--></i><!-- /TMPL_IF --></div>
|
|
|
|
<div id="doc" class="yui-t7">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-g"><!-- TMPL_INCLUDE NAME="virtualshelves-toolbar.inc" -->
|
|
</div>
|
|
<!-- TMPL_IF NAME="paramsloop" -->
|
|
<!-- TMPL_LOOP NAME="paramsloop" -->
|
|
<div class="yui-ge">
|
|
<div class="yui-u first">
|
|
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <!-- TMPL_VAR NAME="already" --> already exists!</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="need_confirm" -->
|
|
<div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
|
|
<br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
|
|
<br />Use the "Confirm" button below to confirm deletion.
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="nopermission" -->
|
|
<div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="failgetitem" -->
|
|
<div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="duplicatebiblio" -->
|
|
<div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="viewshelf" -->
|
|
<div class="yui-g">
|
|
<!-- TMPL_IF NAME="itemsloop" -->
|
|
|
|
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" class="checkboxed">
|
|
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
|
|
<input type="hidden" name="modifyshelfcontents" value="1" />
|
|
<fieldset>
|
|
<legend>Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
|
|
|
|
<!--TMPL_IF NAME="manageshelf" -->
|
|
<p><span class="checkall"></span> |
|
|
<span class="clearall"></span></p>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_VAR name='pagination_bar'-->
|
|
<table>
|
|
<tr>
|
|
<!--TMPL_IF NAME="manageshelf" --><th class="checkall"> </th><!-- /TMPL_IF -->
|
|
<!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
|
|
<th>Title</th>
|
|
<th>Author</th>
|
|
<th>Date Added</th>
|
|
<th> </th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="itemsloop" -->
|
|
<!-- TMPL_UNLESS NAME="__odd__" -->
|
|
<tr class="highlight">
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- TMPL_IF NAME="manageshelf" -->
|
|
<td>
|
|
<!-- TMPL_IF NAME="confirm" -->
|
|
<input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" />
|
|
<input type="checkbox" class="selection" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" checked />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="checkbox" class="selection" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_UNLESS NAME="item-level_itypes" --><td>
|
|
<img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- TMPL_VAR NAME="description" -->
|
|
</td><!-- /TMPL_UNLESS -->
|
|
<td>
|
|
<!-- TMPL_IF name="BiblioDefaultViewmarc" -->
|
|
<a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
|
|
<!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" -->
|
|
<a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
|
|
<!-- TMPL_ELSE -->
|
|
<a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="title" escape="html" --><!-- TMPL_LOOP NAME="subtitle" --> <!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP --></a>
|
|
</td>
|
|
<td><!-- TMPL_VAR NAME="author" --></td>
|
|
<td><!-- TMPL_VAR NAME="dateadded" --></td>
|
|
<td>
|
|
<!-- TMPL_UNLESS name="notforloan" -->
|
|
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
|
|
<!-- /TMPL_UNLESS -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP --><!-- /itemsloop -->
|
|
</table><fieldset class="action">
|
|
<!-- TMPL_IF name="manageshelf" -->
|
|
<input type="button" id="placehold" style="display:none" onclick="placeHold(); return false;" value="Place Holds" />
|
|
<input type="submit" value="Remove selected Items" onclick="return confirm(_('Are you sure you want to remove these items from the shelf?'));" />
|
|
<input type="submit" value="Merge selected Items" onclick="return MergeItems();" />
|
|
<!-- /TMPL_IF -->
|
|
</fieldset>
|
|
</fieldset>
|
|
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- /TMPL_IF --><!-- /viewshelf -->
|
|
|
|
<!-- TMPL_IF name="manageshelf" -->
|
|
<div class="yui-g">
|
|
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
|
|
<fieldset class="brief">
|
|
<legend>Add an item to <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
|
|
<ol>
|
|
<li>
|
|
<label for="addbarcode">Barcode:</label>
|
|
<input name="addbarcode" type="text" id="addbarcode" size="14" />
|
|
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
|
|
<input type="hidden" name="modifyshelfcontents" value="1" />
|
|
<input type="submit" value="Add" />
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF --><!-- /manageshelf -->
|
|
|
|
<!-- TMPL_IF name="debug" -->
|
|
<!-- TMPL_IF name="edit" --><div>Edit is on (<!-- TMPL_VAR name="shelfname" -->)</div><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="seflag" --><div>seflag is on (<!-- TMPL_VAR name="seflag" -->)</div><!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="seflag" -->
|
|
<div class="yui-ge">
|
|
<div class="yui-u first">
|
|
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
|
|
<fieldset class="rows">
|
|
|
|
<!-- TMPL_IF NAME="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="<!-- TMPL_VAR name="loggedinuser" -->" /><!-- TMPL_VAR name="loggedinusername" --></li>
|
|
<li><label for="sortfield" >Sort this list by: </label>
|
|
<select name="sortfield">
|
|
<!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="sort_copyrightdate" --><option value="copyrightdate" selected="selected">Copyrightdate</option><!-- TMPL_ELSE --><option value="copyrightdate">Copyrightdate</option><!-- /TMPL_IF -->
|
|
</select></li>
|
|
<li><label for="category">Category: </label>
|
|
<select name="category" id="category">
|
|
<option value="1">Private</option>
|
|
<option value="2">Public</option>
|
|
<option value="3">Open</option>
|
|
</select></li></ol>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF name="edit" -->
|
|
<input type="hidden" name="op" value="modifsave" />
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" />
|
|
<legend>Edit List <i><!-- TMPL_VAR name="shelfname" --></i></legend>
|
|
<ol>
|
|
<li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value='<!-- TMPL_VAR name="shelfname" ESCAPE="HTML" -->' /></li>
|
|
<li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="<!-- TMPL_IF NAME="owner" --><!-- TMPL_VAR NAME="ownername" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="loggedinusername" --><!-- /TMPL_IF -->" /><!-- TMPL_IF NAME="owner" --><!-- TMPL_VAR NAME="ownername" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="loggedinusername" --><!-- /TMPL_IF --></li>
|
|
<li><label for="sortfield" >Sort this list by: </label>
|
|
<select name="sortfield">
|
|
<!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="sort_copyrightdate" --><option value="copyrightdate" selected="selected">Copyrightdate</option><!-- TMPL_ELSE --><option value="copyrightdate">Copyrightdate</option><!-- /TMPL_IF -->
|
|
</select></li>
|
|
<li><label for="category">Category: </label>
|
|
<select id="category" name="category">
|
|
<!-- TMPL_IF name="category1" -->
|
|
<option value="1" selected="selected">Private</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="1">Private</option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="category2" -->
|
|
<option value="2" selected="selected">Public</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="2">Public</option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="category3" -->
|
|
<option value="3" selected="selected">Open</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="3">Open</option>
|
|
<!-- /TMPL_IF -->
|
|
</select></li></ol>
|
|
<!-- /TMPL_IF -->
|
|
|
|
</fieldset>
|
|
<fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></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>
|
|
<li> A <b>Open</b> List can be seen and managed by everybody.</li>
|
|
</ul></div>
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_IF --><!-- /seflag -->
|
|
|
|
<!-- TMPL_UNLESS NAME="vseflag" -->
|
|
<h2>Lists</h2>
|
|
<div class="toptabs">
|
|
<ul class="ui-tabs-nav">
|
|
<!-- TMPL_IF NAME="showprivateshelves" -->
|
|
<li id="privateshelves_tab" class="ui-tabs-selected"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a></li>
|
|
<!-- TMPL_ELSE -->
|
|
<li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a></li>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="showpublicshelves" -->
|
|
<li id="publicshelves_tab" class="ui-tabs-selected"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a></li>
|
|
<!-- TMPL_ELSE -->
|
|
<li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a></li>
|
|
<!-- /TMPL_IF -->
|
|
</ul>
|
|
<!-- TMPL_IF NAME="showprivateshelves" -->
|
|
<div id="privateshelves" class="ui-tabs-panel" style="display:block;">
|
|
<!-- TMPL_ELSE -->
|
|
<div id="privateshelves" class="ui-tabs-panel" style="display:none;">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="shelveslooppriv" -->
|
|
<!-- TMPL_VAR name='pagination_bar'-->
|
|
<table>
|
|
<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
|
|
<!-- TMPL_LOOP NAME="shelveslooppriv" -->
|
|
<!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
|
|
<td><a href="shelves.pl?<!-- TMPL_IF NAME="showprivateshelves" -->display=privateshelves&<!-- /TMPL_IF -->viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
|
|
<td><!-- TMPL_VAR NAME="count" --> item(s)</td>
|
|
<td><!-- TMPL_VAR NAME="sortfield" --></td>
|
|
<td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_IF NAME="mine" -->
|
|
<form action="merge.pl" method="get">
|
|
<input type="hidden" name="shelf" value="<!-- TMPL_VAR NAME="shelf" -->" />
|
|
</form>
|
|
<form action="shelves.pl" method="get">
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="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="shelves" value="1" />
|
|
<input type="hidden" name="display" value="privateshelves" />
|
|
<input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
|
|
<!-- TMPL_IF NAME="confirm" -->
|
|
<input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
|
|
<input type="submit" class="approve" value="Confirm" />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
|
|
<!-- /TMPL_IF -->
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
None
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<!-- TMPL_ELSE -->
|
|
<p>No Private Lists.</p>
|
|
<!-- /TMPL_IF --><!-- /shelveslooppriv -->
|
|
</div><!-- /privateshelves -->
|
|
|
|
<!-- TMPL_IF NAME="showpublicshelves" -->
|
|
<div id="publicshelves" class="ui-tabs-panel" style="display:block;">
|
|
<!-- TMPL_ELSE -->
|
|
<div id="publicshelves" class="ui-tabs-panel" style="display:none;">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="shelvesloop" -->
|
|
<!-- TMPL_VAR name='pagination_bar'-->
|
|
<table>
|
|
<tr><th>List Name</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
|
|
<!-- TMPL_LOOP NAME="shelvesloop" -->
|
|
<!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
|
|
<td><a href="shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
|
|
<td><!-- TMPL_VAR NAME="count" --> item(s)</td>
|
|
<td><!-- TMPL_VAR NAME="sortfield" --></td>
|
|
<td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_IF NAME="manageshelf" -->
|
|
<form action="shelves.pl" method="get">
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="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="shelves" value="1" />
|
|
<input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
|
|
<!-- TMPL_IF NAME="confirm" -->
|
|
<input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
|
|
<input type="submit" class="confirm" value="Confirm" />
|
|
<!-- TMPL_ELSE -->
|
|
<input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
|
|
<!-- /TMPL_IF -->
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
None
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF --><!-- /shelvesloop -->
|
|
</div><!-- /publicshelves -->
|
|
</div>
|
|
<!-- /TMPL_UNLESS -->
|
|
|
|
<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>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|