Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchoverdues.tt
Aleisha 1edb8cbeee Bug 16530: Adding a circ sidebar navigation menu and circSidebar syspref to activate/deactivate
Edit: Fast cataloging link should now show on all pages, removed offline circulation links
Edit 2: Creates the syspref to activate or deactivate the sidebar
Edit 3: Fixing merge conflicts, using Koha::BiblioFrameworks to find FA
framework and adding sidebar to on-site checkouts

This adds a sidebar to
circ/branchoverdues.tt
circ/circulation.tt (I also fixed up some of the indentation in this file to make it easier to see where the divs started and ended)
circ/renew.tt
circ/returns.tt
circ/selectbranchprinter.tt
circ/transferstoreceive.tt
circ/view_holdsqueue.tt
circ/waitingreserves.tt
circ/branchtransfers.tt
circ/on-site_checkouts.tt

To test:
1) Confirm syspref CircSidebar is activated
2) Go to all of the above pages and confirm the sidebar menu shows up
3) Confirm fast cataloguing link and transfer link are there
4) Trigger any error messages you can possibly think of (i.e. on renew.pl: barcode does not exist). Confirm that this does not mess up the layout of the page
5) Go to a user account page, Check out tab. (Since this is a circ/circulation.pl page). Ensure the circ nav sidebar doesn't show up (confirm it looks as it usually does)
6) Deactivate circSidebar
7) Confirm pages all look normal

Sponsored-by: Catalyst IT

Signed-off-by: Jan Kissig <jkissig@th-wildau.de>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-03-03 18:34:36 +00:00

175 lines
9.2 KiB
Text

[% USE Branches %]
[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Circulation &rsaquo; Overdues at [% LoginBranchname %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="circ_branchoverdues" class="circ">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Overdues at [% LoginBranchname %]</div>
[% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
<div id="bd">
<div id="yui-main">
[% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
<div class="yui-g">
<h1>Circulation: Overdues at [% LoginBranchname %]</h1>
<form name="selectlocation" action="branchoverdues.pl" method="post">
<label for="location">Shelving location selected: </label><select id="location" name="location">
<option value="">All shelving locations</option>
[% FOREACH locationsloo IN locationsloop %]
[% IF ( locationsloo.selected ) %]<option value="[% locationsloo.authorised_value %]" selected="selected">[% locationsloo.lib %]</option>[% ELSE %]<option value="[% locationsloo.authorised_value %]">[% locationsloo.lib %]</option>[% END %]
[% END %]
</select>
<input type="submit" name="location" class="submit" value="OK" />
</form>
[% IF ( overduesloop ) %]
<table style="width:100%;">
<tr>
<th>Date due</th>
<th>Title</th>
<th>Patron</th>
<th>Location</th>
<th>Overdue status</th>
<th>Notified by</th>
</tr>
[% FOREACH overduesloo IN overduesloop %]
<tr>
<td>
[% overduesloo.date_due %]
</td>
<td>
[% INCLUDE 'biblio-default-view.inc' biblionumber = overduesloo.biblionumber %][% overduesloo.title |html %] [% IF ( overduesloo.subtitle ) %][% overduesloo.subtitle %][% END %]</a> [% IF ( overduesloo.author ) %] by [% overduesloo.author %][% END %]
<br />Barcode : [% overduesloo.barcode %]
</td>
<td>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overduesloo.borrowernumber %]">[% overduesloo.borrowersurname %], [% overduesloo.borrowerfirstname %]</a>
<br />[% overduesloo.cardnumber %]
<br />[% overduesloo.borrowerphone %]<br />
[% IF ( overduesloo.borroweremail ) %]<a href="mailto:[% overduesloo.borroweremail %]?subject=Overdue: [% overduesloo.title |html %]">
[% overduesloo.borroweremail %]</a>[% END %]
</td>
<td>[% Branches.GetName( overduesloo.homebranch ) %] [% overduesloo.itemcallnumber %]
</td>
<td align="center">
<b>
[% IF ( overduesloo.overdue1 ) %]
First overdue
[% END %]
[% IF ( overduesloo.overdue2 ) %]
Second overdue
[% END %]
[% IF ( overduesloo.overdue3 ) %]
Third overdue
[% END %]
</b>
</td>
<td align="center">
[% IF ( overduesloo.overdue1 ) %]
[% IF ( overduesloo.borroweremail ) %]
<a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=mail&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Mail</a>
[% ELSE %]
Mail
[% END %]
&nbsp;|&nbsp;
<a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=phone&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Phone</a>
&nbsp;|&nbsp;
<a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=letter&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Notice</a>
[% END %]
[% IF ( overduesloo.overdue2 ) %]
<a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=letter&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Notice</a>
[% END %]
[% IF ( overduesloo.overdue3 ) %]
<a href="branchoverdues.pl?action=add&amp;borrowernumber=[% overduesloo.borrowernumber %]&amp;itemnumber=[% overduesloo.itemnumber %]&amp;method=lost&amp;location=[% overduesloo.location %]&amp;overduelevel=[% overduesloo.overdueLevel %]&amp;notifyId=[% overduesloo.notify_id %]">Considered lost</a>
[% END %]
</td>
</tr>
[% END %]
</table>
[% ELSE %]
<div class="dialog message">There are no overdues for today[% IF ( location ) %] at the selected location[% END %].</div>
[% END %]
[% IF ( todayoverduesloop ) %]
<div id="branch_odues_today_odues">
<table style="width:100%;">
<caption>Today's notifications</caption>
<tr>
<th>Date due</th>
<th>Title</th>
<th>Borrower</th>
<th>Location</th>
<th>Overdue status</th>
<th>Notified by</th>
<th>Cancel</th>
</tr>
[% FOREACH todayoverduesloo IN todayoverduesloop %]
<tr>
<td>
<p>
[% todayoverduesloo.date_due %]
</p>
</td>
<td>
<p>
<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% todayoverduesloo.biblionumber %]">[% todayoverduesloo.title |html %]</a>
&nbsp; (<b>[% todayoverduesloo.description %]</b>)
<br />Barcode : [% todayoverduesloo.barcode %]
</p>
</td>
<td>
<p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% todayoverduesloo.borrowernumber %]">[% todayoverduesloo.borrowersurname %] &nbsp; [% todayoverduesloo.borrowerfirstname %]</a>
<br />[% todayoverduesloo.cardnumber %]<br />
<br />[% todayoverduesloo.borrowerphone %]<br />
[% IF ( todayoverduesloo.borroweremail ) %]<a href="mailto:[% todayoverduesloo.borroweremail %]?subject=Overdue: [% todayoverduesloo.title |html %]">
[% todayoverduesloo.borroweremail %]</a>[% END %]
</p>
</td>
<td><p>[% Branches.GetName( todayoverduesloo.homebranch ) %] [% todayoverduesloo.itemcallnumber %]</p>
</td>
<td align="center">
<b>
[% IF ( todayoverduesloo.overdue1 ) %]
First overdue
[% END %]
[% IF ( todayoverduesloo.overdue2 ) %]
Second overdue
[% END %]
[% IF ( todayoverduesloo.overdue3 ) %]
Considered lost
[% END %]
</b>
</td>
<td align="center">
<b>[% todayoverduesloo.notify_method %]</b>
</td>
<td>
<a href="branchoverdues.pl?action=remove&amp;borrowernumber=[% todayoverduesloo.borrowernumber %]&amp;itemnumber=[% todayoverduesloo.itemnumber %]&amp;method=phone&amp;location=[% todayoverduesloo.location %]&amp;notify_date=[% todayoverduesloo.notify_date %]">Cancel notification</a>
</td>
</tr>
[% END %]
</table>
</div>
[% END %]
</div>
</div>
[% IF Koha.Preference('CircSidebar') %]
</div>
<div class="yui-b noprint">
[% INCLUDE 'circ-nav.inc' %]
</div>
[% END %]
</div>
[% INCLUDE 'intranet-bottom.inc' %]