[% END %]
[% IF ( PATRON_CANT ) %]
- <li>This patron can't check out this item per library circulation policy</li>
+ <li>This patron can't check out this item per library circulation policy.</li>
+[% END %]
+
+[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
+ <li>No circulation rule is defined for this patron and itemtype combination.</li>
[% END %]
[% IF ( NOT_FOR_LOAN_FORCING ) %]
[% END %]
[% IF PREVISSUE %]
- <li>This item has previously been checked out to this patron. Check out anyway?</li>
+ <li>Patron has previously checked out this title: <b>[% item.title %] [% IF item.author %] by [% item.author %][% END %]</b>. Check out anyway?</li>
[% END %]
[% IF BIBLIO_ALREADY_ISSUED %]
<li>The barcode was not found: <span class="ex">[% barcode |html %]</span>
[% IF ( fast_cataloging ) %]
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
- <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
+ <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Add record using fast cataloging</a>
[% END %]
[% END %]
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
- <div class="hint">Enter item barcode:</div>
+ [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
+ <div class="hint">Enter item barcode or keyword:</div>
+ [% ELSE %]
+ <div class="hint">Enter item barcode:</div>
+ [% END %]
[% IF NEEDSCONFIRMATION %]
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
[% ELSE %]
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
[% END %]
- <button type="submit" class="btn">Check out</button>
+ <button type="submit" class="btn btn-default">Check out</button>
<div id="show-checkout-settings">
<a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
[% ELSE %]
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
[% END %]
- <button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
+ <button class="btn btn-default btn-sm action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
</div>
[% END %]
[% END %]
</i>
[% END %]
<br/>
- <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
+ <a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
<span class="override_debarment">
- <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a>
+ <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a>
</span>
[% END %]
</li>
<div id="messages" class="circmessage">
<h4>Messages:</h4>
<ul>
- [% FOREACH message IN librarian_messages %]
+ [% FOREACH message IN messages %]
<li>
- <span class="circ-hlt">
+ [% IF(message.message_type == "L") %]
+ <span class="circ-hlt">
+ [% ELSE %]
+ <span>
+ [% END %]
[% message.message_date | $KohaDates %]
[% Branches.GetName( message.branchcode ) %]
+ [% IF message.manager_id %]
+ ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id %]">[% message.get_column('manager_firstname') %] [% message.get_column('manager_surname') %]</a> )
+ [% END %]
<i>"[% message.message %]"</i>
</span>
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
- [<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>]
+ <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
[% END %]
</li>
[% END %]
- [% FOREACH message IN patron_messages %]
- <li><span class="">[% message.message_date | $KohaDates %] [% Branches.GetName( message.branchcode )%] <i>"[% message.message %]"</i></span>
- [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
- [<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]"><i class="fa fa-trash"></i> Delete</a>]
- [% END %]</li>
- [% END %]
</ul>
- <a id="addnewmessageLabel" href="#add_message_form" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
+ <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
</div>
</div>
[% ELSE %]
<a href="#reserves" id="holds-tab">0 Holds</a>
[% END %]
+ </li>
+
+ [% IF Koha.Preference('ArticleRequests') %]
+ <li>
+ <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
+ </li>
+ [% END %]
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
</ul>
[% END %]
</div> <!-- reservesloop -->
+[% IF Koha.Preference('ArticleRequests') %]
+ [% INCLUDE 'patron-article-requests.inc' %]
+[% END %]
+
[% ELSIF borrowernumber %]
<div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
[% END %] <!-- borrowernumber and borrower-->
</div></div>
[% END %]
-
+[% IF Koha.Preference('CircSidebar') %]
+[% UNLESS ( borrowers ) %]
+ [% IF not( borrowernumber and borrower ) %]
+ <div class="yui-b noprint">
+ [% INCLUDE 'circ-nav.inc' %]
+ </div>
+ [% END %]
+[% END %]
+[% END %]
</div>
</div>
-[% UNLESS ( borrowers ) %][% IF borrowernumber and borrower %]<div class="yui-b">
-[% INCLUDE 'circ-menu.inc' %]
-</div>[% END %][% END %]
+[% UNLESS ( borrowers ) %]
+ [% IF borrowernumber and borrower %]
+ <div class="yui-b">
+ [% INCLUDE 'circ-menu.inc' %]
+ </div>
+ [% END %]
+[% END %]
</div>
<!-- Modal -->
-<div id="barcodeSubmittedModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
+<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
+ <div class="modal-dialog">
+ <div class="modal-content">
<div class="modal-header">
<h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
</div>
<div class="modal-body">
<p>You have already submitted a barcode, please wait for the checkout to process...</p>
</div>
+ </div>
+ </div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]