Adds Fully Preferences-based Amazon.com feature. See mail to koha-devel
for details.
This commit is contained in:
parent
b617d4a50d
commit
eab65edb5c
|
|
@ -7,7 +7,8 @@
|
|||
<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
|
||||
<div class="details">
|
||||
<div class="detail-sidebar">
|
||||
<!-- Display for NPL <!-- TMPL_IF NAME="isbn" --><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01.MZZZZZZZ.jpg" alt="Book Cover Image" /><!-- /TMPL_IF --> //Display for NPL -->
|
||||
<!-- 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 -->
|
||||
|
||||
<div class="operations">
|
||||
<ul>
|
||||
<!-- TMPL_UNLESS NAME="norequests" --><li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->">Place Reserve</a></li><!-- /TMPL_UNLESS -->
|
||||
|
|
@ -60,6 +61,12 @@
|
|||
|
||||
<!-- /TMPL_LOOP --></ul></td></tr>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="item_description" -->
|
||||
<tr>
|
||||
<th>Item Description (from Amazon.com):</th>
|
||||
<td><ul><li><!-- TMPL_VAR NAME="item_description" --></li></ul></td></tr>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
||||
|
||||
<!-- TMPL_IF NAME="abstract" --><tr><th>Format:</th><td><!-- TMPL_VAR NAME="abstract" --></td></tr><!-- /TMPL_IF -->
|
||||
|
|
@ -172,6 +179,40 @@
|
|||
<!-- /TMPL_LOOP -->
|
||||
<p> For more information: View a record of <a href="/cgi-bin/koha/opac-serial-issues.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" title="Serial issues">this subscription's issues</a></p>
|
||||
<!-- /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="REVIEWS" -->
|
||||
<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-->
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,11 @@
|
|||
<input type="submit" class="icon addchecked" value="Add Checked Items to Book Bag" onclick="addMultiple(); return false;"> <input type="reset" value="Clear All" class="icon clearall">
|
||||
<table>
|
||||
<tr>
|
||||
<!-- TMPL_IF NAME="AmazonContent" -->
|
||||
<th colspan="3">Title</th>
|
||||
<!-- TMPL_ELSE -->
|
||||
<th colspan="2">Title</th>
|
||||
<!-- /TMPL_IF -->
|
||||
<th>Author</th>
|
||||
<th>Call Number</th>
|
||||
<th>Copies</th>
|
||||
|
|
@ -48,6 +52,10 @@
|
|||
<!-- TMPL_LOOP NAME="results" -->
|
||||
<tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
|
||||
<td><label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" /></label><br /><input type="checkbox" name="bibid" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" value="<!-- TMPL_VAR NAME="biblionumber" -->" /></td>
|
||||
<!-- TMPL_IF NAME="AmazonContent" -->
|
||||
<td><div id="menu"> <a class="p1" href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="<!-- TMPL_IF NAME="isbn" -->http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg<!-- TMPL_ELSE -->http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif<!-- /TMPL_IF -->" alt="Book Cover Image" class="thumbnail" /><!--<img class="large" src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01._PE_SCLZZZZZZZ_.jpg" title="Enlarged view of image" alt="Enlarged view of image" />
|
||||
--></a></div></td>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<td><!-- TMPL_IF name="BiblioDefaultViewmarc" --><a href="/cgi-bin/koha/opac-MARCdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><!-- TMPL_IF name="BiblioDefaultViewisbd" --><a href="/cgi-bin/koha/opac-ISBDdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue