<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>");
+ $("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;
$(".checkboxed").unCheckCheckboxes();
return false;
});
+ $("#placehold").show();
});
function confirmDelete(message){
if (window.confirm(message)) {
- location.href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1";
+ 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;
}
}
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;
+}
+//]]>
</script>
-<style type="text/css">
- input.confirm {
- background:lightblue url(../../img/button-bg.gif) repeat-x scroll left top;
- border-width:2pt;
- }
-</style>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<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_IF NAME="manageshelf" -->
+ <p>
+ <span class="checkall"></span>
+ <span class="clearall"></span>
+ </p>
+ <!-- /TMPL_IF -->
<!-- TMPL_VAR name='pagination_bar'-->
<table>
<tr>
<td>
<!-- TMPL_IF NAME="confirm" -->
<input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" />
- <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" checked />
+ <input type="checkbox" class="selection" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" checked />
<!-- TMPL_ELSE -->
- <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
+ <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" -->
- <!-- /TMPL_UNLESS --></td>
+ </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" -->">
<a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
- <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
+ <!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
</td>
<td><!-- TMPL_VAR NAME="author" --></td>
<td><!-- TMPL_VAR NAME="dateadded" --></td>
</fieldset>
<fieldset class="action">
<!-- TMPL_IF name="manageshelf" -->
+ <input type="button" id="placehold" style="display:none" onclick="placeHold(); return false;" value="Place Hold"/>
<input type="submit" value="Remove selected Items" onclick='return confirm(_("Are you sure you want to remove these items from the shelf?"))' />
<!-- /TMPL_IF -->
</fieldset>
<!-- TMPL_UNLESS NAME="vseflag" -->
<h2>Lists</h2>
- <ul class="link-tabs">
+ <div class="toptabs">
+ <ul class="ui-tabs-nav">
<!-- TMPL_IF NAME="showprivateshelves" -->
- <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a></li>
+ <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="off"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a></li>
+ <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="on"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a></li>
+ <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="off"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a></li>
+ <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="tab-container" style="display:block;">
+ <div id="privateshelves" class="ui-tabs-panel" style="display:block;">
<!-- TMPL_ELSE -->
- <div id="privateshelves" class="tab-container" style="display:none;">
+ <div id="privateshelves" class="ui-tabs-panel" style="display:none;">
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="shelveslooppriv" -->
<!-- TMPL_VAR name='pagination_bar'-->
<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?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
+ <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 -->
</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="confirm" value="Confirm" />
+ <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 -->
<tr><td colspan="4">No Private Lists.</td></tr>
<!-- /TMPL_IF --><!-- /shelveslooppriv -->
</table>
- <a class="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New List</a>
</div><!-- /privateshelves -->
<!-- TMPL_IF NAME="showpublicshelves" -->
- <div id="publicshelves" class="tab-container" style="display:block;">
+ <div id="publicshelves" class="ui-tabs-panel" style="display:block;">
<!-- TMPL_ELSE -->
- <div id="publicshelves" class="tab-container" style="display:none;">
+ <div id="publicshelves" class="ui-tabs-panel" style="display:none;">
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="shelvesloop" -->
<!-- TMPL_VAR name='pagination_bar'-->
<!-- 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" -->