[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters itemt
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters itemtypes.tmpl,1.21,1.22 |
Date: |
Fri, 02 Sep 2005 07:18:40 -0700 |
Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26960/koha-tmpl/intranet-tmpl/default/en/parameters
Modified Files:
itemtypes.tmpl
Log Message:
new feature : image for itemtypes.
* run updater/updatedatabase to create imageurl field in itemtypes.
* go to Koha >> parameters >> itemtypes >> modify (or add) an itemtype. You
will see around 20 nice images to choose between (thanks to owen). If you
prefer your own image, you also can type a complete url
(http://www.myserver.lib/path/to/my/image.gif)
* go to OPAC, and search something. In the result list, you now have the
picture instead of the text itemtype.
Index: itemtypes.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** itemtypes.tmpl 1 Mar 2005 13:40:55 -0000 1.21
--- itemtypes.tmpl 2 Sep 2005 14:18:38 -0000 1.22
***************
*** 57,60 ****
--- 57,64 ----
}
}
+
+ function report_itemtype(value_to_report) {
+ Aform.imageurl.value=value_to_report;
+ }
</script>
<div id="mainbloc">
***************
*** 78,81 ****
--- 82,92 ----
</p>
<p>
+ <label class="label100">Image</label>
+ <input type="text" name="imageurl" value="<!--
TMPL_VAR name="imageurl" -->" size="40" maxlength="80">
+ <!-- TMPL_LOOP NAME="IMAGESLOOP" -->
+ <a
href="javascript:report_itemtype('<!-- TMPL_VAR name="KohaImage" -->')"><img
src="/opac-tmpl/<!-- TMPL_VAR name="opacthemes" -->/itemtypeimg/<!-- TMPL_VAR
name="KohaImage" -->"></a>
+ <!-- /TMPL_LOOP -->
+ </p>
+ <p>
<label class="label100">Not for loan</label>
<!-- TMPL_IF NAME="notforloan" -->
***************
*** 139,143 ****
<!-- TMPL_LOOP NAME="loop" -->
<tr>
! <td><!-- TMPL_VAR NAME="itemtype" --></td>
<td><!-- TMPL_VAR NAME="description" --></td>
<td><!-- TMPL_IF NAME="notforloan" -->Yes<!-- /TMPL_IF
--></td>
--- 150,163 ----
<!-- TMPL_LOOP NAME="loop" -->
<tr>
! <td>
! <!-- TMPL_IF name="imageurl" -->
! <!-- TMPL_IF name="absoluteurl" -->
! <img src="<!-- TMPL_VAR
name="imageurl" -->">
! <!-- TMPL_ELSE -->
! <img src="/opac-tmpl/<!--
TMPL_VAR name="opacthemes" -->/itemtypeimg/<!-- TMPL_VAR name="imageurl" -->">
! <!-- /TMPL_IF -->
! <!-- /TMPL_IF -->
! <!-- TMPL_VAR NAME="itemtype" -->
! </td>
<td><!-- TMPL_VAR NAME="description" --></td>
<td><!-- TMPL_IF NAME="notforloan" -->Yes<!-- /TMPL_IF
--></td>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters itemtypes.tmpl,1.21,1.22,
Paul POULAIN <=