Bug 6916 - item's acq date now takes you to its invoice
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tt
index 2ea7091..b1e225f 100644 (file)
@@ -248,6 +248,9 @@ function verify_images() {
                 [% IF ( itemdata_copynumber ) %]<th>Copy No.</th>[% END %]
                 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
                [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine Label</th>[% END %]
+               [% IF ( hostrecords ) %]<th>Host Records</th>[% END %]
+               [% IF ( analyze ) %]<th>Used in</th>[% END %]
+               [% IF ( analyze ) %]<th></th>[% END %]
             </tr>
             [% FOREACH itemloo IN itemloop %]
                 <tr>
@@ -328,7 +331,7 @@ function verify_images() {
                     [% IF ( itemloo.waitingdate ) %]
                         Waiting
                     [% ELSE %]
-                        On hold
+                        Item-level hold
                     [% END %]
                     [% IF ( canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">
                        [% IF ( hidepatronname ) %]
@@ -338,12 +341,12 @@ function verify_images() {
                        [% END %]
                    </a>[% END %]
                     [% IF ( itemloo.waitingdate ) %]
-                        at[% ELSE %]expected at
+                        at[% ELSE %]for delivery at
                     [% END %]   [% itemloo.ExpectedAtLibrary %]
-                    since
-                    [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate %]
+                    [% IF ( itemloo.waitingdate ) %]
+                        since [% itemloo.waitingdate %]
                     [% ELSE %]
-                        [% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %]
+                        [% IF ( itemloo.reservedate ) %](placed [% itemloo.reservedate %])[% END %]
                     [% END %]
                 [% END %]
                 [% UNLESS ( itemloo.itemnotforloan ) %][% UNLESS ( itemloo.onloan ) %][% UNLESS ( itemloo.itemlost ) %][% UNLESS ( itemloo.wthdrawn ) %][% UNLESS ( itemloo.damaged ) %][% UNLESS ( itemloo.transfertwhen ) %][% UNLESS ( itemloo.reservedate ) %]
@@ -360,8 +363,8 @@ function verify_images() {
                                                [% IF ( itemloo.enumchron ) %]
                                                [% itemloo.enumchron %][% IF ( itemloo.serialseq ) %] -- [% END %]
                                                [% END %]
-                                       [% END %]
                                        [% itemloo.serialseq %][% IF ( itemloo.publisheddate ) %] ([% itemloo.publisheddate %])[% END %]
+                                       [% END %]
                                </td>[% END %]
                                [% IF ( itemdata_uri ) %]
                                        <td class="uri"><a href="[% itemloo.uri %]">[% itemloo.uri %]</a></td>
@@ -370,12 +373,20 @@ function verify_images() {
                                        <td class="copynumber">[% itemloo.copynumber %]</td>
                                [% END %]
                 [% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %]
-                [% IF ( itemloo.type ) %]
-                    <td><a href="/cgi-bin/koha/maint/catmaintain.pl?type=fixitemtype&amp;bi=[% itemloo.biblioitemnumber %]&amp;item=[% itemloo.itemtype %]">Fix Itemtype</a></td>
-                [% END %]
                [% IF ( SpineLabelShowPrintOnBibDetails ) %]
                        <td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print Label</a></td>
                [% END %]
+                [% IF ( hostrecords ) %]
+                      <td>[% IF ( itemloo.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemloo.hostbiblionumber %]" >[% itemloo.hosttitle %]</a>[% END %]</td>
+                [% END %]
+                [% IF ( analyze ) %]<td>
+                       [% IF ( itemloo.countanalytics ) %]
+                               <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% itemloo.itemnumber %]">[% itemloo.countanalytics %] analytics</a>
+                       [% END %]</td>
+               [% END %]
+                [% IF ( analyze ) %]
+                        <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% itemloo.biblionumber %]&hostitemnumber=[% itemloo.itemnumber %]">Create Analytics</a></td>
+                [% END %]
 
                 </tr>
             [% END %]