persistent location of RFID chip based on itemnumber
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 22 Feb 2012 19:23:31 +0000 (20:23 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 4 Jan 2016 14:56:38 +0000 (15:56 +0100)
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt

index 4be8003..87f7419 100644 (file)
     <br clear="all" />
     [% IF ( ONLY_ONE ) %]
         <div class="dialog message">You are only viewing one item.  <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber %]&amp;bi=[% biblioitemnumber %]#item[% itemnumber %]">View All</a></div>
-        <div class="dialog message">Press <strong>F4</strong> to add RFID tag.</div>
     [% END %]
-    [% IF (count < 2) %]
-        <div class="dialog message">Press <strong>F4</strong> to add RFID tag.</div>
-    [% END %]
-<!-- XXX dpavlin 2012-01-05 -- insert RFID chip position picture -->
-[% IF ( count < 2 ) %]
-<script>
-$(document).ready( function() {
-       $('div.dialog.message').append('<img stype="float:right" src="/intranet-tmpl/prog/img/rfidPosition'+(Math.floor(Math.random()*3)+1)+'.jpg" style="position:absolute; right: 1em">');
-} );
-</script>
+<!-- XXX dpavlin 2012-02-22 -- persistent location of RFID chip based on itemnumber -->
+[% IF ( ONLY_ONE || count < 2 ) %]
+<img src="/intranet-tmpl/prog/img/rfidPosition[% ITEM_DAT.itemnumber % 3 + 1 %].jpg" style="position:absolute; right: 1em">
+<div class="dialog message">Press <strong>F4</strong> to add RFID tag.</div>
 [% END %]
 <!-- /insert RFID -->
     [% FOREACH ITEM_DAT IN ITEM_DATA %]