Koha/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tmpl
2009-11-03 17:17:28 +01:00

433 lines
17 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Your Cart
<!-- TMPL_IF NAME="print_basket" --></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Language" content="en-us" />
<style type="text/css">
@import url(<!-- TMPL_VAR NAME="themelang" -->/css/print.css);
</style>
<!-- TMPL_ELSE --><!-- 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" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function()
{
$("#itemst").tablesorter({
headers: { 0: { sorter: false }}
});
}
);
function placeHold () {
var checkedItems = $("input:checkbox:checked");
if ($(checkedItems).size() == 0) {
alert(MSG_NO_RECORD_SELECTED);
return false;
}
var bibs = "";
var badBibs = false;
$(checkedItems).each(function() {
var bib = $(this).val();
bibs += bib + "/";
});
var newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs;
if ($(checkedItems).size() > 1) { newloc += "&multi_hold=1"; }
window.opener.location = newloc;
window.close();
}
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
function tagSelected() {
var bibs = document.getElementById('records').value;
if (bibs) {
$("#tagsel_tag").hide();
$("#tag_hides").hide();
$("#tagsel_form").show();
} else {
alert(MSG_NO_RECORD_SELECTED);
}
}
function tagCanceled() {
$("#tagsel_form").hide();
$("#tagsel_tag").show();
$("#tag_hides").show();
}
function tagAdded() {
var checkedBoxes = $("input:checkbox:checked");
if (!$(checkedBoxes).size()) {
alert(MSG_NO_RECORD_SELECTED);
return false;
}
var tag = $("#tagsel_new").val();
if (!tag || (tag == "")) {
alert(MSG_NO_TAG_SPECIFIED);
return false;
}
var bibs = [];
for (var i = 0; i < $(checkedBoxes).size(); i++) {
var box = $(checkedBoxes).get(i);
bibs[i] = $(box).val();
}
KOHA.Tags.add_multitags_button(bibs, tag);
return false;
}
$(document).ready(function(){
$("#CheckAll").click(function(){
var checked = [];
$("#bookbag_form").checkCheckboxes("*", true).each(
function() {
selRecord(this.value,true);
}
);
return false;
});
$("#CheckNone").click(function(){
var checked = [];
$("#bookbag_form").unCheckCheckboxes("*",true).each(
function() {
selRecord(this.value,false);
}
);
return false;
});
$(".holdsep").text("| ");
$(".hold").text(_("Place Hold"));
<!-- TMPL_IF NAME="TagsEnabled" -->
<!-- TMPL_IF NAME="TagsInputOnList" -->
$(".tagsep").text("| ");
$("#tagsel_tag").text(_("Tag"));
$("#tagsel_button").click(function(){
tagAdded();
return false;
});
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
});
//]]>
</script>
<!-- /TMPL_IF -->
</head>
<!-- TMPL_IF NAME="print_basket" --><body id="basket" onload="print();history.back();"><!-- TMPL_ELSE --><body id="basket"><!-- /TMPL_IF -->
<div id="doc" class="yui-t7">
<div class="container">
<!-- TMPL_UNLESS NAME="print_basket" -->
<h1>Your Cart</h1>
<div id="toolbar">
<ul class="toolbar">
<li>
<span id="addchild" class="yui-button yui-link-button"><span class="first-child">
<!-- TMPL_IF NAME="verbose" --><a href="basket.pl" class="brief" onclick="showLess(); return false;">Brief Display</a><!-- TMPL_ELSE --><a href="basket.pl" class="detail" onclick="showMore(); return false;">More Details</a><!-- /TMPL_IF -->
</span></span>
</li>
<li>
<span id="receive" class="yui-button yui-link-button"><span class="first-child">
<a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a>
</span></span>
</li>
<li>
<span id="savemenuc" class="yui-button yui-link-button"><span class="first-child">
<a class="download" href="basket.pl" onclick="downloadBasket(); return false;">Download</a>
</span></span>
</li>
<li>
<span id="printmenuc" class="yui-button yui-link-button"><span class="first-child">
<a class="print" href="basket.pl" onclick="printBasket(); return false;">Print</a>
</span></span>
</li>
<li>
<span id="delete" class="yui-button yui-link-button"><span class="first-child">
<a class="empty" href="basket.pl" onclick="delBasket(); return false;">Empty and Close</a>
</span></span>
</li>
<li>
<span id="delete" class="yui-button yui-link-button"><span class="first-child">
<a class="hide" href="basket.pl" onclick="quit(); return false;">Hide Window</a>
</span></span>
</li>
</ul>
</div>
<!-- /TMPL_UNLESS -->
<!-- TMPL_IF NAME="verbose" -->
<!-- TMPL_UNLESS NAME="print_basket" --><p style="padding: 7px 0; border-top : 1px solid #E8E8E8;"><a id="CheckAll" href="#">Select All</a> <a id="CheckNone" href="#">Clear All</a> | <b>Selected items :</b>
<span id="tag_hides">
<a href="#" onclick="delSelRecords(); return false;">Remove</a>
<!-- TMPL_IF NAME="loggedinusername" -->
| <a href="#" onclick="addSelToShelf(); return false;">Add to a list</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
| <a href="#" onclick="placeHold(); return false;">Place Hold</a>
<!-- /TMPL_IF -->
<span class="tagsep"></span>
<a href="#" onclick="tagSelected(); return false;"><span id="tagsel_tag"></span></a>
</span>
<span id="tagsel_form" style="display:none">
<label for="tagsel_new" style="display:inline">New&nbsp;Tag:</label>
<input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
<input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button"
type="submit" value="Add" style="display:inline" />
<a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
</span>
</p><!-- /TMPL_UNLESS -->
<form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
<h3>
<!-- TMPL_IF NAME="print_basket" -->
<!-- TMPL_VAR NAME="title" -->
<!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="author" --> <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<input type="checkbox" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="bib<!-- TMPL_VAR NAME="biblionumber" -->" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" onclick="selRecord(value,checked)" />
<!-- TMPL_VAR NAME="title" escape="html" -->
<!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="author" --> <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</h3>
<!-- COinS / OpenURL -->
<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=<!-- TMPL_VAR NAME="author" -->&amp;rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&amp;rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&amp;rft.tpages=<!-- TMPL_VAR NAME="size" -->&amp;rft.isbn=<!-- TMPL_VAR NAME="isbn" ESCAPE="url" -->&amp;rft.aucorp=&amp;rft.place=<!-- TMPL_VAR NAME="place" -->&amp;rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&amp;rft.edition=<!-- TMPL_VAR NAME="edition" -->&amp;rft.series=<!-- TMPL_VAR NAME="series" -->&amp;rft.genre="></span>
<table>
<!-- TMPL_IF name="isbn" -->
<tr>
<th scope="row">ISBN</th>
<td><!-- TMPL_VAR NAME="isbn" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF "HASAUTHORS" -->
<tr>
<th scope="row">Author(s)</th>
<td>
<!-- TMPL_IF NAME="author" -->
<p><!-- TMPL_VAR NAME="author" --></p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="MARCAUTHORS" -->
<!-- TMPL_LOOP NAME="MARCAUTHORS" -->
<p> <!-- TMPL_LOOP NAME="MARCAUTHOR_SUBFIELDS_LOOP" -->
<!-- TMPL_VAR NAME="separator" -->
<!-- TMPL_VAR NAME="value" -->
<!-- /TMPL_LOOP -->
</p>
<!-- /TMPL_LOOP -->
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="publishercode" -->
<tr>
<th scope="row">Publisher</th>
<td><!-- TMPL_VAR NAME="place" --> <!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_VAR NAME="publicationyear" -->
</td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="pages" -->
<tr>
<th scope="row">Details</th>
<td><!-- TMPL_VAR NAME="pages" --> <!-- TMPL_VAR NAME="illus" --> <!-- TMPL_VAR NAME="size" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="seriestitle" -->
<tr>
<th scope="row">Collection</th>
<td> <!-- TMPL_VAR NAME="seriestitle" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="MARCSUBJCTS" -->
<tr>
<th scope="row">Subject(s)</th>
<td><!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
<p> <!-- TMPL_LOOP NAME="MARCSUBJECT_SUBFIELDS_LOOP" -->
<!-- TMPL_VAR NAME="separator" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_LOOP -->
</p>
<!-- /TMPL_LOOP --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="copyrightdate" -->
<tr><th scope="row">Copyright</th>
<td> <!-- TMPL_VAR NAME="copyrightdate" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="MARCNOTES" -->
<tr>
<th scope="row">Notes</th>
<td>
<!-- TMPL_LOOP NAME="MARCNOTES" -->
<p>- <!-- TMPL_VAR NAME="marcnote" --></p>
<!-- /TMPL_LOOP --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="unititle" -->
<tr>
<th scope="row">Unified title</th>
<td> <!-- TMPL_VAR NAME="unititle" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="serial" -->
<tr>
<th scope="row">Serial</th>
<td><!-- TMPL_VAR NAME="serial" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="dewey" -->
<tr>
<th scope="row">Dewey</th>
<td><!-- TMPL_VAR name="dewey" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="classification" -->
<tr>
<th scope="row">Classification</th>
<td> <!-- TMPL_VAR name="classification" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="lccn" -->
<tr>
<th scope="row">LCCN</th>
<td> <!-- TMPL_VAR name="lccn" --></td>
</tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="MARCURLS" -->
<tr>
<th scope="row">URL(s)</th>
<td>
<!-- TMPL_LOOP name="MARCURLS" -->
<p><!-- TMPL_IF NAME="part" --><!-- TMPL_VAR NAME="part" -->
<br /><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="MARCURL" -->
<!-- TMPL_IF NAME="notes" --><!-- TMPL_LOOP NAME="notes" --><!-- TMPL_VAR NAME="note" --><br /><!-- /TMPL_LOOP --><!-- /TMPL_IF -->
<!-- /TMPL_LOOP --></p></td>
</tr><!-- /TMPL_IF -->
<tr>
<th scope="row">Location(s)</th>
<td><!-- TMPL_IF NAME="ITEM_RESULTS" --><!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
<p>
<!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR NAME="location_description" -->
<!-- TMPL_IF name="itemcallnumber" -->
(<!-- TMPL_VAR NAME="itemcallnumber" -->)
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_LOOP --><!-- TMPL_ELSE -->This record has no items.<!-- /TMPL_IF --></td>
</tr>
</table>
<!-- /TMPL_LOOP -->
</form>
<!-- TMPL_ELSE -->
<!-- TMPL_UNLESS NAME="print_basket" -->
<p style="border-top : 1px solid #E8E8E8;">
<form action="/cgi-bin/koha/basket/basket.pl" method="get" name="bookbag_form" id="bookbag_form">
<a id="CheckAll" href="#">Select All</a>
<a id="CheckNone" href="#">Clear All</a>
| <b>Selected items :</b>
<span id="tag_hides">
<a href="#" onclick="delSelRecords(); return false;">Remove</a>
<!-- TMPL_IF NAME="loggedinusername" -->
| <a href="#" onclick="addSelToShelf(); return false;">Add to a list</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
| <a href="#" onclick="placeHold(); return false;">Place Hold</a>
<!-- /TMPL_IF -->
<span class="tagsep"></span><a href="#" onclick="tagSelected(); return false;"><span id="tagsel_tag"></span></a>
</span>
<span id="tagsel_form" style="display:none">
<label for="tagsel_new" style="display:inline">New&nbsp;Tag:</label>
<input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
<input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add" style="display:inline"/>
<a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
</span>
<!-- /TMPL_UNLESS -->
</p>
<table id="itemst">
<thead><tr>
<th>&nbsp;</th>
<th>Title</th>
<th>Item Type</th>
<th>Location</th>
</tr></thead>
<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
<!-- TMPL_IF NAME="even" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<!-- TMPL_UNLESS NAME="print_basket" --><td>
<input type="checkbox" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="bib<!-- TMPL_VAR NAME="biblionumber" -->" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" onclick="selRecord(value,checked);" />
</td> <!-- /TMPL_UNLESS -->
<td><a href="#" onclick="openBiblio('<!-- TMPL_VAR name="dest" -->',<!-- TMPL_VAR name="biblionumber" -->)">
<!-- TMPL_VAR NAME="title" escape="html" -->
</a>
<!-- TMPL_VAR NAME="author" -->
<p><!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" -->
<!-- TMPL_IF name="place" --> <!-- TMPL_VAR name="place" --><!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- TMPL_IF name="size" --> <!-- TMPL_VAR name="size" -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF --></p>
<!-- TMPL_IF name="notes" -->
<p><!-- TMPL_VAR name="notes" --></p>
<!-- /TMPL_IF -->
<!-- COinS / OpenURL -->
<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=<!-- TMPL_VAR NAME="author" -->&amp;rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&amp;rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&amp;rft.tpages=<!-- TMPL_VAR NAME="size" -->&amp;rft.isbn=<!-- TMPL_VAR NAME="isbn" ESCAPE="url" -->&amp;rft.aucorp=&amp;rft.place=<!-- TMPL_VAR NAME="place" -->&amp;rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&amp;rft.edition=<!-- TMPL_VAR NAME="edition" -->&amp;rft.series=<!-- TMPL_VAR NAME="series" -->&amp;rft.genre="></span>
<div id="newtag<!-- TMPL_VAR NAME="biblionumber">_status" class="tagstatus results_summary" style="display:none">Tag status here.</div>
</td>
<td><!-- TMPL_VAR name="description" --></td>
<td><!-- TMPL_IF NAME="ITEM_RESULTS" --><!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
<p>
<!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR NAME="location_description" -->
<!-- TMPL_IF name="itemcallnumber" -->
(<!-- TMPL_VAR NAME="itemcallnumber" -->)
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_LOOP --><!-- TMPL_ELSE -->This record has no items.<!-- /TMPL_IF --></td>
</tr>
<!-- /TMPL_LOOP -->
</table></form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="print_basket" -->
<a href="#back" class="screen">&lt;&lt; Back to Cart</a>
<!-- TMPL_ELSE -->
<form name="myform" action="basket/basket.pl" method="get">
<input type="hidden" name="records" id="records" />
</form>
<!-- /TMPL_IF -->
</div>
</div>
</body>
</html>