From 96fcc7137c1c309a6ba32fbe91a0839353ae2798 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 26 Nov 2007 15:00:22 -0600 Subject: [PATCH] Enabling FRBR system pref for OPAC, to enable/disable display of other editions. Adding editions display to opac-detail, and making some other cosmetic changes. Adding alterating table row colors in opac-user.pl Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + koha-tmpl/opac-tmpl/prog/en/css/opac.css | 20 +++++++++++++ .../prog/en/modules/opac-detail.tmpl | 28 +++++++++++++++++-- .../opac-tmpl/prog/en/modules/opac-user.tmpl | 18 ++++++++++-- opac/opac-user.pl | 3 +- 5 files changed, 64 insertions(+), 6 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 56598120e3..f823824f1c 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -306,6 +306,7 @@ sub get_template_and_user { patronimages => C4::Context->preference("patronimages"), mylibraryfirst => C4::Context->preference("SearchMyLibraryFirst"), "BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, + FRBRizeEditions => C4::Context->preference("FRBRizeEditions"), ); } return ( $template, $borrowernumber, $cookie ); diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 5f3d5a8bfa..561837ec7c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -899,4 +899,24 @@ div.message { #catalogue_detail_biblio table, #catalogue_detail_biblio td, #catalogue_detail_biblio th { background-color : transparent; border : 0; +} + +tr.overdue td { + background-color : #ffcccc; + font-weight : bold; +} + +tr.highlight.overdue td { + background-color : #ffaeae; + font-weight : bold; +} + +td.overdue { + color : #cc3333; +} + +.renewals { + display:block; + font-size:0.8em; + padding:0.5em; } \ No newline at end of file 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 d00a7304dc..e505e079f2 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -178,6 +178,9 @@ #subscriptions">Subscriptions
  • #comments">Comments
  • + +
  • #editions">Editions
  • +
  • #amazonreviews">Amazon Reviews
  • ">ISBD View
  • @@ -187,8 +190,8 @@ -
    + @@ -232,10 +235,10 @@
    Item type
    -

    No physical items for this record

    +
    @@ -327,6 +330,27 @@
    +
    + +

    Other Editions of this Work

    + +
      + +
    • .gif" title="" /> +"> by ©
    • +.01._THUMBZZZ_PU_PU-5_.jpg" /> + + + .gif" title="" /> + barcode: + + +
    + +

    No other editions found.

    + +
    + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl index f7df0d6d4f..341518dc0a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl @@ -134,14 +134,26 @@ Fines - + + + + + + + + + + + + + - .gif" title="" alt="" /> + .gif" title="" alt="" /> @@ -201,7 +213,7 @@ /images/.gif" alt="" title="" /> -">.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /> "> +">.01.THUMBZZZ.jpg" alt="" class="thumbnail" /> "> diff --git a/opac/opac-user.pl b/opac/opac-user.pl index ea9d5c45c8..2db17ea445 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -81,13 +81,14 @@ $template->param( BORROWER_INFO => \@bordat, my ($countissues,$issues) = GetPendingIssues($borrowernumber); my $count = 0; +my $toggle = 0; my $overdues_count = 0; my @overdues; my @issuedat; my $imgdir = getitemtypeimagesrc(); my $itemtypes = GetItemTypes(); foreach my $issue ( @$issues ) { - + if($count%2 eq 0){ $issue->{'toggle'} = 1; } else { $issue->{'toggle'} = 0; } # check for reserves my ( $restype, $res ) = CheckReserves( $issue->{'itemnumber'} ); if ( $restype ) { -- 2.20.1