Owen Leonard
533c9bc657
This patch removes the text of a message from the script to the template. The lastmove sub now returns either the date or 0, and the template displays the "no transfers" message if the date doesn't exist. To test, view the circulation history for items which do and do not have a transfer history. A date should be displayed for items which have a transfer history. A messages should be displayed for those which do not. This patch also adds a <span> around the text "Never" which was not getting picked up by the translation script. To test this change, run "perl translate update <lang>" from misc/translator, then check if the string shows up in the po file. (Thanks kf!) Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
67 lines
2.2 KiB
Text
67 lines
2.2 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Circulation › Circulation statistics for [% title |html %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$(".striped tr:even").addClass("highlight");
|
|
$("tr.mybranch td").css("background-color", "#CFE7FF");
|
|
});
|
|
</script>
|
|
</head>
|
|
<body id="circ_bookcount" class="circ">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'circ-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Circulation statistics for [% title |html %]</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h2>
|
|
[% title |html %] [% IF ( author ) %] by [% author |html %][% END %]</h2>
|
|
<h3>Barcode [% barcode %]</h3>
|
|
<table>
|
|
<tr><th>Home library</th><th>Current library</th><th>Date arrived<br />at current library </th><th>Number of checkouts<br />since last transfer</th></tr>
|
|
|
|
<tr><td>[% homebranch %]</td>
|
|
<td>[% holdingbranch %]</td>
|
|
<td>[% IF ( lastdate ) %][% lastdate %][% ELSE %]Item has no transfer record[% END %]</td>
|
|
<td>[% count %]</td>
|
|
</tr>
|
|
</table>
|
|
<table class="striped">
|
|
<tr>
|
|
<th>Library</th>
|
|
<th>No. of times checked out</th>
|
|
<th>Last seen</th>
|
|
</tr>
|
|
[% FOREACH branchloo IN branchloop %]
|
|
[% IF ( branchloo.selected ) %]
|
|
<tr class="mybranch">
|
|
[% ELSE %]
|
|
<tr>
|
|
[% END %]
|
|
<td>[% branchloo.branchname %]</td>
|
|
<td>[% branchloo.issues %]</td>
|
|
<td>[% IF ( branchloo.seen ) %]
|
|
<span style="display:none;">[% branchloo.seen %][% branchloo.seentime %]</span>
|
|
<!-- invisible span for eventual use by tablesorter -->
|
|
[% branchloo.seen %] [% branchloo.seentime %]
|
|
[% ELSE %]
|
|
<span>Never</span>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'biblio-view-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|