From f9de5752509c7677d49e0ebcb76b1fac9ac3e512 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 8 Apr 2008 08:14:14 -0500 Subject: [PATCH] Adding COinS support to cart pop-up; Hide similar items in opac-details if no similar items are found. Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/js/basket.js | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl | 7 ++++++- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 4 ++-- opac/opac-basket.pl | 7 +++++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/js/basket.js b/koha-tmpl/opac-tmpl/prog/en/js/basket.js index 8bc731ccdb..d68432dc88 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/basket.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/basket.js @@ -80,7 +80,7 @@ function openBasket() { if ( strCookie ) { var iW = 820; 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 basket = open(loc, "basket", optWin); if (window.focus) {basket.focus()} diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl index 7da9d134c3..5988c745ed 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl @@ -71,6 +71,8 @@ + + &rft.btitle=&rft.date=&rft.tpages=&rft.isbn=&rft.aucorp=&rft.place=&rft.pub=&rft.edition=&rft.series=&rft.genre=">COinS @@ -212,7 +214,10 @@

- + + + &rft.btitle=&rft.date=&rft.tpages=&rft.isbn=&rft.aucorp=&rft.place=&rft.pub=&rft.edition=&rft.series=&rft.genre="> + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index aeecdd01a8..744dccc09c 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -447,7 +447,7 @@ - +

Similar Items

    @@ -457,7 +457,7 @@
-
+
diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl index 8c194b3ae3..d86af6470e 100755 --- a/opac/opac-basket.pl +++ b/opac/opac-basket.pl @@ -57,6 +57,13 @@ foreach my $biblionumber ( @bibs ) { my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour ); my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour ); 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 ) { $dat->{'even'} = 1; -- 2.39.5