Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl
Garry Collum ee167345d7 Bug 3317: Author displaying inconsistently or not at all. Revision to previous patch.
Revision to previous patch for bug 3317.  Removes the EXPR command from opac-basket.tmpl, which was polluting the apache logs.

NTS: Don't use EXPR.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-06-17 11:42:43 -05:00

369 lines
16 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.pack.js"></script>
<script type="text/javascript">
//<![CDATA[
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
function tagSelected() {
<!-- TMPL_IF NAME="loggedinusername" -->
var bibs = document.getElementById('records').value;
if (bibs) {
$("#tagsel_tag").hide();
$("#tag_hides").hide();
$("#tagsel_form").show();
} else {
alert(MSG_NO_RECORD_SELECTED);
}
<!-- TMPL_ELSE -->
window.location = "/cgi-bin/koha/opac-user.pl";
<!-- /TMPL_IF -->
}
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;
});
<!-- TMPL_IF NAME="RequestOnOpac" -->
$(".holdsep").text("| ");
$(".hold").text("Place Hold");
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="TagsEnabled" -->
<!-- TMPL_IF NAME="TagsInputOnList" -->
$(".tagsep").text("| ");
$("#tagsel_tag").text("Tag");
$("#tagsel_button").click(function(){
tagAdded();
return false;
});
$("#tablehead").attr("colspan", $("#tablehead").attr("colspan") + 1);
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
});
function holdSel() {
var items = document.getElementById('records').value;
if (items) {
document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers=" + items;
} else {
alert(MSG_NO_RECORD_SELECTED);
}
}
//]]>
</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>
<li><!-- TMPL_IF NAME="verbose" --><a href="opac-basket.pl" class="brief" onclick="showLess(); return false;">Brief Display</a><!-- TMPL_ELSE --><a href="opac-basket.pl" class="detail" onclick="showMore(); return false;">More Details</a><!-- /TMPL_IF --></li>
<li><a class="send" href="opac-basket.pl" onclick="sendBasket(); return false;">Send</a></li>
<li><a class="print" href="opac-basket.pl" onclick="printBasket(); return false;">Print</a></li>
<li><a class="empty" href="opac-basket.pl" onclick="delBasket(); return false;">Empty and Close</a></li>
<li><a class="hide" href="opac-basket.pl" onclick="quit(); return false;">Hide Window</a></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 -->
<span class="holdsep"></span><a href="#" onclick="holdSel(); return false;">
<span class="hold"></span></a>
<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="opac-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 -->
<form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form">
<table>
<!-- TMPL_UNLESS NAME="print_basket" --><tr><td id="tablehead" colspan="3" style="padding-bottom: 7px;"><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 -->
<span class="holdsep"></span><a href="#" onclick="holdSel(); return false;"><span class="hold"></span></a>
<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>
</td></tr><!-- /TMPL_UNLESS -->
<!-- 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="opac-basket.pl" method="get">
<input type="hidden" name="records" id="records" />
</form>
<!-- /TMPL_IF -->
</div>
</div>
</body>
</html>