From db91682c80eb71b6165f6bbfb13879a339d37d48 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Jan 2008 15:50:49 -0600 Subject: [PATCH] Adding noItemTypeImages syspref to Auth.pm; Beginning the process of adding support for noItemTypeImages preference to intranet templtes. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + .../intranet-tmpl/prog/en/css/staff-global.css | 2 +- .../prog/en/modules/admin/itemtypes.tmpl | 10 ++++++---- .../prog/en/modules/catalogue/detail.tmpl | 6 +++--- .../prog/en/modules/catalogue/results.tmpl | 14 +++++++------- .../prog/en/modules/circ/circulation.tmpl | 4 ++-- .../prog/en/modules/members/moremember.tmpl | 9 +++++---- 7 files changed, 25 insertions(+), 21 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 999e6f5c5a..996117bfc2 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -268,6 +268,7 @@ sub get_template_and_user { 'item-level_itypes' => C4::Context->preference('item-level_itypes'), canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), intranetreadinghistory => C4::Context->preference("intranetreadinghistory"), + noItemTypeImages => C4::Context->preference("noItemTypeImages"), ); } else { 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 d63b70157a..fd06551466 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -10,7 +10,7 @@ a:hover { body { text-align : left; - padding:0 0 2em 0; + padding:0 0 2.5em 0; } br.clear { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl index 00cfcc418d..2a74a6cf1c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl @@ -153,7 +153,9 @@ Item Types Administration
  • " />
  • -
  • + +
  • Image: Item type images are disabled. To enable them, turn off the noItemTypeImages system preference
  • +
  • Image:
      @@ -193,7 +195,7 @@ Item Types Administration
    -
  • +
  • @@ -260,7 +262,7 @@ Item Types Administration

    Item Types Administration

    - + @@ -274,7 +276,7 @@ Item Types Administration - + - + @@ -258,7 +258,7 @@ function verify_images() {

    Editions

      -
    • .gif" title="" /> +
    • .gif" title="" /> "> by ©
    • .01._AA75_PU_PU-5_.jpg" /> @@ -275,7 +275,7 @@ function verify_images() {
        -
      • .gif" title="" /> +
      • .gif" title="" /> "> by ©
      • .01._THUMBZZZ_PU_PU-5_.jpg" /> 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 21ec970e7d..57963abfc6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -281,9 +281,9 @@ $(window).load(function() {

        - + " title="" style="float: left; margin: .1em;" alt="img" /> - + @@ -319,7 +319,7 @@ $(window).load(function() {

          -
        • ">
        • +
        • ); background-repeat: no-repeat; background-position: 0 50%; padding: 3px 0 3px 30px; margin: .4em 0; " title="">
        • [">] @@ -333,11 +333,11 @@ $(window).load(function() { on loan:
            - +
          • ">
          • -
          • +
          • @@ -350,11 +350,11 @@ $(window).load(function() { unavailable:
              - +
            • ">
            • -
            • > +
            • > diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 88e3e2db28..d7f683ff6a 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -397,9 +397,9 @@ No patron matched
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 69a9985e44..04abef822a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -283,7 +283,7 @@ for (var i=0;i" />
    ImageImage Code Description Not for loan
    " alt="" /> " alt="" /> ?op=add_form&itemtype="> 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 a8e7120c8a..6894beaa8b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -147,7 +147,7 @@ function verify_images() {
    " alt="" title="">" alt="" title=""> - + " /> - +
    - + @@ -304,11 +304,11 @@ for (var i=0;i - + @@ -343,7 +343,8 @@ for (var i=0;i - + + -- 2.39.5
      Title Priority Date due + " alt="" />   - "> , by ; ,
    Total replacement cost: Total replacement cost: