- the availability status was not available on result list. This patch reintroduces that - notforloan as itemtype was not properly managed : an itemtype that was notforloan resulted in nothing in detail. Not, the user can't place a reserve anymore, and the status is correctly displayed the fix is for OPAC as well as staff (owen, pls, validate cat-toolbar.inc & catalogue/detail.tmpl) Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
356 lines
14 KiB
Cheetah
356 lines
14 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryNameTitle" --> Catalog -- Details for: <!-- TMPL_LOOP NAME="BIBLIO_RESULTS" --><!-- TMPL_VAR NAME="title" --><!-- /TMPL_LOOP -->
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
|
|
<!--TMPL_INCLUDE NAME="masthead.inc" -->
|
|
<!--TMPL_INCLUDE NAME="navigation.inc" -->
|
|
|
|
<div id="action">
|
|
|
|
<!-- TMPL_UNLESS NAME="norequests" -->
|
|
<!-- TMPL_UNLESS name="bi_notforloan" -->
|
|
<!-- TMPL_IF NAME="RequestOnOpac" -->
|
|
<a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
|
|
Place Reserve
|
|
</a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_UNLESS -->
|
|
<a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
|
|
MARC View
|
|
</a>
|
|
<a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
|
|
ISBD
|
|
</a>
|
|
<a href="/cgi-bin/koha/opac-detailprint.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-detailprint.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
|
|
Print
|
|
</a>
|
|
<!-- TMPL_IF name="virtualshelves" -->
|
|
<!-- TMPL_IF NAME="loggedinusername" -->
|
|
<a href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
|
|
Add to My Book List
|
|
</a>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<a href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
|
|
Add to My Book Bag
|
|
</a>
|
|
</div>
|
|
|
|
<div id="catalogue_detail_biblio">
|
|
<!-- TMPL_IF NAME="AmazonContent" -->
|
|
<!-- TMPL_IF NAME="isbn" -->
|
|
<a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link">
|
|
<img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._PIdp-schmooS,TopRight,7,-26_SCMZZZZZZZ_.jpg" alt="Book Cover Image" />
|
|
</a><!-- TMPL_ELSE -->
|
|
<img border="0" src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="Book Cover Image" />
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<h1>
|
|
<!-- TMPL_VAR NAME="title" -->
|
|
<!-- TMPL_IF NAME="author" -->(<!-- TMPL_VAR NAME="author" -->)<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="class" -->
|
|
</h1>
|
|
|
|
<!-- TMPL_IF name="subtitles" -->
|
|
<p><label><b>Subtitle(s):</b></label>
|
|
<!-- TMPL_LOOP name="subtitles" -->
|
|
<!-- TMPL_VAR NAME="subtitle" --> ;
|
|
<!-- /TMPL_LOOP -->
|
|
|
|
<!-- TMPL_IF name="seriestitle" --><!-- TMPL_VAR name="seriestitle" --><!--/TMPL_IF-->
|
|
<!-- TMPL_IF name="volume" -->vol. <!-- TMPL_VAR name="volume" --> <!-- TMPL_VAR name="volumedate" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR name="volumedesc" -->
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="author" -->
|
|
<p><label><b>Author: </b></label>
|
|
<a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" -->">
|
|
<!-- TMPL_VAR NAME="author" -->
|
|
</a>
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="MARCAUTHORS" -->
|
|
<p><label><b>Additional Author:</b></label>
|
|
<!-- TMPL_LOOP NAME="MARCAUTHORS" -->
|
|
<a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="value" -->">
|
|
<!-- TMPL_VAR NAME="value" -->
|
|
</a> |
|
|
<!-- /TMPL_LOOP -->
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="editionstatement" -->
|
|
<p><label><b>Edit. statement:</b></label><!-- TMPL_VAR name="editionstatement" --><!-- TMPL_IF name="editionresponsibility" -->/<!-- TMPL_VAR name="editionresponsibility" --><!-- /TMPL_IF--> </p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="illus" -->
|
|
<p><label><b>Illus:</b></label><!-- TMPL_VAR name="illus" --> </p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="publishercode" -->
|
|
<p><label><b>Published by :</b></label>
|
|
<a href="/cgi-bin/koha/opac-search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode"-->">
|
|
<!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_IF name="place" -->(<!-- TMPL_VAR NAME="place"-->)<!--/TMPL_IF-->
|
|
</a>
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="publicationyear" -->
|
|
<p><label><b>in</b></label><!-- TMPL_VAR NAME="publicationyear" --> </p>
|
|
<!-- /TMPL_IF -->
|
|
<p>
|
|
<!-- TMPL_IF name="pages" --> <label><b>Size: </b></label><!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
|
|
<!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->
|
|
</p>
|
|
<!-- TMPL_IF name="isbn" -->
|
|
<p><label><b>ISBN: </b></label><!-- TMPL_VAR NAME="isbn" --> </p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="issn" -->
|
|
<p><label><b>ISSN:</b></label><!-- TMPL_VAR NAME="issn" --> </p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="collectiontitle" -->
|
|
<p><label><b>Collection: </b></label>
|
|
<!-- TMPL_VAR NAME="collectiontitle" -->
|
|
<!-- TMPL_IF name="collectionissn" -->, ISSN <!-- TMPL_VAR name="collectionissn" --> <!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="collectionvolume" -->; <!-- TMPL_VAR name="collectionvolume" --> <!-- /TMPL_IF -->
|
|
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="unititles" -->
|
|
<p><label><b>Uniform titles:</b></label>
|
|
<!-- TMPL_LOOP name="unititles" -->
|
|
<!-- TMPL_VAR NAME="unititle" --> ;
|
|
<!-- /TMPL_LOOP -->
|
|
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="MARCSUBJCTS" -->
|
|
<p><label><b>Subjects: </b></label></p>
|
|
<p>
|
|
<!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
|
|
<a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
|
|
|
|
|
<!-- /TMPL_LOOP -->
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="copyrightdate" -->
|
|
<p><label><b>Year : </b></label><!-- TMPL_VAR NAME="copyrightdate" --></p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="MARCNOTES" -->
|
|
<p><label><b>Notes: </b></label></p>
|
|
<p>
|
|
<!-- TMPL_LOOP NAME="MARCNOTES" -->
|
|
<p>- <!-- TMPL_VAR NAME="marcnote" --></p>
|
|
<!-- /TMPL_LOOP -->
|
|
</p>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF name="notes" -->
|
|
<p><label><b>Notes: </b></label><!-- TMPL_VAR NAME="notes" --></p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="classification" -->
|
|
<p><label><b>classification:</b></label><!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="dewey" -->
|
|
<p><label><b>Dewey:</b></label><!-- TMPL_VAR name="dewey" --></p>
|
|
<!-- /TMPL_IF -->
|
|
<p><label><b>Item type : </b></label>
|
|
<!-- TMPL_IF name="description" -->
|
|
<!-- TMPL_VAR name="description" -->
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_VAR NAME="itemtype" -->
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
<!-- TMPL_IF name="MARCURLS" -->
|
|
<!-- TMPL_IF NAME="count" -->
|
|
<p><label><b>Online Resources:</b></label>
|
|
<ul> <!-- TMPL_LOOP name="MARCURLS" -->
|
|
<li><!-- TMPL_IF NAME="part" --><!-- TMPL_VAR NAME="part" -->
|
|
<br /><!-- /TMPL_IF -->
|
|
<!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
|
|
<a href="<!-- TMPL_VAR NAME="MARCURL" -->"><!-- TMPL_VAR NAME="linktext" --></a>
|
|
<!-- TMPL_IF NAME="notes" --><ul><!-- TMPL_LOOP NAME="notes" --><li><!-- TMPL_VAR NAME="note" --></li><!-- /TMPL_LOOP --></ul><!-- /TMPL_IF --></li>
|
|
<!-- /TMPL_LOOP --></ul>
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
|
|
<!-- TMPL_IF name="count" -->
|
|
<div id="catalogue_detail_items">
|
|
<h2><!-- TMPL_VAR NAME="count" --> items</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Item type</th>
|
|
<th>Location</th>
|
|
<th>Status</th>
|
|
<th>Date Due</th>
|
|
<th>Volume</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
|
|
<tr>
|
|
<td><!-- TMPL_VAR NAME="description" --></td>
|
|
<td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
|
|
<td>
|
|
<!-- TMPL_IF name="bi_notforloan" -->
|
|
Not for loan
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF name="datedue" -->
|
|
On issue
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF name="notforloan" -->
|
|
<!-- TMPL_VAR name="notforloan" -->
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF name="itemlost"-->
|
|
Item lost
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF NAME="wthdrawn" -->
|
|
Item Cancelled
|
|
<!-- TMPL_ELSE -->
|
|
Available
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td><!-- TMPL_VAR NAME="datedue" --></td>
|
|
<td><!-- TMPL_VAR NAME="volumeddesc" --></td>
|
|
<!-- TMPL_IF NAME="type" -->
|
|
<td>
|
|
<a href="/cgi-bin/koha/maint/catmaintain.pl?type=fixitemtype&bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->&item=<!-- TMPL_VAR NAME="itemtype" -->">Fix Itemtype</a>
|
|
</td>
|
|
<!-- /TMPL_IF -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<p>we don't have any physical item for this document</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="subscriptionsnumber" -->
|
|
<div id="catalogue_detail_subscriptions">
|
|
<h2>This is a serial subscription</h2>
|
|
<p> (We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p>
|
|
<!-- TMPL_LOOP Name="subscriptions" -->
|
|
<!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
|
|
<!--TMPL_IF NAME="latestserials"-->
|
|
<p> The three latest issues related to this subscription:</p>
|
|
<table>
|
|
<tr>
|
|
<th>Issue #</th>
|
|
<th>Date</th>
|
|
<th>Status</th>
|
|
<th>Note</th>
|
|
<!--TMPL_LOOP Name="latestserials"-->
|
|
<tr>
|
|
<td>
|
|
<!--TMPL_VAR Name="serialseq"-->
|
|
</td>
|
|
<td>
|
|
<!--TMPL_VAR Name="planneddate"-->
|
|
</td>
|
|
<td>
|
|
<!--TMPL_IF Name="status1"-->Waited
|
|
<!--TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="status2"-->Arrived
|
|
<!--TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="status3"-->Late
|
|
<!--TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="status4"-->Missing
|
|
<!--TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="status5"-->Not Issued
|
|
<!--/TMPL_IF-->
|
|
<!--/TMPL_IF-->
|
|
<!--/TMPL_IF-->
|
|
<!--/TMPL_IF-->
|
|
<!--/TMPL_IF-->
|
|
</td>
|
|
<td>
|
|
<!--TMPL_VAR Name="notes"-->
|
|
</td>
|
|
</tr>
|
|
<!--/TMPL_LOOP -->
|
|
</table>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="reviewson" -->
|
|
<!-- TMPL_IF NAME="reviews" -->
|
|
<h2>Reviews by members:</h2>
|
|
<!--TMPL_LOOP NAME="reviews"-->
|
|
<p>
|
|
<b>
|
|
Review by
|
|
<!--TMPL_VAR NAME="title"-->
|
|
<!--TMPL_VAR NAME="surname"-->
|
|
<!--TMPL_VAR NAME="firstname"-->
|
|
</b>
|
|
<br />
|
|
<small>
|
|
<!--TMPL_VAR NAME="datereviewed"-->
|
|
</small>
|
|
</p>
|
|
<p>
|
|
<!--TMPL_VAR NAME="review"-->
|
|
</p>
|
|
<br />
|
|
<!--/TMPL_LOOP-->
|
|
<!-- TMPL_ELSE -->
|
|
<b>No reviews have been written about this.</b>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="loggedinusername" -->
|
|
<a href="javascript:Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->');">
|
|
Write or modify your reviews on this biblio.
|
|
</a>
|
|
<!-- TMPL_ELSE -->
|
|
<br /><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to write a review here.
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF NAME="AmazonContent" -->
|
|
<!-- Amazon Reviews -->
|
|
<div id="itemReviews">
|
|
<h2>Amazon Reader Reviews:</h2>
|
|
<h4>
|
|
<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
|
|
<!-- TMPL_IF NAME="isbn" -->
|
|
<a href="http://www.amazon.com/gp/customer-reviews/write-a-review.html/002-2970817-7876066?%5Fencoding=UTF8&asin=<!-- TMPL_VAR NAME="isbn" -->&store=books">Add your own review</a></h4>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP --><br/>
|
|
|
|
<!-- TMPL_IF NAME="rating" -->
|
|
<h4>Rating (from Amazon.com):</h4>
|
|
<div id="starMT"><div id="starFull" style="width:<!-- TMPL_VAR NAME="rating" -->px"></div></div>
|
|
|
|
<!-- TMPL_LOOP NAME="AMAZONREVIEWS" -->
|
|
<div class="content_set">
|
|
<!-- TMPL_IF NAME="summary" -->
|
|
<h4 class="underline"> <!-- TMPL_VAR NAME="summary" --></h4>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="comment" -->
|
|
<p><!-- TMPL_VAR NAME="comment" -->
|
|
</p><!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_ELSE -->
|
|
|
|
<div class="content_set">
|
|
<p class="error"> Sorry, there are no reviews available for this title. </p>
|
|
</div>
|
|
|
|
<!-- /TMPL_IF -->
|
|
</div> <!-- itemReviews -->
|
|
<!-- /TMPL_IF-->
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
function Dopop(link) {
|
|
newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
|
|
}
|
|
function confirm_deletion() {
|
|
var is_confirmed = confirm('Are you sure you want to delete this biblio?');
|
|
if ( is_confirmed ) {
|
|
window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
|