|
Lines 12-977
Link Here
|
| 12 |
[% INCLUDE 'doc-head-open.inc' %] |
12 |
[% INCLUDE 'doc-head-open.inc' %] |
| 13 |
[% SET destination = "circ" %] |
13 |
[% SET destination = "circ" %] |
| 14 |
<title>Koha › Circulation |
14 |
<title>Koha › Circulation |
| 15 |
[% IF patron %] |
15 |
[% IF patron %] |
| 16 |
› Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] |
16 |
› Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] |
| 17 |
[% END %] |
17 |
[% END %] |
| 18 |
</title> |
18 |
</title> |
| 19 |
[% INCLUDE 'doc-head-close.inc' %] |
19 |
[% INCLUDE 'doc-head-close.inc' %] |
| 20 |
[% Asset.css("css/datatables.css") | $raw %] |
20 |
[% Asset.css("css/datatables.css") | $raw %] |
| 21 |
</head> |
21 |
</head> |
| 22 |
|
22 |
|
| 23 |
<body id="circ_circulation" class="circ"> |
23 |
<body id="circ_circulation" class="circ"> |
|
|
24 |
[% INCLUDE 'header.inc' %] |
| 25 |
[% INCLUDE 'circ-search.inc' %] |
| 24 |
|
26 |
|
| 25 |
[% INCLUDE 'header.inc' %] |
27 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › |
| 26 |
[% INCLUDE 'circ-search.inc' %] |
28 |
[% IF patron %] |
| 27 |
|
29 |
<a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %] |
| 28 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › |
30 |
[% ELSE %] |
| 29 |
[% IF patron %] |
31 |
<strong>Checkouts</strong> |
| 30 |
<a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %] |
32 |
[% END %] |
| 31 |
[% ELSE %] |
|
|
| 32 |
<strong>Checkouts</strong> |
| 33 |
[% END %] |
| 34 |
</div> |
| 35 |
[% IF ( $borrowers ) %] |
| 36 |
<div id="doc" class="yui-t7"> |
| 37 |
|
| 38 |
<div id="bd"> |
| 39 |
<div id="yui-main"> |
| 40 |
<div class="yui-g"> |
| 41 |
[% ELSE %] |
| 42 |
<div id="doc3" class="yui-t2"> |
| 43 |
|
| 44 |
<div id="bd"> |
| 45 |
<div id="yui-main"> |
| 46 |
<div class="yui-b"> |
| 47 |
[% END %] |
| 48 |
|
| 49 |
[% IF patron %] |
| 50 |
[% INCLUDE 'members-toolbar.inc' %] |
| 51 |
[% END %] |
| 52 |
|
| 53 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
| 54 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
| 55 |
|
| 56 |
[% IF autoswitched %] |
| 57 |
<div id="autoswitched" class="dialog message">Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.</div> |
| 58 |
[% END %] |
| 59 |
|
| 60 |
[% IF additional_materials %] |
| 61 |
<div id="materials" class="dialog message">Note about the accompanying materials: <br /> |
| 62 |
[% additional_materials | html %] |
| 63 |
</div> |
33 |
</div> |
| 64 |
[% END %] |
|
|
| 65 |
|
34 |
|
| 66 |
[% IF ( alert.ITEM_LOST ) %] |
35 |
[% IF ( $borrowers ) %] |
| 67 |
<div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div> |
36 |
<div id="doc" class="yui-t7"> |
| 68 |
[% END %] |
37 |
<div id="bd"> |
| 69 |
|
38 |
<div id="yui-main"> |
| 70 |
[% IF ( alert.OTHER_CHARGES ) %] |
39 |
<div class="yui-g"> |
| 71 |
<div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]</div> |
40 |
[% ELSE %] |
| 72 |
[% END %] |
41 |
<div id="doc3" class="yui-t2"> |
|
|
42 |
<div id="bd"> |
| 43 |
<div id="yui-main"> |
| 44 |
<div class="yui-b"> |
| 45 |
[% END %] |
| 73 |
|
46 |
|
| 74 |
[% IF alert.HIGHHOLDS %] |
47 |
[% IF patron %] |
| 75 |
<div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate | html %] ([% alert.HIGHHOLDS.duration | html %] days).</div> |
48 |
[% INCLUDE 'members-toolbar.inc' %] |
| 76 |
[% END %] |
49 |
[% END %] |
| 77 |
|
50 |
|
| 78 |
[% IF ( nopermission ) %] |
51 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
| 79 |
<div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div> |
52 |
[% IF ( was_renewed ) %] |
| 80 |
[% END %] |
53 |
<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div> |
|
|
54 |
[% END %] |
| 81 |
|
55 |
|
| 82 |
[% IF ( NEEDSCONFIRMATION ) %] |
56 |
[% IF autoswitched %] |
| 83 |
<div class="yui-g"> |
57 |
<div id="autoswitched" class="dialog message">Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.</div> |
|
|
58 |
[% END %] |
| 84 |
|
59 |
|
| 85 |
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action"> |
60 |
[% IF additional_materials %] |
| 86 |
[% IF CAN_user_circulate_force_checkout %] |
61 |
<div id="materials" class="dialog message"> |
| 87 |
<h3>Please confirm checkout</h3> |
62 |
Note about the accompanying materials: <br /> |
| 88 |
[% ELSE %] |
63 |
[% additional_materials | html %] |
| 89 |
<h3>Cannot check out</h3> |
64 |
</div> |
| 90 |
[% END %] |
65 |
[% END %] |
| 91 |
|
66 |
|
| 92 |
<ul> |
67 |
[% IF ( alert.ITEM_LOST ) %] |
| 93 |
[%IF ( AGE_RESTRICTION ) %] |
68 |
<div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div> |
| 94 |
<li>Age restriction [% AGE_RESTRICTION | html %]. |
69 |
[% END %] |
| 95 |
[% IF CAN_user_circulate_force_checkout %] |
|
|
| 96 |
Check out anyway? |
| 97 |
[% END %] |
| 98 |
</li> |
| 99 |
[% END %] |
| 100 |
|
70 |
|
| 101 |
[% IF ( DEBT ) %] |
71 |
[% IF ( alert.OTHER_CHARGES ) %] |
| 102 |
<li>The patron has a debt of [% DEBT | $Price | html %].</li> |
72 |
<div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]</div> |
| 103 |
[% END %] |
73 |
[% END %] |
| 104 |
|
74 |
|
| 105 |
[% IF ( DEBT_GUARANTEES ) %] |
75 |
[% IF alert.HIGHHOLDS %] |
| 106 |
<li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price | html %].</li> |
76 |
<div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate | html %] ([% alert.HIGHHOLDS.duration | html %] days).</div> |
| 107 |
[% END %] |
77 |
[% END %] |
| 108 |
|
78 |
|
| 109 |
[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] |
79 |
[% IF ( nopermission ) %] |
| 110 |
<li>Rental charge for this item: [% RENTALCHARGE | html %]</li> |
80 |
<div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div> |
| 111 |
[% END %] |
81 |
[% END %] |
| 112 |
|
82 |
|
| 113 |
[% IF ( RENEW_ISSUE ) %] |
83 |
[% IF ( NEEDSCONFIRMATION ) %] |
| 114 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li> |
84 |
<div class="yui-g"> |
| 115 |
[% END %] |
85 |
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action"> |
|
|
86 |
[% IF CAN_user_circulate_force_checkout %] |
| 87 |
<h3>Please confirm checkout</h3> |
| 88 |
[% ELSE %] |
| 89 |
<h3>Cannot check out</h3> |
| 90 |
[% END %] |
| 91 |
|
| 92 |
<ul> |
| 93 |
[%IF ( AGE_RESTRICTION ) %] |
| 94 |
<li> |
| 95 |
Age restriction [% AGE_RESTRICTION | html %]. |
| 96 |
[% IF CAN_user_circulate_force_checkout %] |
| 97 |
Check out anyway? |
| 98 |
[% END %] |
| 99 |
</li> |
| 100 |
[% END %] |
| 116 |
|
101 |
|
| 117 |
[% IF ( RESERVE_WAITING ) %] |
102 |
[% IF ( DEBT ) %] |
| 118 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | html %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% reswaitingdate | $KohaDates %]</li> |
103 |
<li>The patron has a debt of [% DEBT | $Price | html %].</li> |
| 119 |
[% END %] |
104 |
[% END %] |
| 120 |
|
105 |
|
| 121 |
[% IF ( RESERVED ) %] |
106 |
[% IF ( DEBT_GUARANTEES ) %] |
| 122 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | html %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% resreservedate | $KohaDates %]</li> |
107 |
<li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price | html %].</li> |
| 123 |
[% END %] |
108 |
[% END %] |
| 124 |
|
109 |
|
| 125 |
[% IF ( ISSUED_TO_ANOTHER ) %] |
110 |
[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] |
| 126 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber | html %]">[% issued_firstname | html %] [% issued_surname | html %]</a> ([% issued_cardnumber | html %]). |
111 |
<li>Rental charge for this item: [% RENTALCHARGE | html %]</li> |
| 127 |
[% IF CAN_user_circulate_force_checkout %] |
112 |
[% END %] |
| 128 |
Check in and check out? |
|
|
| 129 |
[% END %] |
| 130 |
</li> |
| 131 |
[% END %] |
| 132 |
|
113 |
|
| 133 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] |
114 |
[% IF ( RENEW_ISSUE ) %] |
| 134 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
115 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li> |
| 135 |
[% END %] |
116 |
[% END %] |
| 136 |
|
117 |
|
| 137 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] |
118 |
[% IF ( RESERVE_WAITING ) %] |
| 138 |
<li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li> |
119 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | html %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% reswaitingdate | $KohaDates %]</li> |
| 139 |
[% END %] |
120 |
[% END %] |
| 140 |
|
121 |
|
| 141 |
[% IF ( BORRNOTSAMEBRANCH ) %] |
122 |
[% IF ( RESERVED ) %] |
| 142 |
<li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li> |
123 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | html %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% resreservedate | $KohaDates %]</li> |
| 143 |
[% END %] |
124 |
[% END %] |
| 144 |
|
125 |
|
| 145 |
[% IF ( PATRON_CANT ) %] |
126 |
[% IF ( ISSUED_TO_ANOTHER ) %] |
| 146 |
<li>This patron can't check out this item per library circulation policy.</li> |
127 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber | html %]">[% issued_firstname | html %] [% issued_surname | html %]</a> ([% issued_cardnumber | html %]). |
| 147 |
[% END %] |
128 |
[% IF CAN_user_circulate_force_checkout %] |
|
|
129 |
Check in and check out? |
| 130 |
[% END %] |
| 131 |
</li> |
| 132 |
[% END %] |
| 148 |
|
133 |
|
| 149 |
[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] |
134 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] |
| 150 |
<li>No circulation rule is defined for this patron and itemtype combination.</li> |
135 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 151 |
[% END %] |
136 |
[% END %] |
| 152 |
|
137 |
|
| 153 |
[% IF ( NOT_FOR_LOAN_FORCING ) %] |
138 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] |
| 154 |
<li> |
139 |
<li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 155 |
[% IF ( itemtype_notforloan ) %] |
140 |
[% END %] |
| 156 |
Item type is normally not for loan. |
|
|
| 157 |
[% ELSIF ( item_notforloan ) %] |
| 158 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) | html %] |
| 159 |
Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 160 |
[% END %] |
| 161 |
[% IF CAN_user_circulate_force_checkout %] |
| 162 |
Check out anyway? |
| 163 |
[% END %] |
| 164 |
</li> |
| 165 |
[% END %] |
| 166 |
|
141 |
|
| 167 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
142 |
[% IF ( BORRNOTSAMEBRANCH ) %] |
| 168 |
<li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). |
143 |
<li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li> |
| 169 |
[% IF CAN_user_circulate_force_checkout %] |
144 |
[% END %] |
| 170 |
Check out anyway? |
|
|
| 171 |
[% END %] |
| 172 |
</li> |
| 173 |
[% END %] |
| 174 |
|
145 |
|
| 175 |
[% IF ( ITEM_LOST ) %] |
146 |
[% IF ( PATRON_CANT ) %] |
| 176 |
<li>This item has been lost with a status of "[% ITEM_LOST | html %]". |
147 |
<li>This patron can't check out this item per library circulation policy.</li> |
| 177 |
[% IF CAN_user_circulate_force_checkout %] |
148 |
[% END %] |
| 178 |
Check out anyway? |
|
|
| 179 |
[% END %] |
| 180 |
</li> |
| 181 |
[% END %] |
| 182 |
|
149 |
|
| 183 |
[% IF HIGHHOLDS %] |
150 |
[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] |
| 184 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | html %]). Check out anyway?</li> |
151 |
<li>No circulation rule is defined for this patron and itemtype combination.</li> |
| 185 |
[% END %] |
152 |
[% END %] |
| 186 |
|
153 |
|
| 187 |
[% IF PREVISSUE %] |
154 |
[% IF ( NOT_FOR_LOAN_FORCING ) %] |
| 188 |
<li>Patron has previously checked out this title: <b>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</b>. Check out anyway?</li> |
155 |
<li> |
| 189 |
[% END %] |
156 |
[% IF ( itemtype_notforloan ) %] |
|
|
157 |
Item type is normally not for loan. |
| 158 |
[% ELSIF ( item_notforloan ) %] |
| 159 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) | html %] |
| 160 |
Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 161 |
[% END %] |
| 162 |
[% IF CAN_user_circulate_force_checkout %] |
| 163 |
Check out anyway? |
| 164 |
[% END %] |
| 165 |
</li> |
| 166 |
[% END %] |
| 190 |
|
167 |
|
| 191 |
[% IF BIBLIO_ALREADY_ISSUED %] |
168 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 192 |
<li> |
169 |
<li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). |
| 193 |
Patron has already checked out another item from this record. |
170 |
[% IF CAN_user_circulate_force_checkout %] |
| 194 |
[% IF CAN_user_circulate_force_checkout %] |
171 |
Check out anyway? |
| 195 |
Check out anyway? |
172 |
[% END %] |
| 196 |
[% END %] |
173 |
</li> |
| 197 |
</li> |
174 |
[% END %] |
| 198 |
[% END %] |
|
|
| 199 |
</ul> |
| 200 |
|
175 |
|
| 201 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
176 |
[% IF ( ITEM_LOST ) %] |
| 202 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
177 |
<li>This item has been lost with a status of "[% ITEM_LOST | html %]". |
| 203 |
<input type="hidden" name="restoreduedatespec" /> |
178 |
[% IF CAN_user_circulate_force_checkout %] |
|
|
179 |
Check out anyway? |
| 180 |
[% END %] |
| 181 |
</li> |
| 182 |
[% END %] |
| 204 |
|
183 |
|
| 205 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
184 |
[% IF HIGHHOLDS %] |
|
|
185 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | html %]). Check out anyway?</li> |
| 186 |
[% END %] |
| 206 |
|
187 |
|
| 207 |
[% IF HIGHHOLDS %] |
188 |
[% IF PREVISSUE %] |
| 208 |
<p class="circ-override-high-holds"> |
189 |
<li>Patron has previously checked out this title: <b>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</b>. Check out anyway?</li> |
| 209 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
190 |
[% END %] |
| 210 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
|
|
| 211 |
</p> |
| 212 |
[% END %] |
| 213 |
|
191 |
|
| 214 |
[% IF ( RESERVED ) %] |
192 |
[% IF BIBLIO_ALREADY_ISSUED %] |
| 215 |
<p> |
193 |
<li> |
| 216 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
194 |
Patron has already checked out another item from this record. |
| 217 |
<label for="cancelreserve">Cancel hold</label> |
195 |
[% IF CAN_user_circulate_force_checkout %] |
| 218 |
</p> |
196 |
Check out anyway? |
| 219 |
[% END %] |
197 |
[% END %] |
|
|
198 |
</li> |
| 199 |
[% END %] |
| 200 |
</ul> |
| 201 |
|
| 202 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 203 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
| 204 |
<input type="hidden" name="restoreduedatespec" /> |
| 205 |
[% IF (forceallow) %] |
| 206 |
<input type="hidden" name="forceallow" value="1"> |
| 207 |
[% END %] |
| 208 |
|
| 209 |
[% IF HIGHHOLDS %] |
| 210 |
<p class="circ-override-high-holds"> |
| 211 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
| 212 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
| 213 |
</p> |
| 214 |
[% END %] |
| 215 |
|
| 216 |
[% IF ( RESERVED ) %] |
| 217 |
<p> |
| 218 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
| 219 |
<label for="cancelreserve">Cancel hold</label> |
| 220 |
</p> |
| 221 |
[% END %] |
| 222 |
|
| 223 |
[% IF ( RESERVE_WAITING ) %] |
| 224 |
<p> |
| 225 |
<label for="cancelreserve">Cancel hold</label> |
| 226 |
<input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br /> |
| 227 |
<label for="revertreserve">Revert waiting status</label> |
| 228 |
<input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/> |
| 229 |
</p> |
| 230 |
[% END %] |
| 231 |
|
| 232 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 233 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 234 |
<input type="hidden" name="issueconfirmed" value="1" /> |
| 235 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/> |
| 236 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
| 237 |
|
| 238 |
[% IF ( INVALID_DATE ) %] |
| 239 |
<p> |
| 240 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 241 |
<label for="duedatespec">Due date</label> |
| 242 |
</p> |
| 243 |
[% ELSE %] |
| 244 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 245 |
[% END %] |
| 246 |
|
| 247 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 248 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 249 |
[% IF ( RENEW_ISSUE ) %] |
| 250 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button> |
| 251 |
[% ELSE %] |
| 252 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> |
| 253 |
[% END %] |
| 254 |
<input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" /> |
| 255 |
<input type="hidden" name="auto_renew" value="[% auto_renew | html %]" /> |
| 256 |
</form> |
| 257 |
[% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 258 |
|
| 259 |
[% IF ( RESERVED ) %] |
| 260 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 261 |
<input type="hidden" name="restoreduedatespec" /> |
| 262 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 263 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 264 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 265 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
| 266 |
</form> |
| 267 |
[% END %] |
| 268 |
|
| 269 |
[% IF ( RESERVE_WAITING ) %] |
| 270 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 271 |
<input type="hidden" name="restoreduedatespec" /> |
| 272 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 273 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 274 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 275 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
| 276 |
</form> |
| 277 |
[% END %] |
| 278 |
|
| 279 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 280 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 281 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 282 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 283 |
<input type="hidden" name="restoreduedatespec" /> |
| 284 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 285 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 286 |
[% IF ( RENEW_ISSUE ) %] |
| 287 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button> |
| 288 |
[% ELSE %] |
| 289 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button> |
| 290 |
[% END %] |
| 291 |
[% ELSE %] |
| 292 |
<button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button> |
| 293 |
[% END %] |
| 294 |
</form> |
| 220 |
|
295 |
|
| 221 |
[% IF ( RESERVE_WAITING ) %] |
296 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 222 |
<p> |
297 |
[% UNLESS noissues %] |
| 223 |
<label for="cancelreserve">Cancel hold</label> |
298 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
| 224 |
<input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br /> |
299 |
[% END %] |
| 225 |
<label for="revertreserve">Revert waiting status</label> |
300 |
[% END %] |
| 226 |
<input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/> |
301 |
</div> [% # /circ_needsconfirmation %] |
| 227 |
</p> |
302 |
</div> [% # /.yui-g %] |
| 228 |
[% END %] |
303 |
[% END # /IF NEEDSCONFIRMATION %] |
|
|
304 |
|
| 305 |
[% IF ( IMPOSSIBLE ) %] |
| 306 |
<div class="yui-g"> |
| 307 |
<div id="circ_impossible" class="dialog alert audio-alert-warning"> |
| 308 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 309 |
<h3>Barcode not found</h3> |
| 310 |
[% END %] |
| 311 |
<!-- RESULT OF ISSUING REQUEST --> |
| 312 |
<ul> |
| 313 |
[% IF ( STATS ) %] |
| 314 |
<li>Local use recorded</li> |
| 315 |
[% END %] |
| 229 |
|
316 |
|
| 230 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
317 |
[% IF ( INVALID_DATE ) %] |
| 231 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
318 |
<li>The due date "[% INVALID_DATE | html %]" is invalid</li> |
| 232 |
<input type="hidden" name="issueconfirmed" value="1" /> |
319 |
[% END %] |
| 233 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/> |
|
|
| 234 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
| 235 |
[% IF ( INVALID_DATE ) %] |
| 236 |
<p> |
| 237 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 238 |
<label for="duedatespec">Due date</label> |
| 239 |
</p> |
| 240 |
[% ELSE %] |
| 241 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 242 |
[% END %] |
| 243 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 244 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 245 |
[% IF ( RENEW_ISSUE ) %] |
| 246 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button> |
| 247 |
[% ELSE %] |
| 248 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> |
| 249 |
[% END %] |
| 250 |
<input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" /> |
| 251 |
<input type="hidden" name="auto_renew" value="[% auto_renew | html %]" /> |
| 252 |
</form> |
| 253 |
[% END %] |
| 254 |
|
320 |
|
| 255 |
[% IF ( RESERVED ) %] |
321 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 256 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
322 |
<li>The barcode was not found: <span class="ex">[% barcode | html %]</span> |
| 257 |
<input type="hidden" name="restoreduedatespec" /> |
323 |
<div> |
| 258 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
324 |
[% IF ( FALLBACK ) %] |
| 259 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
325 |
[% IF options %] |
| 260 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
326 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
| 261 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
327 |
[% ELSE %] |
| 262 |
</form> |
328 |
<div>No items were found by searching.</div> |
| 263 |
[% END %] |
329 |
[% END %] |
|
|
330 |
[% END %] |
| 264 |
|
331 |
|
| 265 |
[% IF ( RESERVE_WAITING ) %] |
332 |
[% IF ( fast_cataloging ) %] |
| 266 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
333 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
| 267 |
<input type="hidden" name="restoreduedatespec" /> |
334 |
<a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% patron.borrowernumber | html %]&branch=[% branch | html %]&duedatespec=[% duedatespec | html %]&stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a> |
| 268 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
335 |
[% END %] |
| 269 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
336 |
[% END %] |
| 270 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
337 |
</div> |
| 271 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
338 |
</li> |
| 272 |
</form> |
339 |
[% END %] |
| 273 |
[% END %] |
|
|
| 274 |
|
340 |
|
| 275 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
341 |
[% IF ( NOT_FOR_LOAN ) %] |
| 276 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
342 |
<li> |
| 277 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
343 |
[% IF ( itemtype_notforloan ) %] |
| 278 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
344 |
Item type not for loan. |
| 279 |
<input type="hidden" name="restoreduedatespec" /> |
345 |
[% ELSIF ( item_notforloan ) %] |
| 280 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
346 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) | html %] |
| 281 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
347 |
Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 282 |
[% IF ( RENEW_ISSUE ) %] |
348 |
[% END %] |
| 283 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button> |
349 |
</li> |
| 284 |
[% ELSE %] |
350 |
[% END %] |
| 285 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button> |
|
|
| 286 |
[% END %] |
| 287 |
[% ELSE %] |
| 288 |
<button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button> |
| 289 |
[% END %] |
| 290 |
</form> |
| 291 |
|
351 |
|
| 292 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
352 |
[% IF ( WTHDRAWN ) %] |
| 293 |
[% UNLESS noissues %] |
353 |
<li>Item has been withdrawn</li> |
| 294 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
354 |
[% END %] |
| 295 |
[% END %] |
|
|
| 296 |
[% END %] |
| 297 |
</div></div> |
| 298 |
[% END %] <!-- NEEDSCONFIRMATION --> |
| 299 |
|
355 |
|
| 300 |
[% IF ( IMPOSSIBLE ) %] |
356 |
[% IF ( RESTRICTED ) %] |
|
|
357 |
<li>Item is restricted</li> |
| 358 |
[% END %] |
| 301 |
|
359 |
|
| 302 |
<div class="yui-g"> |
360 |
[% IF ( GNA ) %] |
| 303 |
<div id="circ_impossible" class="dialog alert audio-alert-warning"> |
361 |
<li>Patron's address is in doubt</li> |
| 304 |
[% IF ( UNKNOWN_BARCODE ) %] |
362 |
[% END %] |
| 305 |
<h3>Barcode not found</h3> |
|
|
| 306 |
[% END %] |
| 307 |
<!-- RESULT OF ISSUING REQUEST --> |
| 308 |
<ul> |
| 309 |
[% IF ( STATS ) %] |
| 310 |
<li>Local use recorded</li> |
| 311 |
[% END %] |
| 312 |
|
363 |
|
| 313 |
[% IF ( INVALID_DATE ) %] |
364 |
[% IF ( CARD_LOST ) %] |
| 314 |
<li>The due date "[% INVALID_DATE | html %]" is invalid</li> |
365 |
<li>Patron's card is lost</li> |
| 315 |
[% END %] |
366 |
[% END %] |
| 316 |
|
367 |
|
| 317 |
[% IF ( UNKNOWN_BARCODE ) %] |
368 |
[% IF ( DEBARRED ) %] |
| 318 |
<li>The barcode was not found: <span class="ex">[% barcode | html %]</span> |
369 |
<li>Patron is restricted</li> |
|
|
370 |
[% END %] |
| 319 |
|
371 |
|
| 320 |
<div> |
372 |
[% IF ( NO_MORE_RENEWALS ) %] |
| 321 |
[% IF ( FALLBACK ) %] |
373 |
<li>No more renewals possible</li> |
| 322 |
[% IF options %] |
374 |
[% END %] |
| 323 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
|
|
| 324 |
[% ELSE %] |
| 325 |
<div>No items were found by searching.</div> |
| 326 |
[% END %] |
| 327 |
[% END %] |
| 328 |
|
375 |
|
| 329 |
[% IF ( fast_cataloging ) %] |
376 |
[% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] |
| 330 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
377 |
<li>This item can not be renewed, it's an on-site checkout</li> |
| 331 |
<a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% patron.borrowernumber | html %]&branch=[% branch | html %]&duedatespec=[% duedatespec | html %]&stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a> |
378 |
[% END %] |
| 332 |
[% END %] |
|
|
| 333 |
[% END %] |
| 334 |
</div> |
| 335 |
|
379 |
|
| 336 |
</li> |
380 |
[%IF ( AGE_RESTRICTION ) %] |
| 337 |
[% END %] |
381 |
<li>Age restriction [% AGE_RESTRICTION | html %].</li> |
|
|
382 |
[% END %] |
| 338 |
|
383 |
|
| 339 |
[% IF ( NOT_FOR_LOAN ) %] |
384 |
[% IF ( EXPIRED ) %] |
| 340 |
<li> |
385 |
<li>Patron's card is expired</li> |
| 341 |
[% IF ( itemtype_notforloan ) %] |
386 |
[% END %] |
| 342 |
Item type not for loan. |
|
|
| 343 |
[% ELSIF ( item_notforloan ) %] |
| 344 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) | html %] |
| 345 |
Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 346 |
[% END %] |
| 347 |
</li> |
| 348 |
[% END %] |
| 349 |
|
387 |
|
| 350 |
[% IF ( WTHDRAWN ) %] |
388 |
[% IF ( TOO_MANY ) %] |
| 351 |
<li>Item has been withdrawn</li> |
389 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 352 |
[% END %] |
390 |
[% END %] |
| 353 |
|
391 |
|
| 354 |
[% IF ( RESTRICTED ) %] |
392 |
[% IF ( ITEMNOTSAMEBRANCH ) %] |
| 355 |
<li>Item is restricted</li> |
393 |
<li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li> |
| 356 |
[% END %] |
394 |
[% END %] |
| 357 |
|
395 |
|
| 358 |
[% IF ( GNA ) %] |
396 |
[% IF RETURN_IMPOSSIBLE %] |
| 359 |
<li>Patron's address is in doubt</li> |
397 |
<li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li> |
| 360 |
[% END %] |
398 |
[% END %] |
| 361 |
|
399 |
|
| 362 |
[% IF ( CARD_LOST ) %] |
400 |
[% IF ( USERBLOCKEDWITHENDDATE ) %] |
| 363 |
<li>Patron's card is lost</li> |
401 |
<li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li> |
| 364 |
[% END %] |
402 |
[% END %] |
| 365 |
|
403 |
|
| 366 |
[% IF ( DEBARRED ) %] |
404 |
[% IF ( USERBLOCKEDNOENDDATE ) %] |
| 367 |
<li>Patron is restricted</li> |
405 |
<li>Patron has an indefinite restriction.</li> |
| 368 |
[% END %] |
406 |
[% END %] |
| 369 |
|
407 |
|
| 370 |
[% IF ( NO_MORE_RENEWALS ) %] |
408 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 371 |
<li>No more renewals possible</li> |
409 |
<li>Checkouts are BLOCKED because patron has overdue items.</li> |
| 372 |
[% END %] |
410 |
[% END %] |
| 373 |
|
411 |
|
| 374 |
[% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] |
412 |
[% IF (forceallow) %] |
| 375 |
<li>This item can not be renewed, it's an on-site checkout</li> |
413 |
<li>Restriction overridden temporarily.</li> |
| 376 |
[% END %] |
414 |
[% END %] |
|
|
415 |
</ul> |
| 416 |
</div> [% # /IF circ_impossible %] |
| 417 |
</div> [% # /.yui-g %] |
| 418 |
|
| 419 |
[% IF ( FALLBACK ) %] |
| 420 |
[% IF options %] |
| 421 |
|
| 422 |
<!-- Modal --> |
| 423 |
<div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel"> |
| 424 |
<div class="modal-dialog modal-wide" role="document"> |
| 425 |
<div class="modal-content"> |
| 426 |
<div class="modal-header"> |
| 427 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 428 |
<h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3> |
| 429 |
</div> |
| 430 |
<div class="modal-body"> |
| 431 |
<table class="table_borrowers"> |
| 432 |
[% FOREACH book IN options %] |
| 433 |
<tr> |
| 434 |
<td> |
| 435 |
<a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %]</a> |
| 436 |
[% book.barcode | html %] |
| 437 |
</td> |
| 438 |
<td> |
| 439 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
| 440 |
[% IF (forceallow) %] |
| 441 |
<input type="hidden" name="forceallow" value="1"> |
| 442 |
[% END %] |
| 443 |
<input type="hidden" name="restoreduedatespec" /> |
| 444 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 445 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 446 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 447 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 448 |
<input type="hidden" name="barcode" value="[% book.barcode | html %]" /> |
| 449 |
<button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button> |
| 450 |
</form> |
| 451 |
</td> |
| 452 |
</tr> |
| 453 |
[% END %] |
| 454 |
</table> |
| 455 |
</div> |
| 456 |
<div class="modal-footer"> |
| 457 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
| 458 |
</div> |
| 459 |
</div> |
| 460 |
</div> |
| 461 |
</div> |
| 462 |
[% END # /IF options %] |
| 463 |
[% END # /IF FALLBACK %] |
| 464 |
|
| 465 |
[% ELSE # IMPOSSIBLE %] |
| 466 |
[% IF (forceallow) %] |
| 467 |
<div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div> |
| 468 |
[% END %] |
| 469 |
[% END # /IF IMPOSSIBLE %] |
| 377 |
|
470 |
|
| 378 |
[%IF ( AGE_RESTRICTION ) %] |
471 |
<span class="audio-alert-success"></span> |
| 379 |
<li>Age restriction [% AGE_RESTRICTION | html %].</li> |
|
|
| 380 |
[% END %] |
| 381 |
|
472 |
|
| 382 |
[% IF ( EXPIRED ) %] |
473 |
[% IF ( issued ) %] |
| 383 |
<li>Patron's card is expired</li> |
474 |
<p>Item checked out</p> |
| 384 |
[% END %] |
475 |
[% END %] |
| 385 |
|
476 |
|
| 386 |
[% IF ( TOO_MANY ) %] |
477 |
[% IF ( message ) %] |
| 387 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
478 |
[% INCLUDE 'patron-toolbar.inc' %] |
| 388 |
[% END %] |
479 |
<h4>No patron matched <span class="ex">[% message | html %]</span></h4> |
|
|
480 |
[% END %] |
| 389 |
|
481 |
|
| 390 |
[% IF ( ITEMNOTSAMEBRANCH ) %] |
482 |
[% IF ( borrowers ) %] |
| 391 |
<li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li> |
483 |
[% INCLUDE 'patron-toolbar.inc' %] |
| 392 |
[% END %] |
|
|
| 393 |
|
484 |
|
| 394 |
[% IF RETURN_IMPOSSIBLE %] |
485 |
<fieldset id="circ_circulation_selectborrower"> |
| 395 |
<li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li> |
486 |
[% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] |
| 396 |
[% END %] |
487 |
</fieldset> |
|
|
488 |
[% ELSE %] |
| 397 |
|
489 |
|
| 398 |
[% IF ( USERBLOCKEDWITHENDDATE ) %] |
490 |
<!-- BARCODE ENTRY --> |
| 399 |
<li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li> |
|
|
| 400 |
[% END %] |
| 401 |
|
491 |
|
| 402 |
[% IF ( USERBLOCKEDNOENDDATE ) %] |
492 |
[% IF patron %] |
| 403 |
<li>Patron has an indefinite restriction.</li> |
493 |
<div class="yui-g"> |
| 404 |
[% END %] |
|
|
| 405 |
|
494 |
|
| 406 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
495 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
| 407 |
<li>Checkouts are BLOCKED because patron has overdue items.</li> |
496 |
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div> |
| 408 |
[% END %] |
497 |
[% END %] |
| 409 |
</ul> |
|
|
| 410 |
|
498 |
|
| 411 |
[% IF (forceallow) %] |
499 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
| 412 |
<li>Restriction overridden temporarily.</li> |
500 |
<div class="yui-u first"> |
| 413 |
[% END %] |
501 |
|
|
|
502 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
| 503 |
<input type="hidden" name="restoreduedatespec" /> |
| 504 |
|
| 505 |
[% IF ( issue ) %] |
| 506 |
<fieldset id="circ_circulation_issue" class="lastchecked"> |
| 507 |
[% ELSE %] |
| 508 |
<fieldset id="circ_circulation_issue"> |
| 509 |
[% END %] |
| 510 |
|
| 511 |
[% IF ( DisplayClearScreenButton ) %] |
| 512 |
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> |
| 513 |
[% END %] |
| 514 |
|
| 515 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 516 |
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> |
| 517 |
|
| 518 |
[% IF Koha.Preference('itemBarcodeFallbackSearch') %] |
| 519 |
<div class="hint">Enter item barcode or keyword:</div> |
| 520 |
[% ELSE %] |
| 521 |
<div class="hint">Enter item barcode:</div> |
| 522 |
[% END %] |
| 523 |
|
| 524 |
[% IF NEEDSCONFIRMATION %] |
| 525 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" /> |
| 526 |
[% ELSE %] |
| 527 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
| 528 |
[% END %] |
| 529 |
<button type="submit" class="btn btn-default">Check out</button> |
| 530 |
|
| 531 |
<div id="show-checkout-settings"> |
| 532 |
<a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a> |
| 533 |
</div> |
| 534 |
|
| 535 |
<div class="checkout-settings"> |
| 536 |
|
| 537 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 538 |
[% IF ( SpecifyDueDate ) %] |
| 539 |
<div id="specify-due-date" class="checkout-setting"> |
| 540 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
| 541 |
[% IF ( duedatespec ) %] |
| 542 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 543 |
[% ELSE %] |
| 544 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="" /> |
| 545 |
[% END %] |
| 546 |
<label for="stickyduedate"> Remember for session:</label> |
| 547 |
[% IF ( stickyduedate ) %] |
| 548 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" /> |
| 549 |
[% ELSE %] |
| 550 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
| 551 |
[% END %] |
| 552 |
<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> |
| 553 |
</div> |
| 554 |
[% END # /IF SpecifyDueDate %] |
| 555 |
[% END # /IF noissues && OnSiteCheckoutsForce %] |
| 556 |
|
| 557 |
[% UNLESS ( noissues ) %] |
| 558 |
<div id="set-automatic-renewal" class="checkout-setting"> |
| 559 |
[% IF NEEDSCONFIRMATION %] |
| 560 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
| 561 |
[% ELSE %] |
| 562 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" /> |
| 563 |
[% END %] |
| 564 |
|
| 565 |
<label for="auto_renew">Automatic renewal</label> |
| 566 |
</div> |
| 567 |
[% IF Koha.Preference('decreaseLoanHighHolds') %] |
| 568 |
<div id="set_high_holds_overrride" class="checkout-setting"> |
| 569 |
[% IF NEEDSCONFIRMATION %] |
| 570 |
[% IF override_high_holds %] |
| 571 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/> |
| 572 |
[% ELSE %] |
| 573 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/> |
| 574 |
[% END %] |
| 575 |
[% ELSE %] |
| 576 |
[% IF override_high_holds %] |
| 577 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" /> |
| 578 |
[% ELSE %] |
| 579 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" /> |
| 580 |
[% END %] |
| 581 |
[% END %] |
| 582 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
| 583 |
</div> |
| 584 |
[% END # /IF decreaseLoanHighHolds %] |
| 585 |
[% END # /UNLESS noissues %] |
| 586 |
|
| 587 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
| 588 |
<div id="onsite_checkout-select" class="checkout-setting"> |
| 589 |
[% IF noissues %] |
| 590 |
<div class="onsite-checkout-only"> |
| 591 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> |
| 592 |
<input type="text" name="duedatespec" id="duedatespec" /> |
| 593 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 594 |
</div> |
| 595 |
[% ELSE %] |
| 596 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> |
| 597 |
<label for="onsite_checkout">On-site checkout</label> |
| 598 |
[% END %] |
| 599 |
</div> |
| 600 |
[% END # /IF OnSiteCheckouts%] |
| 601 |
</div> [% # /.checkout-settings %] |
| 602 |
|
| 603 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 604 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 605 |
<input type="hidden" name="print" value="maybe" /> |
| 606 |
<input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" /> |
| 607 |
[% IF ( CHARGES ) %] |
| 608 |
<input type="hidden" name="charges" value="yes" /> |
| 609 |
[% END %] |
| 610 |
</fieldset> [% # /#circ_circulation_issue %] |
| 611 |
|
| 612 |
[% IF ( issue ) %] |
| 613 |
<div class="lastchecked"> |
| 614 |
<p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates %]</p> |
| 615 |
</div> |
| 616 |
[% END %] |
| 617 |
</form> [% # / #mainform %] |
| 618 |
</div> [% # /.yui-u.first %] |
| 619 |
|
| 620 |
[% END %] [% # /IF !noissues || ( OnSiteCheckouts && OnSiteCheckoutsForce ) %] |
| 621 |
|
| 622 |
[% IF ( noissues ) %] |
| 623 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 624 |
<div class="yui-u"> |
| 625 |
[% ELSE %] |
| 626 |
<div> |
| 627 |
[% END %] |
| 628 |
[% ELSE %] |
| 629 |
<div class="yui-u"> |
| 630 |
[% END %] |
| 414 |
|
631 |
|
| 415 |
</div></div> |
632 |
[% IF ( noissues ) %] |
| 416 |
|
633 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 417 |
[% IF ( FALLBACK ) %] |
634 |
<div id="circmessages" class="circmessage attention"> |
| 418 |
[% IF options %] |
635 |
[% ELSE %] |
| 419 |
|
636 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 420 |
<!-- Modal --> |
637 |
<div id="circmessages" class="circmessage warning"> |
| 421 |
<div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel"> |
638 |
[% END %] |
| 422 |
<div class="modal-dialog modal-wide" role="document"> |
639 |
<h3> |
| 423 |
<div class="modal-content"> |
640 |
Cannot check out! |
| 424 |
<div class="modal-header"> |
641 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 425 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
642 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 426 |
<h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3> |
643 |
[% END %] |
| 427 |
</div> |
644 |
</h3> |
| 428 |
<div class="modal-body"> |
645 |
[% ELSE %] |
| 429 |
<table class="table_borrowers"> |
646 |
<div id="circmessages" class="circmessage attention"> |
| 430 |
[% FOREACH book IN options %] |
647 |
<h3>Attention:</h3> |
| 431 |
<tr> |
648 |
[% END # /IF noissues %] |
| 432 |
<td> |
649 |
|
| 433 |
<a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %]</a> |
650 |
<ul> |
| 434 |
[% book.barcode | html %] |
651 |
[% IF ( has_modifications ) %] |
| 435 |
</td> |
652 |
<li> |
| 436 |
<td> |
653 |
<span class="circ-hlt">Pending modifications:</span> Patron has pending modifications. |
| 437 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
654 |
[% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %] |
| 438 |
[% IF (forceallow) %] |
655 |
<a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a> |
| 439 |
<input type="hidden" name="forceallow" value="1"> |
656 |
[% END %] |
| 440 |
[% END %] |
657 |
</li> |
| 441 |
<input type="hidden" name="restoreduedatespec" /> |
|
|
| 442 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 443 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 444 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 445 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 446 |
<input type="hidden" name="barcode" value="[% book.barcode | html %]" /> |
| 447 |
<button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button> |
| 448 |
</form> |
| 449 |
</td> |
| 450 |
</tr> |
| 451 |
[% END %] |
658 |
[% END %] |
| 452 |
</table> |
|
|
| 453 |
</div> |
| 454 |
<div class="modal-footer"> |
| 455 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
| 456 |
</div> |
| 457 |
</div> |
| 458 |
</div> |
| 459 |
</div> |
| 460 |
[% END %] |
| 461 |
[% END %] |
| 462 |
|
| 463 |
[% ELSE %] |
| 464 |
[% IF (forceallow) %] |
| 465 |
<div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div> |
| 466 |
[% END %] |
| 467 |
[% END %] <!-- /impossible --> |
| 468 |
|
| 469 |
<span class="audio-alert-success"></span> |
| 470 |
|
| 471 |
[% IF ( issued ) %] |
| 472 |
<p>Item checked out</p> |
| 473 |
[% END %] |
| 474 |
|
| 475 |
[% IF ( message ) %] |
| 476 |
[% INCLUDE 'patron-toolbar.inc' %] |
| 477 |
<h4> |
| 478 |
No patron matched <span class="ex">[% message | html %]</span> |
| 479 |
</h4> |
| 480 |
[% END %] |
| 481 |
|
659 |
|
| 482 |
[% IF ( borrowers ) %] |
660 |
[% IF ( warndeparture ) %] |
| 483 |
[% INCLUDE 'patron-toolbar.inc' %] |
661 |
<li> |
|
|
662 |
<span class="circ-hlt">Expiration:</span> Patron's card will expire soon. |
| 663 |
Patron's card expires on [% expiry | $KohaDates %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a> |
| 664 |
</li> |
| 665 |
[% END %] |
| 484 |
|
666 |
|
| 485 |
<fieldset id="circ_circulation_selectborrower"> |
667 |
[% IF ( returnbeforeexpiry ) %] |
| 486 |
[% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] |
668 |
<li> |
| 487 |
</fieldset> |
669 |
<span class="circ-hlt">Set due date to expiry:</span> |
| 488 |
[% ELSE %] |
670 |
You have the ReturnBeforeExpiry system preference enabled this means if the expiry date is before the date due, the date due will be set to the expiry date |
|
|
671 |
</li> |
| 672 |
[% END %] |
| 489 |
|
673 |
|
| 490 |
<!-- BARCODE ENTRY --> |
674 |
[% IF ( expired ) %] |
|
|
675 |
<li> |
| 676 |
<span class="circ-hlt">Expiration:</span> Patron's card has expired. |
| 677 |
[% IF ( expiry ) %] |
| 678 |
Patron's card expired on [% expiry | $KohaDates %] |
| 679 |
[% END %] |
| 680 |
<a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a> |
| 681 |
</li> |
| 682 |
[% END %] |
| 491 |
|
683 |
|
| 492 |
[% IF patron %] |
684 |
[% IF ( gna ) %] |
| 493 |
<div class="yui-g"> |
685 |
<li class="blocker"><span class="circ-hlt">Address: </span> Patron's address in doubt</li> |
|
|
686 |
[% END %] |
| 494 |
|
687 |
|
| 495 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
688 |
[% IF ( lost ) %] |
| 496 |
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div> |
689 |
<li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li> |
| 497 |
[% END %] |
690 |
[% END %] |
| 498 |
|
691 |
|
| 499 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
692 |
[% IF ( userdebarred ) %] |
| 500 |
<div class="yui-u first"> |
693 |
<li class="blocker"> |
|
|
694 |
<span class="circ-hlt"> Restricted:</span> Patron's account is restricted |
| 695 |
|
| 696 |
[% IF ( userdebarreddate ) %] |
| 697 |
until [% userdebarreddate | $KohaDates %] |
| 698 |
[% END %] |
| 699 |
|
| 700 |
[% IF ( debarredcomment ) %] |
| 701 |
with the explanation: <br/><i> |
| 702 |
[% IF debarredcomment.search('OVERDUES_PROCESS') %] |
| 703 |
Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ').raw | html_line_break %] |
| 704 |
[% ELSE %] |
| 705 |
[% debarredcomment.raw | html_line_break %] |
| 706 |
[% END %] |
| 707 |
</i> |
| 708 |
[% END %] |
| 709 |
<br/> |
| 710 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 711 |
|
| 712 |
[% IF (noissues && patron && CAN_user_circulate_force_checkout) %] |
| 713 |
<span class="override_debarment"> |
| 714 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | html %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
| 715 |
</span> |
| 716 |
[% END %] |
| 717 |
</li> |
| 718 |
[% END # /IF userdebarred %] |
| 719 |
|
| 720 |
[% IF ( odues ) %] |
| 721 |
<li> |
| 722 |
<span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> |
| 723 |
<a href="#checkouts">See highlighted items below</a> |
| 724 |
</li> |
| 725 |
[% END %] |
| 501 |
|
726 |
|
| 502 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
727 |
[% IF ( charges ) %] |
| 503 |
<input type="hidden" name="restoreduedatespec" /> |
728 |
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %] |
| 504 |
[% IF ( issue ) %] |
729 |
[% END %] |
| 505 |
<fieldset id="circ_circulation_issue" class="lastchecked"> |
|
|
| 506 |
[% ELSE %] |
| 507 |
<fieldset id="circ_circulation_issue"> |
| 508 |
[% END %] |
| 509 |
[% IF ( DisplayClearScreenButton ) %] |
| 510 |
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> |
| 511 |
[% END %] |
| 512 |
|
730 |
|
| 513 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
731 |
[% IF ( charges_guarantees ) %] |
|
|
732 |
<li> |
| 733 |
<span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price | html %]. |
| 734 |
[% IF noissues %] |
| 735 |
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> |
| 736 |
[% END %] |
| 737 |
</li> |
| 738 |
[% END %] |
| 514 |
|
739 |
|
| 515 |
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> |
740 |
[% IF ( credits ) %] |
|
|
741 |
<li> |
| 742 |
<span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price | html %][% END %] |
| 743 |
</li> |
| 744 |
[% END %] |
| 516 |
|
745 |
|
| 517 |
[% IF Koha.Preference('itemBarcodeFallbackSearch') %] |
746 |
</ul> |
| 518 |
<div class="hint">Enter item barcode or keyword:</div> |
747 |
</div> [% # /.yui-u %] |
| 519 |
[% ELSE %] |
748 |
|
| 520 |
<div class="hint">Enter item barcode:</div> |
749 |
[% IF WaitingHolds.count %] |
| 521 |
[% END %] |
750 |
<div id="holdswaiting" class="circmessage"> |
|
|
751 |
<h4>Holds waiting:</h4> |
| 752 |
[% FOREACH w IN WaitingHolds %] |
| 753 |
<ul> |
| 754 |
<li> |
| 755 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber %]">[% w.biblio.title | html %]</a> |
| 756 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]), |
| 757 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
| 758 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
| 759 |
Hold placed on [% w.reservedate | $KohaDates %]. |
| 760 |
|
| 761 |
<br/> |
| 762 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] |
| 763 |
<strong class="waitinghere"> |
| 764 |
[% ELSE %] |
| 765 |
<strong> |
| 766 |
[% END %] |
| 767 |
[% SET expires_on = w.expirationdate %] |
| 768 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
| 769 |
</strong> |
| 770 |
</li> |
| 771 |
</ul> |
| 772 |
[% END %] |
| 773 |
</div> [% # /#holdswaiting %] |
| 774 |
[% END # /IF WaitingHolds.count %] |
| 775 |
|
| 776 |
[% IF ( notes ) %] |
| 777 |
<div id="circnotes" class="circmessage"> |
| 778 |
<h4>Notes:</h4> |
| 779 |
<p><span class="circ-hlt">[% notesmsg | html %]</span></p> |
| 780 |
</div> |
| 781 |
[% END %] |
| 522 |
|
782 |
|
| 523 |
[% IF NEEDSCONFIRMATION %] |
783 |
<div id="messages" class="circmessage"> |
| 524 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" /> |
784 |
<h4>Messages:</h4> |
| 525 |
[% ELSE %] |
785 |
<ul> |
| 526 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
786 |
[% FOREACH message IN messages %] |
| 527 |
[% END %] |
787 |
<li> |
| 528 |
<button type="submit" class="btn btn-default">Check out</button> |
788 |
[% IF(message.message_type == "L") %] |
|
|
789 |
<span class="circ-hlt"> |
| 790 |
[% ELSE %] |
| 791 |
<span> |
| 792 |
[% END %] |
| 793 |
[% message.message_date | $KohaDates %] |
| 794 |
[% Branches.GetName( message.branchcode ) | html %] |
| 795 |
[% IF message.manager_id %] |
| 796 |
( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id | html %]">[% message.get_column('manager_firstname') | html %] [% message.get_column('manager_surname') | html %]</a> ) |
| 797 |
[% END %] |
| 798 |
<i>"[% message.message | html %]"</i> |
| 799 |
</span> |
| 800 |
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] |
| 801 |
<a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a> |
| 802 |
[% END %] |
| 803 |
</li> |
| 804 |
[% END %] |
| 805 |
</ul> |
| 806 |
<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> |
| 807 |
</div> [% # /#messages %] |
| 808 |
|
| 809 |
</div> [% # /.yui-u %] |
| 810 |
</div> [% # /.yui-g %] |
| 811 |
|
| 812 |
<div class="yui-g"> |
| 813 |
<div id="patronlists" class="toptabs"> |
| 814 |
<ul id="patronlists-tabs"> |
| 815 |
<li> |
| 816 |
[% IF ( issuecount ) %] |
| 817 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
| 818 |
[% ELSE %] |
| 819 |
<a href="#checkouts">0 Checkouts</a> |
| 820 |
[% END %] |
| 821 |
</li> |
| 822 |
|
| 823 |
[% IF relatives_issues_count %] |
| 824 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
| 825 |
[% END %] |
| 529 |
|
826 |
|
| 530 |
<div id="show-checkout-settings"> |
827 |
<li> |
| 531 |
<a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a> |
828 |
[% IF ( holds_count ) %] |
| 532 |
</div> |
829 |
<a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> |
|
|
830 |
[% ELSE %] |
| 831 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
| 832 |
[% END %] |
| 833 |
</li> |
| 834 |
|
| 835 |
[% IF Koha.Preference('ArticleRequests') %] |
| 836 |
<li> |
| 837 |
<a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a> |
| 838 |
</li> |
| 839 |
[% END %] |
| 533 |
|
840 |
|
| 534 |
<div class="checkout-settings"> |
841 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> |
| 535 |
|
842 |
|
| 536 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
843 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
| 537 |
[% IF ( SpecifyDueDate ) %] |
844 |
[% SET enrollable = patron.get_enrollable_clubs(0,1) %] |
| 538 |
<div id="specify-due-date" class="checkout-setting"> |
845 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 539 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
846 |
<li> |
| 540 |
[% IF ( duedatespec ) %] |
847 |
<a id="clubs-tab-link" href="#clubs-tab"> |
| 541 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
848 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
| 542 |
[% ELSE %] |
849 |
</a> |
| 543 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="" /> |
850 |
</li> |
| 544 |
[% END %] |
851 |
[% END %] |
| 545 |
<label for="stickyduedate"> Remember for session:</label> |
852 |
</ul> [% # /#patronlists-tabs %] |
| 546 |
[% IF ( stickyduedate ) %] |
853 |
|
| 547 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" /> |
854 |
[% # CURRENT CHECKOUTS %] |
| 548 |
[% ELSE %] |
855 |
[% INCLUDE "checkouts-table.inc" %] |
| 549 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
856 |
|
| 550 |
[% END %] |
857 |
[% IF ( relatives_issues_count ) %] |
| 551 |
<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> |
858 |
<div id="relatives-issues"> |
| 552 |
</div> |
859 |
<table id="relatives-issues-table"> |
| 553 |
[% END %] |
860 |
<thead> |
| 554 |
[% END %] |
861 |
<tr> |
|
|
862 |
<th scope="col">Due date (unformatted, hidden)</th> |
| 863 |
<th scope="col">Due date</th> |
| 864 |
<th scope="col">Title</th> |
| 865 |
<th scope="col">Item type</th> |
| 866 |
<th scope="col">Location</th> |
| 867 |
<th scope="col">Checked out on</th> |
| 868 |
<th scope="col">Checked out from</th> |
| 869 |
<th scope="col">Call no</th> |
| 870 |
<th scope="col">Charge</th> |
| 871 |
<th scope="col">Fine</th> |
| 872 |
<th scope="col">Price</th> |
| 873 |
<th scope="col">Patron</th> |
| 874 |
</tr> |
| 875 |
</thead> |
| 876 |
</table> |
| 877 |
</div> |
| 878 |
[% END %] |
| 879 |
|
| 880 |
[% # CLUBS %] |
| 881 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 882 |
<div id="clubs-tab"> |
| 883 |
Loading... |
| 884 |
</div> |
| 885 |
[% END %] |
| 886 |
|
| 887 |
[% # RESTRICTIONS %] |
| 888 |
[% INCLUDE borrower_debarments.inc %] |
| 889 |
|
| 890 |
[% # HOLDS %] |
| 891 |
<div id="reserves"> |
| 892 |
[% IF ( holds_count ) %] |
| 893 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
| 894 |
<input type="hidden" name="from" value="circ" /> |
| 895 |
<table id="holds-table" style="width: 100% !Important;"> |
| 896 |
<thead> |
| 897 |
<tr> |
| 898 |
<th>Hold date</th> |
| 899 |
<th>Title</th> |
| 900 |
<th>Call number</th> |
| 901 |
<th>Barcode</th> |
| 902 |
<th>Pickup at</th> |
| 903 |
<th>Expiration</th> |
| 904 |
<th>Priority</th> |
| 905 |
<th>Cancel?</th> |
| 906 |
<th>Suspend?</th> |
| 907 |
</tr> |
| 908 |
</thead> |
| 909 |
</table> |
| 910 |
|
| 911 |
<fieldset class="action"> |
| 912 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
| 913 |
</fieldset> |
| 914 |
</form> |
| 915 |
|
| 916 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
| 917 |
<fieldset class="action"> |
| 918 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 919 |
<input type="hidden" name="from" value="circ" /> |
| 920 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 921 |
<input type="submit" value="Suspend all holds" /> |
| 555 |
|
922 |
|
| 556 |
[% UNLESS ( noissues ) %] |
923 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
| 557 |
<div id="set-automatic-renewal" class="checkout-setting"> |
924 |
<label for="suspend_until">until</label> |
| 558 |
[% IF NEEDSCONFIRMATION %] |
925 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/> |
| 559 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
926 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
| 560 |
[% ELSE %] |
927 |
[% END %] |
| 561 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" /> |
928 |
</form> |
| 562 |
[% END %] |
929 |
</fieldset> |
| 563 |
|
930 |
|
| 564 |
<label for="auto_renew">Automatic renewal</label> |
931 |
<fieldset class="action"> |
| 565 |
</div> |
932 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 566 |
[% IF Koha.Preference('decreaseLoanHighHolds') %] |
933 |
<input type="hidden" name="from" value="circ" /> |
| 567 |
<div id="set_high_holds_overrride" class="checkout-setting"> |
934 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 568 |
[% IF NEEDSCONFIRMATION %] |
935 |
<input type="hidden" name="suspend" value="0" /> |
| 569 |
[% IF override_high_holds %] |
936 |
<input type="submit" value="Resume all suspended holds" /> |
| 570 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/> |
937 |
</form> |
| 571 |
[% ELSE %] |
938 |
</fieldset> |
| 572 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/> |
939 |
[% END # IF SuspendHoldsIntranet %] |
| 573 |
[% END %] |
940 |
|
| 574 |
[% ELSE %] |
941 |
[% ELSE %] |
| 575 |
[% IF override_high_holds %] |
942 |
<p>Patron has nothing on hold.</p> |
| 576 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" /> |
943 |
[% END # /#IF holds_count %] |
| 577 |
[% ELSE %] |
944 |
</div> [% # /#reserves %] |
| 578 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" /> |
945 |
|
|
|
946 |
[% # ARTICLE REQUESTS %] |
| 947 |
[% IF Koha.Preference('ArticleRequests') %] |
| 948 |
[% INCLUDE 'patron-article-requests.inc' %] |
| 949 |
[% END %] |
| 950 |
|
| 951 |
[% ELSIF borrowernumber %] |
| 952 |
<div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div> |
| 953 |
[% END %] |
| 954 |
</div> [% # /#patronlists %] |
| 955 |
</div> [% # /.yui-g %] |
| 956 |
[% END # /IF patron %] |
| 957 |
|
| 958 |
[% IF Koha.Preference('CircSidebar') %] |
| 959 |
[% UNLESS ( borrowers ) %] |
| 960 |
[% IF not( borrowernumber and patron ) %] |
| 961 |
<div class="yui-b noprint"> |
| 962 |
[% INCLUDE 'circ-nav.inc' %] |
| 963 |
</div> |
| 964 |
[% END %] |
| 579 |
[% END %] |
965 |
[% END %] |
| 580 |
[% END %] |
966 |
[% END %] |
| 581 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
967 |
</div> [% # /#yui-main %] |
| 582 |
</div> |
968 |
</div> [% # /.bd %] |
| 583 |
[% END %] |
969 |
[% UNLESS ( borrowers ) %] |
| 584 |
[% END %] |
970 |
[% IF borrowernumber and patron %] |
| 585 |
|
971 |
<div class="yui-b"> |
| 586 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
972 |
[% INCLUDE 'circ-menu.inc' %] |
| 587 |
<div id="onsite_checkout-select" class="checkout-setting"> |
|
|
| 588 |
[% IF noissues %] |
| 589 |
<div class="onsite-checkout-only"> |
| 590 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> |
| 591 |
<input type="text" name="duedatespec" id="duedatespec" /> |
| 592 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 593 |
</div> |
973 |
</div> |
| 594 |
[% ELSE %] |
|
|
| 595 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label> |
| 596 |
[% END %] |
974 |
[% END %] |
| 597 |
</div> |
|
|
| 598 |
[% END %] |
| 599 |
|
| 600 |
</div> <!-- /.checkout-settings --> |
| 601 |
|
| 602 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 603 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 604 |
<input type="hidden" name="print" value="maybe" /> |
| 605 |
<input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" /> |
| 606 |
[% IF ( CHARGES ) %] |
| 607 |
<input type="hidden" name="charges" value="yes" /> |
| 608 |
[% END %] |
| 609 |
</fieldset> |
| 610 |
[% IF ( issue ) %] |
| 611 |
<div class="lastchecked"> |
| 612 |
<p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates %]</p> |
| 613 |
</div> |
| 614 |
[% END %] |
| 615 |
</form></div> |
| 616 |
|
| 617 |
[% END %]<!-- /unless noissues --> |
| 618 |
|
| 619 |
[% IF ( noissues ) %] |
| 620 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 621 |
<div class="yui-u"> |
| 622 |
[% ELSE %] |
| 623 |
<div> |
| 624 |
[% END %] |
| 625 |
[% ELSE %] |
| 626 |
<div class="yui-u"> |
| 627 |
[% END %] |
| 628 |
|
| 629 |
[% IF ( noissues ) %] |
| 630 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 631 |
<div id="circmessages" class="circmessage attention"> |
| 632 |
[% ELSE %] |
| 633 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 634 |
<div id="circmessages" class="circmessage warning"> |
| 635 |
[% END %] |
975 |
[% END %] |
| 636 |
<h3> |
|
|
| 637 |
Cannot check out! |
| 638 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 639 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 640 |
[% END %] |
| 641 |
</h3> |
| 642 |
[% ELSE %] |
| 643 |
<div id="circmessages" class="circmessage attention"> |
| 644 |
<h3>Attention:</h3> |
| 645 |
[% END %] |
| 646 |
|
| 647 |
<ul> |
| 648 |
|
| 649 |
[% IF ( has_modifications ) %] |
| 650 |
<li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications. |
| 651 |
[% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %] |
| 652 |
<a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a> |
| 653 |
[% END %] |
| 654 |
</li> |
| 655 |
[% END %] |
| 656 |
|
| 657 |
[% IF ( warndeparture ) %] |
| 658 |
<li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon. |
| 659 |
Patron's card expires on [% expiry | $KohaDates %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit Details</a> |
| 660 |
|
| 661 |
</li> |
| 662 |
[% END %] |
| 663 |
|
| 664 |
[% IF ( returnbeforeexpiry ) %] |
| 665 |
<li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the |
| 666 |
expiry date is before the date due, the date due will be set to the expiry date |
| 667 |
</li> |
| 668 |
[% END %] |
| 669 |
|
| 670 |
[% IF ( expired ) %] |
| 671 |
<li><span class="circ-hlt">Expiration:</span> Patron's card has expired. |
| 672 |
[% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit Details</a> |
| 673 |
|
| 674 |
</li> |
| 675 |
[% END %] |
| 676 |
|
| 677 |
[% IF ( gna ) %] |
| 678 |
<li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li> |
| 679 |
[% END %] |
| 680 |
|
| 681 |
[% IF ( lost ) %] |
| 682 |
<li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li> |
| 683 |
[% END %] |
| 684 |
|
| 685 |
[% IF ( userdebarred ) %] |
| 686 |
<li class="blocker"> |
| 687 |
<span class="circ-hlt"> Restricted:</span> Patron's account is restricted |
| 688 |
|
| 689 |
[% IF ( userdebarreddate ) %] |
| 690 |
until [% userdebarreddate | $KohaDates %] |
| 691 |
[% END %] |
| 692 |
|
| 693 |
[% IF ( debarredcomment ) %] |
| 694 |
with the explanation: <br/><i> |
| 695 |
[% IF debarredcomment.search('OVERDUES_PROCESS') %] |
| 696 |
Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] |
| 697 |
[% ELSE %] |
| 698 |
[% debarredcomment | $raw | html_line_break %] |
| 699 |
[% END %] |
| 700 |
</i> |
| 701 |
[% END %] |
| 702 |
<br/> |
| 703 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 704 |
[% IF (noissues && patron && CAN_user_circulate_force_checkout) %] |
| 705 |
<span class="override_debarment"> |
| 706 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | html %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
| 707 |
</span> |
| 708 |
[% END %] |
| 709 |
</li> |
| 710 |
[% END %] |
| 711 |
|
| 712 |
[% IF ( odues ) %]<li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li> |
| 713 |
[% END %] |
| 714 |
|
| 715 |
[% IF ( charges ) %] |
| 716 |
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %] |
| 717 |
[% END %] |
| 718 |
|
| 719 |
[% IF ( charges_guarantees ) %] |
| 720 |
<li> |
| 721 |
<span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price | html %]. |
| 722 |
[% IF noissues %] |
| 723 |
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> |
| 724 |
[% END %] |
| 725 |
</li> |
| 726 |
[% END %] |
| 727 |
|
| 728 |
|
| 729 |
[% IF ( credits ) %] |
| 730 |
<li> |
| 731 |
<span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price | html %][% END %] |
| 732 |
</li> |
| 733 |
[% END %] |
| 734 |
|
| 735 |
</ul> |
| 736 |
</div> |
976 |
</div> |
| 737 |
|
977 |
|
| 738 |
[% IF WaitingHolds.count %] |
978 |
<!-- Modal --> |
| 739 |
<div id="holdswaiting" class="circmessage"> |
979 |
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true"> |
| 740 |
<h4>Holds waiting:</h4> |
980 |
<div class="modal-dialog"> |
| 741 |
[% FOREACH w IN WaitingHolds %] |
981 |
<div class="modal-content"> |
| 742 |
<ul> |
982 |
<div class="modal-header"> |
| 743 |
<li> |
983 |
<h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3> |
| 744 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | html %]">[% w.biblio.title | html %]</a> |
984 |
</div> |
| 745 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
985 |
<div class="modal-body"> |
| 746 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
986 |
<p>You have already submitted a barcode, please wait for the checkout to process...</p> |
| 747 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
987 |
</div> |
| 748 |
Hold placed on [% w.reservedate | $KohaDates %]. |
|
|
| 749 |
|
| 750 |
<br/> |
| 751 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %] |
| 752 |
[% SET expires_on = w.expirationdate %] |
| 753 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
| 754 |
</strong> |
| 755 |
</li> |
| 756 |
</ul> |
| 757 |
[% END %] |
| 758 |
</div> |
988 |
</div> |
| 759 |
[% END %] |
989 |
</div> |
| 760 |
|
|
|
| 761 |
[% IF ( notes ) %] |
| 762 |
<div id="circnotes" class="circmessage"> |
| 763 |
<h4>Notes:</h4> |
| 764 |
<p><span class="circ-hlt">[% notesmsg | html %]</span></p> |
| 765 |
</div> |
| 766 |
|
| 767 |
|
| 768 |
<!-- /If notes -->[% END %] |
| 769 |
|
| 770 |
<div id="messages" class="circmessage"> |
| 771 |
<h4>Messages:</h4> |
| 772 |
<ul> |
| 773 |
[% FOREACH message IN messages %] |
| 774 |
<li> |
| 775 |
[% IF(message.message_type == "L") %] |
| 776 |
<span class="circ-hlt"> |
| 777 |
[% ELSE %] |
| 778 |
<span> |
| 779 |
[% END %] |
| 780 |
[% message.message_date | $KohaDates %] |
| 781 |
[% Branches.GetName( message.branchcode ) | html %] |
| 782 |
[% IF message.manager_id %] |
| 783 |
( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id | html %]">[% message.get_column('manager_firstname') | html %] [% message.get_column('manager_surname') | html %]</a> ) |
| 784 |
[% END %] |
| 785 |
<i>"[% message.message | html %]"</i> |
| 786 |
</span> |
| 787 |
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] |
| 788 |
<a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a> |
| 789 |
[% END %] |
| 790 |
</li> |
| 791 |
[% END %] |
| 792 |
</ul> |
| 793 |
<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> |
| 794 |
</div> |
| 795 |
|
| 796 |
</div> |
| 797 |
</div> |
| 798 |
|
| 799 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
| 800 |
|
| 801 |
<ul> |
| 802 |
<li> |
| 803 |
[% IF ( issuecount ) %] |
| 804 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
| 805 |
[% ELSE %] |
| 806 |
<a href="#checkouts">0 Checkouts</a> |
| 807 |
[% END %] |
| 808 |
</li> |
| 809 |
|
| 810 |
[% IF relatives_issues_count %] |
| 811 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
| 812 |
[% END %] |
| 813 |
|
| 814 |
<li> |
| 815 |
[% IF ( holds_count ) %] |
| 816 |
<a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> |
| 817 |
[% ELSE %] |
| 818 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
| 819 |
[% END %] |
| 820 |
</li> |
| 821 |
|
| 822 |
[% IF Koha.Preference('ArticleRequests') %] |
| 823 |
<li> |
| 824 |
<a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a> |
| 825 |
</li> |
| 826 |
[% END %] |
| 827 |
|
| 828 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> |
| 829 |
|
| 830 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
| 831 |
[% SET enrollable = patron.get_enrollable_clubs(0,1) %] |
| 832 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 833 |
<li> |
| 834 |
<a id="clubs-tab-link" href="#clubs-tab"> |
| 835 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
| 836 |
</a> |
| 837 |
</li> |
| 838 |
[% END %] |
| 839 |
|
| 840 |
</ul> |
| 841 |
|
| 842 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
| 843 |
|
| 844 |
[% INCLUDE "checkouts-table.inc" %] |
| 845 |
|
| 846 |
[% IF ( relatives_issues_count ) %] |
| 847 |
<div id="relatives-issues"> |
| 848 |
<table id="relatives-issues-table"> |
| 849 |
<thead> |
| 850 |
<tr> |
| 851 |
<th scope="col">Due date (unformatted, hidden)</th> |
| 852 |
<th scope="col">Due date</th> |
| 853 |
<th scope="col">Title</th> |
| 854 |
<th scope="col">Item type</th> |
| 855 |
<th scope="col">Collection code</th> |
| 856 |
<th scope="col">Location</th> |
| 857 |
<th scope="col">Checked out on</th> |
| 858 |
<th scope="col">Checked out from</th> |
| 859 |
<th scope="col">Call no</th> |
| 860 |
<th scope="col">Charge</th> |
| 861 |
<th scope="col">Fine</th> |
| 862 |
<th scope="col">Price</th> |
| 863 |
<th scope="col">Patron</th> |
| 864 |
</tr> |
| 865 |
</thead> |
| 866 |
</table> |
| 867 |
</div> |
| 868 |
[% END %] |
| 869 |
|
| 870 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 871 |
<div id="clubs-tab"> |
| 872 |
Loading... |
| 873 |
</div> |
| 874 |
[% END %] |
| 875 |
|
| 876 |
[% INCLUDE borrower_debarments.inc %] |
| 877 |
|
| 878 |
<div id="reserves"> |
| 879 |
[% IF ( holds_count ) %] |
| 880 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
| 881 |
<input type="hidden" name="from" value="circ" /> |
| 882 |
<table id="holds-table" style="width: 100% !Important;"> |
| 883 |
<thead> |
| 884 |
<tr> |
| 885 |
<th>Hold date</th> |
| 886 |
<th>Title</th> |
| 887 |
<th>Call number</th> |
| 888 |
<th>Barcode</th> |
| 889 |
<th>Pickup at</th> |
| 890 |
<th>Expiration</th> |
| 891 |
<th>Priority</th> |
| 892 |
<th>Cancel?</th> |
| 893 |
<th>Suspend?</th> |
| 894 |
</tr> |
| 895 |
</thead> |
| 896 |
</table> |
| 897 |
|
| 898 |
<fieldset class="action"> |
| 899 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
| 900 |
</fieldset> |
| 901 |
</form> |
| 902 |
|
| 903 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
| 904 |
<fieldset class="action"> |
| 905 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 906 |
<input type="hidden" name="from" value="circ" /> |
| 907 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 908 |
<input type="submit" value="Suspend all holds" /> |
| 909 |
|
| 910 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
| 911 |
<label for="suspend_until">until</label> |
| 912 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/> |
| 913 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
| 914 |
[% END %] |
| 915 |
</form> |
| 916 |
</fieldset> |
| 917 |
|
| 918 |
<fieldset class="action"> |
| 919 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 920 |
<input type="hidden" name="from" value="circ" /> |
| 921 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 922 |
<input type="hidden" name="suspend" value="0" /> |
| 923 |
<input type="submit" value="Resume all suspended holds" /> |
| 924 |
</form> |
| 925 |
</fieldset> |
| 926 |
[% END # IF SuspendHoldsIntranet %] |
| 927 |
|
| 928 |
[% ELSE %] |
| 929 |
<p>Patron has nothing on hold.</p> |
| 930 |
[% END %] |
| 931 |
</div> <!-- reservesloop --> |
| 932 |
|
| 933 |
[% IF Koha.Preference('ArticleRequests') %] |
| 934 |
[% INCLUDE 'patron-article-requests.inc' %] |
| 935 |
[% END %] |
| 936 |
|
| 937 |
[% ELSIF borrowernumber %] |
| 938 |
<div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div> |
| 939 |
[% END %] |
| 940 |
</div></div> |
| 941 |
[% END %] |
| 942 |
[% IF Koha.Preference('CircSidebar') %] |
| 943 |
[% UNLESS ( borrowers ) %] |
| 944 |
[% IF not( borrowernumber and patron ) %] |
| 945 |
<div class="yui-b noprint"> |
| 946 |
[% INCLUDE 'circ-nav.inc' %] |
| 947 |
</div> |
| 948 |
[% END %] |
| 949 |
[% END %] |
| 950 |
[% END %] |
| 951 |
</div> |
| 952 |
</div> |
| 953 |
[% UNLESS ( borrowers ) %] |
| 954 |
[% IF borrowernumber and patron %] |
| 955 |
<div class="yui-b"> |
| 956 |
[% INCLUDE 'circ-menu.inc' %] |
| 957 |
</div> |
990 |
</div> |
| 958 |
[% END %] |
|
|
| 959 |
[% END %] |
| 960 |
</div> |
| 961 |
<!-- Modal --> |
| 962 |
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true"> |
| 963 |
<div class="modal-dialog"> |
| 964 |
<div class="modal-content"> |
| 965 |
<div class="modal-header"> |
| 966 |
<h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3> |
| 967 |
</div> |
| 968 |
|
| 969 |
<div class="modal-body"> |
| 970 |
<p>You have already submitted a barcode, please wait for the checkout to process...</p> |
| 971 |
</div> |
| 972 |
</div> |
| 973 |
</div> |
| 974 |
</div> |
| 975 |
|
991 |
|
| 976 |
[% MACRO jsinclude BLOCK %] |
992 |
[% MACRO jsinclude BLOCK %] |
| 977 |
[% INCLUDE 'strings.inc' %] |
993 |
[% INCLUDE 'strings.inc' %] |
|
Lines 985-991
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 985 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
1001 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
| 986 |
[% Asset.js("js/checkouts.js") | $raw %] |
1002 |
[% Asset.js("js/checkouts.js") | $raw %] |
| 987 |
[% Asset.js("js/holds.js") | $raw %] |
1003 |
[% Asset.js("js/holds.js") | $raw %] |
| 988 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
1004 |
[% Asset.js("js/circ-patron-search-results.js" ) | $raw %] |
| 989 |
<script type="text/javascript"> |
1005 |
<script type="text/javascript"> |
| 990 |
/* Set some variable needed in circulation.js */ |
1006 |
/* Set some variable needed in circulation.js */ |
| 991 |
var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning."); |
1007 |
var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning."); |
|
Lines 1005-1011
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 1005 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
1021 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
| 1006 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
1022 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
| 1007 |
|
1023 |
|
| 1008 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %] |
1024 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ).raw %] |
| 1009 |
|
1025 |
|
| 1010 |
[% IF borrowernumber and patron %] |
1026 |
[% IF borrowernumber and patron %] |
| 1011 |
if($.cookie("holdfor") != [% patron.borrowernumber | html %]){ |
1027 |
if($.cookie("holdfor") != [% patron.borrowernumber | html %]){ |
|
Lines 1015-1021
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 1015 |
$.removeCookie("holdfor", { path: '/' }); |
1031 |
$.removeCookie("holdfor", { path: '/' }); |
| 1016 |
[% END %] |
1032 |
[% END %] |
| 1017 |
|
1033 |
|
| 1018 |
[% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
1034 |
[% UNLESS ( patron.borrowernumber ) %] |
|
|
1035 |
[% UNLESS ( borrowers ) %] |
| 1036 |
window.onload=function(){ $('#findborrower').focus(); }; |
| 1037 |
[% END %] |
| 1038 |
[% END %] |
| 1019 |
|
1039 |
|
| 1020 |
// On-site checkout |
1040 |
// On-site checkout |
| 1021 |
function toggle_onsite_checkout(){ |
1041 |
function toggle_onsite_checkout(){ |
| 1022 |
- |
|
|