Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl
Joshua Ferraro 3d65e44d5c Syndetics and Amazon bugfix enhancements
This patch resolves a number of problems related to Enhanced Content:

1. Previously, there was no syspref for controlling whether or not to display
Amazon.com cover images apart from other content. This had the side effect
of preventing use of amazon.com content alongside use of another provider's
images. This patch introduces AmazonCoverImages and OPACAmazonCoverImages,
and changes the name of AmazonContent to AmazonEnabled.

So, for instance, you can now enable OPACAmazonSimilarItems yet utilize
SyndeticsCoverImages for displaying those similar items.

NOTE TO DOCUMENTATION TEAM: please update references to AmazonContent
and OPACAmazonContent to comply with the above.

2. Fixes some semantically incorrect uses of AmazonContent (now OPACAmazonEnabled)
on the OPAC side.

3. Resolves once and for all, the normalization of ISBN,UPC,EAN and OCLC numbers
for all enhanced content elements; These elements can be normalized using the
new functions in C4::Koha; I've replaced use of the various previously used
variables $xisbn,$norm_isbn,$clean_isbn, etc with $isbn, and the template
variable normalized_isbn.

We finally have a single, consistant place to retrieve normalize values for
these fields given a particular record.

4. Adds Syndetics attribution statements to display of all Syndetics content
'enhanced content provide by Syndetics' or 'Enhanced Description from Syndetics'

5. Adds an option to view the large cover image on the detail page on the OPAC
when using SyndeticsCoverImages; this option is controlled by a new system
preference: SyndeticsCoverImageSize which has two values: MC (medium) LC (large)

6. Adds UPC and OCLC numbers for Syndetics enhanced content queries especially
helpful for finding enhanced content for DVD and Music materials

7. Adds capability to display Syndetics images to opac-user for checkouts and overdues

8. Updates to systempreferences.sql, and updatedatabase.pl database revision 015

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-03-27 17:23:51 -05:00

195 lines
8.6 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; ISBD View
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
$(document).ready(function() {
$('#bibliodescriptions > ul').tabs();
});
//]]>
</script>
</head>
<body>
<!-- TMPL_IF NAME="OpacNav" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
<div id="bd" class="columnfix">
<!-- TMPL_INCLUDE name="masthead.inc" -->
<div id="yui-main">
<div class="yui-b">
<div class="yui-ge">
<div class="yui-u first">
<div class="container">
<h1 style="float:left;margin:0 1em 1em 0;">ISBD</h1> <div id="views">
<span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->">Normal View</a></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->">MARC View</a></span> <span class="view"><span id="ISBDview">ISBD View</span></span>
</div>
<div id="isbdcontents"><!-- TMPL_VAR name="ISBD" --></div>
<div id="bibliodescriptions" class="toptabs">
<ul>
<!-- TMPL_IF name="subscriptionsnumber" --><li>
<a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#opac-isbd-subscriptions">Subscriptions</a>
</li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="reviewson" --><li><a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#comments">Comments</a></li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="OPACAmazonEnabled" --><li><a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#opac-isbd-amazonreviews">Amazon Reviews</a></li><!-- /TMPL_IF -->
</ul>
<div id="opac-isbd-subscriptions"> <!-- TMPL_IF name="subscriptionsnumber" -->
<h2>
We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscription(s) associated with this title.
</h2>
<!-- TMPL_LOOP Name="subscriptions" -->
<h3>At library: <!-- TMPL_VAR name="branchcode" --> <!-- TMPL_VAR name="notes" --></h3>
<p>Below is a list of the three latest issues :</p>
<!-- TMPL_IF name="subscriptionnotes"-->
<p><!--TMPL_VAR Name="subscriptionnotes"--> </p>
<!-- /TMPL_IF -->
<!--TMPL_IF Name="latestserials"-->
<table>
<tr><th>Issue number</th><th>Date</th><th>Status</th></tr>
<!--TMPL_LOOP Name="latestserials"-->
<tr>
<td> <!--TMPL_VAR Name="serialseq"-->
</td>
<td> <!--TMPL_VAR Name="planneddate"-->
</td>
<td> <!--TMPL_IF Name="status1"-->Pending
<!--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>
</tr>
<!--/TMPL_LOOP -->
</table>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<p><a href="/cgi-bin/koha/opac-serial-issues.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" title="Serial issues">Click here</a> for more information on subscription(s) history</p>
<!-- /TMPL_IF --></div>
<!-- TMPL_IF NAME="reviewson" -->
<div id="comments">
<!-- TMPL_IF NAME="reviews" -->
<!--TMPL_LOOP NAME="reviews"-->
<h5>
Comment by
<!--TMPL_VAR NAME="title"-->
<!--TMPL_VAR NAME="firstname"-->
<!--TMPL_VAR NAME="surname"-->
</h5>
<small>
<!--TMPL_VAR NAME="datereviewed"-->
</small>
<p>
<!--TMPL_VAR NAME="review" ESCAPE="HTML"-->
</p>
<!--/TMPL_LOOP-->
<!-- TMPL_ELSE -->
<p>There are no comments for this item.</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="loggedinusername" -->
<p> <a href="javascript:Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->');">
Post or edit your comments on this item.
</a></p>
<!-- TMPL_ELSE -->
<p><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</p>
<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="OPACAmazonEnabled" -->
<!-- Amazon Reviews -->
<div id="opac-isbd-amazonreviews">
<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
<!-- TMPL_IF NAME="normalized_isbn" -->
<h4><a href="http://www.amazon.com/gp/customer-reviews/write-a-review.html/002-2970817-7876066?%5Fencoding=UTF8&asin=<!-- TMPL_VAR NAME="normalized_isbn" -->&amp;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 -->
<p> Sorry, there are no reviews available for this title. </p>
<!-- /TMPL_IF -->
</div> <!-- itemReviews -->
<!-- /TMPL_IF-->
</div>
</div>
</div>
<div class="yui-u">
<div class="container">
<ul id="action">
<!-- TMPL_UNLESS NAME="norequests" -->
<!-- TMPL_UNLESS name="bi_notforloan" -->
<!-- TMPL_IF NAME="opacuserlogin" --><!-- TMPL_IF NAME="RequestOnOpac" -->
<li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
Place Hold
</a></li>
<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<!-- /TMPL_UNLESS -->
<li><a class="print" 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></li>
<!-- TMPL_IF name="virtualshelves" -->
<!-- TMPL_IF NAME="opacuserlogin" --> <!-- TMPL_IF NAME="loggedinusername" -->
<li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
Save to Your Lists
</a></li>
<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="opacbookbag" --><li><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
Add to Your Cart
</a></li><!-- /TMPL_IF -->
</ul>
<div id="export">
<form method="get" action="/cgi-bin/koha/opac-export.pl">
<label for="format">Save Record:</label>
<select name="format" id="format">
<option value="">-- Choose Format --</option>
<option value="mods">MODS (XML)</option>
<option value="dc">Dublin Core (XML)</option>
<option value="marcxml">MARCXML</option>
<option value="marc8">MARC (non-Unicode/MARC-8)</option>
<option value="utf8">MARC (Unicode/UTF-8)</option> </select><input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<input type="submit" name="save" value="Go" /></form></div>
</div>
</div>
</div>
</div>
</div><!-- TMPL_IF NAME="OpacNav" -->
<div class="yui-b">
<div class="container">
<!--TMPL_INCLUDE NAME="navigation.inc" -->
</div>
</div><!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->