Adding noItemTypeImages syspref to Auth.pm; Beginning the process of adding support for noItemTypeImages preference to intranet templtes.
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
86716641ca
commit
db91682c80
7 changed files with 25 additions and 21 deletions
|
@ -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 {
|
||||
|
|
|
@ -10,7 +10,7 @@ a:hover {
|
|||
|
||||
body {
|
||||
text-align : left;
|
||||
padding:0 0 2em 0;
|
||||
padding:0 0 2.5em 0;
|
||||
}
|
||||
|
||||
br.clear {
|
||||
|
|
|
@ -153,7 +153,9 @@ Item Types Administration
|
|||
<!-- /TMPL_IF -->
|
||||
<li>
|
||||
<label for="description">Description</label><input type="text" id="description" name="description" size="48" maxlength="80" value="<!-- TMPL_VAR name="description" escape="HTML" -->" /> </li>
|
||||
<li><fieldset>
|
||||
<!-- TMPL_IF NAME="noItemTypeImages" -->
|
||||
<li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=all&searchfield=noItemTypeImages">noItemTypeImages system preference</a></li>
|
||||
<!-- TMPL_ELSE --> <li><fieldset>
|
||||
<legend>Image: </legend>
|
||||
|
||||
<ol>
|
||||
|
@ -193,7 +195,7 @@ Item Types Administration
|
|||
|
||||
</ol>
|
||||
</fieldset>
|
||||
</li>
|
||||
</li><!-- /TMPL_IF -->
|
||||
<li>
|
||||
<label for="notforloan">Not for loan</label> <!-- TMPL_IF name="notforloan" -->
|
||||
<input type="checkbox" id="notforloan" name="notforloan" checked="checked" value="1" />
|
||||
|
@ -260,7 +262,7 @@ Item Types Administration
|
|||
<h2>Item Types Administration</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Image</th>
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --><th>Image</th><!-- /TMPL_UNLESS -->
|
||||
<th>Code</th>
|
||||
<th>Description</th>
|
||||
<th>Not for loan</th>
|
||||
|
@ -274,7 +276,7 @@ Item Types Administration
|
|||
<!-- TMPL_ELSE -->
|
||||
<tr class="highlight">
|
||||
<!-- /TMPL_IF -->
|
||||
<td><img src="<!-- TMPL_VAR name="imageurl" -->" alt="" /></td>
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --> <td><img src="<!-- TMPL_VAR name="imageurl" -->" alt="" /></td><!-- /TMPL_UNLESS -->
|
||||
<td>
|
||||
<a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">
|
||||
<!-- TMPL_VAR name="itemtype" -->
|
||||
|
|
|
@ -147,7 +147,7 @@ function verify_images() {
|
|||
</tr>
|
||||
<!-- TMPL_LOOP NAME="itemloop" -->
|
||||
<tr>
|
||||
<!-- TMPL_IF NAME="item-level_itypes" --><td><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->"></td><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="item-level_itypes" --><td><!-- TMPL_IF NAME="noItemTypeImages" --><!-- TMPL_VAR NAME="description" --><!-- TMPL_ELSE --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->"><!-- /TMPL_IF --></td><!-- /TMPL_IF -->
|
||||
<td><!-- TMPL_VAR NAME="branchname" --></td>
|
||||
<td><!-- TMPL_VAR name="locationname" --></td>
|
||||
<td><!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
|
||||
|
@ -258,7 +258,7 @@ function verify_images() {
|
|||
<div id="editions"><h2>Editions</h2>
|
||||
<ul>
|
||||
<!-- TMPL_LOOP NAME="XISBNS" -->
|
||||
<li><img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR NAME="itemtype" -->" />
|
||||
<li><!-- TMPL_UNLESS NAME="noItemTypeImages" --><img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR NAME="itemtype" -->" /><!-- /TMPL_UNLESS -->
|
||||
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> by <!-- TMPL_VAR NAME="author" --> ©<!-- TMPL_VAR NAME="copyrightdate" --></li>
|
||||
<img src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._AA75_PU_PU-5_.jpg" />
|
||||
<!-- TMPL_LOOP NAME=items -->
|
||||
|
@ -275,7 +275,7 @@ function verify_images() {
|
|||
<ul>
|
||||
<!-- TMPL_LOOP NAME="SIMILAR_PRODUCTS" -->
|
||||
<!-- TMPL_LOOP NAME="product" -->
|
||||
<li><img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR NAME="itemtype" -->" />
|
||||
<li><!-- TMPL_UNLESS NAME="noItemTypeImages" --><img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR NAME="itemtype" -->" /><!-- /TMPL_UNLESS -->
|
||||
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR
|
||||
NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> by <!-- TMPL_VAR NAME="author" --> ©<!-- TMPL_VAR NAME="copyrightdate" --></li>
|
||||
<img src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._THUMBZZZ_PU_PU-5_.jpg" />
|
||||
|
|
|
@ -281,9 +281,9 @@ $(window).load(function() {
|
|||
<!-- TMPL_ELSE -->
|
||||
<p>
|
||||
<!-- TMPL_UNLESS NAME="item-level_itypes" -->
|
||||
<!-- TMPL_IF name="imageurl" -->
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
|
||||
<img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
|
||||
<!-- /TMPL_UNLESS -->
|
||||
|
||||
<!-- TMPL_IF NAME="author" -->
|
||||
|
@ -319,7 +319,7 @@ $(window).load(function() {
|
|||
<ul>
|
||||
<!-- TMPL_LOOP NAME="available_items_loop" -->
|
||||
|
||||
<!-- TMPL_IF NAME="item-level_itypes" --><!-- TMPL_IF name="imageurl" --><li style=" list-style: none; list-style-type: none; background-image: url(<!-- TMPL_VAR name=imageurl -->); background-repeat: no-repeat; background-position: 0 50%; padding: 3px 0 3px 30px; margin: .4em 0; " title="<!-- TMPL_VAR name="description" -->"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" --><!-- TMPL_IF name="imageurl" --><li style=" list-style: none; list-style-type: none; background-image: url(<!-- TMPL_VAR name="imageurl" -->); background-repeat: no-repeat; background-position: 0 50%; padding: 3px 0 3px 30px; margin: .4em 0; " title="<!-- TMPL_VAR name="description" -->"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
|
||||
|
@ -333,11 +333,11 @@ $(window).load(function() {
|
|||
<!-- TMPL_IF NAME="onloancount" --><!-- TMPL_VAR NAME="onloancount" --><!-- /TMPL_IF --> on loan:
|
||||
<ul>
|
||||
<!-- TMPL_LOOP NAME="onloan_items_loop" -->
|
||||
<!-- TMPL_IF NAME="item-level_itypes" -->
|
||||
<!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
|
||||
<!-- TMPL_IF name="imageurl" -->
|
||||
<li style=" list-style: none; list-style-type: none; background-image: url(<!-- TMPL_VAR name=imageurl -->); background-repeat: no-repeat; background-position: 0 50%; padding: 3px 0 3px 30px; margin: .4em 0;" title="<!-- TMPL_VAR name="description" -->">
|
||||
<!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
|
||||
|
||||
<!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
|
||||
|
@ -350,11 +350,11 @@ $(window).load(function() {
|
|||
<!-- TMPL_IF NAME="othercount" --><!-- TMPL_VAR NAME="othercount" --><!-- /TMPL_IF --> unavailable:
|
||||
<ul>
|
||||
<!-- TMPL_LOOP NAME="other_items_loop" -->
|
||||
<!-- TMPL_IF NAME="item-level_itypes" -->
|
||||
<!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
|
||||
<!-- TMPL_IF name="imageurl" -->
|
||||
<li style="list-style: none; list-style-type: none; background-image: url(<!-- TMPL_VAR name=imageurl -->); background-repeat: no-repeat; background-position: 0 50%; padding: 3px 0 3px 30px; margin: .4em 0;" title="<!-- TMPL_VAR name="description" -->">
|
||||
<!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_ELSE --><li><!-- /TMPL_IF --> >
|
||||
<!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF --> >
|
||||
|
||||
<!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
|
||||
|
|
|
@ -397,9 +397,9 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
|
|||
</td>
|
||||
<td>
|
||||
<!-- TMPL_VAR NAME="itemtype" -->
|
||||
<!-- TMPL_IF NAME="itemtype_image" -->
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" -->
|
||||
<img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
|
||||
</td>
|
||||
<td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
|
||||
<td><!-- TMPL_VAR NAME="barcode" --></td>
|
||||
|
|
|
@ -283,7 +283,7 @@ for (var i=0;i<ItemsNodes.length;i++){
|
|||
<input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
|
||||
<table>
|
||||
<tr>
|
||||
<th scope="col"></th>
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --><th scope="col"> </th><!-- /TMPL_UNLESS -->
|
||||
<th scope="col">Title</th>
|
||||
<th scope="col">Priority</th>
|
||||
<th scope="col">Date due</th>
|
||||
|
@ -304,11 +304,11 @@ for (var i=0;i<ItemsNodes.length;i++){
|
|||
<tr>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF -->
|
||||
<td>
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --><td>
|
||||
<!-- TMPL_IF NAME="itemtype_image" -->
|
||||
<img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" />
|
||||
<!-- TMPL_ELSE -->
|
||||
<!-- /TMPL_IF --></td>
|
||||
<!-- /TMPL_IF --></td><!-- /TMPL_UNLESS -->
|
||||
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> <!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR name="author" --><!-- /TMPL_IF --> <!-- TMPL_IF name="publishercode" -->; <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF --> <!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF --> </td>
|
||||
<td><!-- TMPL_VAR NAME="barcode" --></td>
|
||||
<td><!-- TMPL_VAR NAME="date_due" --></td>
|
||||
|
@ -343,7 +343,8 @@ for (var i=0;i<ItemsNodes.length;i++){
|
|||
</tr>
|
||||
<!-- /tmpl_loop -->
|
||||
<tr>
|
||||
<td colspan="6">Total replacement cost:</td>
|
||||
<!-- TMPL_UNLESS NAME="noItemTypeImages" --><td> </td><!-- /TMPL_UNLESS -->
|
||||
<td colspan="5">Total replacement cost:</td>
|
||||
<td><!-- TMPL_VAR NAME="totalprice" --></td>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue