From d015460b5b4445e0995eb42eaa83af29768d89d0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 18 Mar 2008 15:03:42 -0500 Subject: [PATCH] Formatting and adding additional info to display of editions in the OPAC and the staff client. Signed-off-by: Joshua Ferraro --- .../prog/en/css/staff-global.css | 4 +++ .../prog/en/modules/catalogue/detail.tmpl | 34 ++++++++++++++----- .../prog/en/modules/catalogue/results.tmpl | 7 ++-- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 5 +++ .../prog/en/modules/opac-detail.tmpl | 23 ++++++------- 5 files changed, 47 insertions(+), 26 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 7b8444dfed..7b703891ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -200,6 +200,10 @@ th { padding : .2em 23px; } +#editions table, #editions td { + border : 0; +} + tr.highlight td, td.highlight { background-color : #F3F3F3; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl index 4855d97c7d..32d98a43de 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -4,7 +4,7 @@ //= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) { w = this.width; h = this.height; @@ -17,7 +17,18 @@ function verify_images() { } } }); + $("#editions img").each(function(i){ + if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) { + w = this.width; + h = this.height; + if ((w == 1) || (h == 1)) { + this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; + } else if ((this.complete != null) && (!this.complete)) { + this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; + } } + }); +} $(document).ready(function() { $('#bibliodetails > ul').tabs(); }); @@ -127,7 +138,7 @@ function verify_images() { @@ -263,20 +274,25 @@ function verify_images() { - +

Editions

-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index df83fd73de..3c9b707bd7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -264,17 +264,14 @@ $(window).load(function() { , , - - + "> , , "> - , , - - + , ,

diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 4e12f626a5..e571e87240 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -272,6 +272,11 @@ tr.grouplabel td { font-weight : bold; padding: 10px; } + +#editions table, #editions td { + border : 0; +} + .header { background-image:url("../../images/ascdesc.gif"); background-position:right center; 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 e7d3df4bba..afc7c5b41c 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -151,7 +151,7 @@
  • #comments">Comments
  • -
  • #editions">Editions
  • +
  • #editions">Editions
  • #amazonreviews">Amazon Reviews
  • @@ -330,26 +330,25 @@ -
    +

    Other Editions of this Work

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

      No other editions found.

      - - +
      .01._AA75_PU_PU-5_.jpg" />"> by © +

      + () , +

      +
      +
    -- 2.39.5