+[% USE Koha %]
+[% USE KohaDates %]
+[% USE Branches %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Circulation › Circulation statistics for [% title |html %]</title>
+<title>Circulation statistics for [% title | html %] › Circulation › Koha</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>
+<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
+ <ol>
+ <li>
+ <a href="/cgi-bin/koha/mainpage.pl">Home</a>
+ </li>
+
+ [% IF blocking_error %]
+ <li>
+ <a href="#" aria-current="page">
+ Circulation
+ </a>
+ </li>
+
+ [% ELSE %]
+ <li>
+ <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
+ </li>
+ <li>
+ <a href="#" aria-current="page">
+ Circulation statistics for [% title |html %]
+ </a>
+ </li>
+ [% END %]
+ </ol>
+</nav>
+
+<div class="main container-fluid">
+ <div class="row">
+ <div class="col-sm-10 col-sm-push-2">
+ <main>
+
+ <h1>Circulation statistics for [% title | html %] [% IF ( author ) %] by [% author |html %][% END %]</h1>
-<div id="doc3" class="yui-t2">
-
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b">
+[% INCLUDE 'blocking_errors.inc' %]
-<h2>
-[% title |html %] [% IF ( author ) %] by [% author |html %][% END %]</h2>
-<h3>Barcode [% barcode %]</h3>
+<h3>Barcode [% barcode | html %]</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>[% lastdate %]</td>
- <td>[% count %]</td>
+
+ <tr><td>[% Branches.GetName( homebranch ) | html %]</td>
+ <td>[% Branches.GetName( holdingbranch ) | html %]</td>
+ <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
+ <td>[% count | html %]</td>
</tr>
</table>
-<table class="striped">
+<table>
<tr>
<th>Library</th>
<th>No. of times checked out</th>
<th>Last seen</th>
</tr>
- [% FOREACH branchloo IN branchloop %]
- [% IF ( branchloo.selected ) %]
+ [% FOREACH library IN libraries %]
+ [% IF library.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 %]Never
+ <td>[% library.branchname | html %]</td>
+ <td>[% library.issues | html %]</td>
+ <td>[% IF library.seen %]
+ [% library.seen | $KohaDates with_hours => 1 %]
+ [% ELSE %]
+ <span>Never</span>
[% END %]
</td>
</tr>
[% END %]
</table>
-</div>
-</div>
-<div class="yui-b">
-[% INCLUDE 'biblio-view-menu.inc' %]
-</div>
-</div>
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
+
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% INCLUDE 'biblio-view-menu.inc' %]
+ </aside>
+ </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+ </div> <!-- /.row -->
+
+[% MACRO jsinclude BLOCK %]
+ <script>
+ $(document).ready(function(){
+ $("tr.mybranch td").css("background-color", "#CFE7FF");
+ });
+ </script>
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]