Adding COinS support to cart pop-up; Hide similar items in opac-details if no similar items are found.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
51c106bb58
commit
f9de575250
4 changed files with 16 additions and 4 deletions
|
@ -80,7 +80,7 @@ function openBasket() {
|
||||||
if ( strCookie ) {
|
if ( strCookie ) {
|
||||||
var iW = 820;
|
var iW = 820;
|
||||||
var iH = 450;
|
var iH = 450;
|
||||||
var optWin = "dependant=yes,status=yes,scrollbars=yes,resizable=yes,toolbar=no,adressbar=no,height="+iH+",width="+iW;
|
var optWin = "dependant=yes,status=yes,scrollbars=yes,resizable=yes,toolbar=no,location=yes,height="+iH+",width="+iW;
|
||||||
var loc = CGIBIN + "opac-basket.pl?" + strCookie;
|
var loc = CGIBIN + "opac-basket.pl?" + strCookie;
|
||||||
var basket = open(loc, "basket", optWin);
|
var basket = open(loc, "basket", optWin);
|
||||||
if (window.focus) {basket.focus()}
|
if (window.focus) {basket.focus()}
|
||||||
|
|
|
@ -71,6 +71,8 @@
|
||||||
<!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF -->
|
<!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF -->
|
||||||
<!-- /TMPL_IF -->
|
<!-- /TMPL_IF -->
|
||||||
</h3>
|
</h3>
|
||||||
|
<!-- COinS / OpenURL -->
|
||||||
|
<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=<!-- TMPL_VAR NAME="author" -->&rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&rft.tpages=<!-- TMPL_VAR NAME="size" -->&rft.isbn=<!-- TMPL_VAR NAME="isbn" ESCAPE="url" -->&rft.aucorp=&rft.place=<!-- TMPL_VAR NAME="place" -->&rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&rft.edition=<!-- TMPL_VAR NAME="edition" -->&rft.series=<!-- TMPL_VAR NAME="series" -->&rft.genre=">COinS</span>
|
||||||
<table>
|
<table>
|
||||||
<!-- TMPL_IF name="isbn" -->
|
<!-- TMPL_IF name="isbn" -->
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -212,7 +214,10 @@
|
||||||
<!-- /TMPL_IF -->
|
<!-- /TMPL_IF -->
|
||||||
<!-- TMPL_IF name="notes" -->
|
<!-- TMPL_IF name="notes" -->
|
||||||
<p><!-- TMPL_VAR name="notes" --></p>
|
<p><!-- TMPL_VAR name="notes" --></p>
|
||||||
<!-- /TMPL_IF --></td>
|
<!-- /TMPL_IF -->
|
||||||
|
<!-- COinS / OpenURL -->
|
||||||
|
<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=<!-- TMPL_VAR NAME="author" -->&rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&rft.tpages=<!-- TMPL_VAR NAME="size" -->&rft.isbn=<!-- TMPL_VAR NAME="isbn" ESCAPE="url" -->&rft.aucorp=&rft.place=<!-- TMPL_VAR NAME="place" -->&rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&rft.edition=<!-- TMPL_VAR NAME="edition" -->&rft.series=<!-- TMPL_VAR NAME="series" -->&rft.genre="></span>
|
||||||
|
</td>
|
||||||
<td><!-- TMPL_VAR name="description" --></td>
|
<td><!-- TMPL_VAR name="description" --></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- /TMPL_LOOP -->
|
<!-- /TMPL_LOOP -->
|
||||||
|
|
|
@ -447,7 +447,7 @@
|
||||||
</a></li><!-- /TMPL_IF -->
|
</a></li><!-- /TMPL_IF -->
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="OPACAmazonSimilarItems" -->
|
<!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="OPACAmazonSimilarItems" --><!-- TMPL_IF NAME="similar_biblionumbers" -->
|
||||||
<div id="similars">
|
<div id="similars">
|
||||||
<h4>Similar Items</h4>
|
<h4>Similar Items</h4>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -457,7 +457,7 @@
|
||||||
<!-- /TMPL_LOOP -->
|
<!-- /TMPL_LOOP -->
|
||||||
<!-- /TMPL_LOOP -->
|
<!-- /TMPL_LOOP -->
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div><!-- /TMPL_IF -->
|
||||||
<!-- /TMPL_IF --><!-- /TMPL_IF -->
|
<!-- /TMPL_IF --><!-- /TMPL_IF -->
|
||||||
|
|
||||||
<div id="further">
|
<div id="further">
|
||||||
|
|
|
@ -57,6 +57,13 @@ foreach my $biblionumber ( @bibs ) {
|
||||||
my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour );
|
my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour );
|
||||||
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
|
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
|
||||||
my @items = &GetItemsInfo( $biblionumber, 'opac' );
|
my @items = &GetItemsInfo( $biblionumber, 'opac' );
|
||||||
|
|
||||||
|
# COinS format FIXME: for books Only
|
||||||
|
my $coins_format;
|
||||||
|
my $fmt = substr $record->leader(), 6,2;
|
||||||
|
my $fmts;
|
||||||
|
$fmts->{'am'} = 'book';
|
||||||
|
$dat->{ocoins_format} => $fmts->{$fmt};
|
||||||
|
|
||||||
if ( $num % 2 == 1 ) {
|
if ( $num % 2 == 1 ) {
|
||||||
$dat->{'even'} = 1;
|
$dat->{'even'} = 1;
|
||||||
|
|
Loading…
Reference in a new issue