Lines 56-190
Link Here
|
56 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
56 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
57 |
[% END %] |
57 |
[% END %] |
58 |
|
58 |
|
59 |
[% IF hold_auto_filled %] |
59 |
[% BLOCK all_checkin_messages %] |
|
|
60 |
[% IF hold_auto_filled %] |
61 |
<div class="dialog alert hold-auto-filled"> |
62 |
[% IF ( reservenotes ) %] |
63 |
<h4>Notes: [% reservenotes | html %]</h4> |
64 |
[% END %] |
65 |
<h3>Hold filled for:</h3> |
66 |
<ul> |
67 |
<li> |
68 |
[% INCLUDE 'patron-title.inc' patron=patron %] |
69 |
<span class="patron-category"> - [% patron.category.description | html %]</span> |
70 |
</li> |
60 |
|
71 |
|
61 |
<div id="holds-auto-fill" class="modal audio-alert-action" tabindex="-1" role="dialog" aria-labelledby="HoldsAutoFillLabel"> |
72 |
[% INCLUDE display_holdpatron_address %] |
62 |
<div class="modal-dialog" role="document"> |
73 |
|
63 |
<div class="modal-content"> |
74 |
[% IF ( patron.phone ) %] |
64 |
<div class="modal-header"> |
75 |
<li>[% patron.phone | html %]</li> |
65 |
<h3 class="modal-title" id="HoldsAutoFillLabel"> |
76 |
[% END %] |
66 |
Hold found: |
|
|
67 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a> |
68 |
<div class="hold-found-barcode"> |
69 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a> |
70 |
</div> |
71 |
</h3> |
72 |
</div> |
73 |
<div class="modal-body"> |
74 |
[% IF ( reservenotes ) %] |
75 |
<h4>Notes: [% reservenotes | html %]</h4> |
76 |
[% END %] |
77 |
|
77 |
|
78 |
<h4>Hold for: </h4> |
78 |
[% IF ( patron.email ) %] |
79 |
<ul> |
79 |
<li> |
80 |
<li> |
80 |
[% IF ( transfertodo ) %] |
81 |
[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %] |
81 |
[% patron.email | html %] |
82 |
<span class="patron-category"> - [% patron.category.description | html %]</span> |
82 |
[% ELSE %] |
83 |
</li> |
83 |
<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a> |
84 |
[% INCLUDE display_holdpatron_address %] |
|
|
85 |
[% IF ( patron.phone ) %] |
86 |
<li>[% patron.phone | html %]</li> |
87 |
[% END %] |
84 |
[% END %] |
88 |
[% IF ( patron.email ) %] |
85 |
</li> |
89 |
<li> |
86 |
[% END %] |
90 |
[% IF ( diffbranch ) %] |
87 |
|
91 |
[% patron.email | html %] |
88 |
[% UNLESS ( transfertodo) %] |
92 |
[% ELSE %] |
89 |
[% INCLUDE display_bormessagepref %] |
93 |
<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a> |
90 |
[% END %] |
94 |
[% END %] |
91 |
|
95 |
</li> |
92 |
[% IF ( patron.debarred ) %] |
|
|
93 |
<li class="error">Patron is RESTRICTED</li> |
94 |
[% END %] |
95 |
|
96 |
[% IF ( patron.gonenoaddress ) %] |
97 |
<li class="error">Patron's address is in doubt</li> |
98 |
[% END %] |
99 |
</ul> |
100 |
|
101 |
[% IF ( transfertodo ) %] |
102 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
103 |
[% ELSE %] |
104 |
<h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
105 |
[% END %] |
106 |
|
107 |
<a href="#" class="btn btn-default print print-slip"> |
108 |
<i class="fa fa-print"></i> Print |
109 |
</a> |
110 |
</div> <!-- /.hold-auto-filled --> |
111 |
[% END # /IF hold_auto_filled %] |
112 |
|
113 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
114 |
<div class="dialog alert"> |
115 |
<strong>Error:</strong> |
116 |
This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect. |
117 |
</div> |
118 |
[% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %] |
119 |
<div class="dialog alert"> |
120 |
<strong>Error:</strong> |
121 |
The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation. |
122 |
</div> |
123 |
[% END %] |
124 |
|
125 |
[% IF additional_materials %] |
126 |
<div class="dialog message" id="materials"> |
127 |
Note about the accompanying materials: <br /> |
128 |
[% additional_materials | html %] |
129 |
</div> |
130 |
[% END %] |
131 |
|
132 |
[% IF ( collectionItemNeedsTransferred ) %] |
133 |
<div id="rotating-collection" class="dialog message"> |
134 |
<h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3> |
135 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
136 |
<p>This item is part of a rotating collection.</p> |
137 |
<p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% collectionBranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p> |
138 |
</div> |
139 |
[% END %] |
140 |
|
141 |
<!-- Patron has added an issue note --> |
142 |
[% IF ( issue.note) %] |
143 |
<div class="dialog message"> |
144 |
<h1>Patron note</h1> |
145 |
<p>[% issue.notedate | $KohaDates %]</p> |
146 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p> |
147 |
<p>[% issue.note | html %]</p> |
148 |
</div> |
149 |
[% END %] |
150 |
|
151 |
<!-- Patron has fines --> |
152 |
[% IF ( fines ) %] |
153 |
<div class="dialog alert"> |
154 |
<h3>Patron has outstanding fines of [% fines | html %].</h3> |
155 |
<p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p> |
156 |
</div> |
157 |
[% END %] |
158 |
|
159 |
<!-- Patron has waiting holds --> |
160 |
[% IF ( waiting_holds ) %] |
161 |
<div id="awaiting-pickup" class="dialog message"> |
162 |
<h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3> |
163 |
<p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p> |
164 |
</div> |
165 |
[% END %] |
166 |
|
167 |
<!-- Patron is restricted and checkin was backdated --> |
168 |
[% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %] |
169 |
<div id="restricted_backdated" class="dialog message"> |
170 |
<h3> |
171 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]"> |
172 |
[% patron.firstname | html %] [% patron.surname | html %] |
173 |
</a> |
174 |
is restricted. Please verify this patron should still be restricted. |
175 |
</h3> |
176 |
</div> |
177 |
[% END %] |
178 |
|
179 |
|
180 |
[% IF ( errmsgloop ) %] |
181 |
<div class="dialog alert audio-alert-warning"> |
182 |
<h3>Check in message</h3> |
183 |
[% IF itembiblionumber %] |
184 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
185 |
[% END %] |
186 |
[% FOREACH errmsgloo IN errmsgloop %] |
187 |
[% IF ( errmsgloo.NotForLoanStatusUpdated ) %] |
188 |
<p class="problem"> |
189 |
Not for loan status updated. |
190 |
<br />Old value: |
191 |
[% IF errmsgloo.NotForLoanStatusUpdated.from %] |
192 |
[% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %]. |
193 |
[% ELSE %] |
194 |
Available for loan. |
96 |
[% END %] |
195 |
[% END %] |
97 |
[% UNLESS ( diffbranch) %] |
196 |
<br />New value: |
98 |
[% INCLUDE display_bormessagepref %] |
197 |
[% IF errmsgloo.NotForLoanStatusUpdated.to %] |
|
|
198 |
[% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %]. |
199 |
[% ELSE %] |
200 |
Available for loan. |
99 |
[% END %] |
201 |
[% END %] |
100 |
[% IF ( patron.debarred ) %] |
202 |
</p> |
101 |
<li class="error">Patron is RESTRICTED</li> |
203 |
[% END %] |
|
|
204 |
[% IF ( errmsgloo.ItemLocationUpdated ) %] |
205 |
<p class="problem"> |
206 |
Item shelving location updated. |
207 |
<br />Old value: |
208 |
[% IF errmsgloo.ItemLocationUpdated.from %] |
209 |
[% IF errmsgloo.ItemLocationUpdated.from == '' %] |
210 |
empty |
211 |
[% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %] |
212 |
[% errmsgloo.ItemLocationUpdated.from | html %] (No description available) |
213 |
[% ELSE %] |
214 |
[% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %] |
215 |
[% END %] |
216 |
[% ELSE %] |
217 |
"Blank" |
102 |
[% END %] |
218 |
[% END %] |
103 |
[% IF ( patron.gonenoaddress ) %] |
219 |
<br />New value: |
104 |
<li class="error">Patron's address is in doubt</li> |
220 |
[% IF errmsgloo.ItemLocationUpdated.to %] |
|
|
221 |
[% IF errmsgloo.ItemLocationUpdated.to == '' %] |
222 |
empty |
223 |
[% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %] |
224 |
[% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value) |
225 |
[% ELSE %] |
226 |
[% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %] |
227 |
[% END %] |
228 |
[% ELSE %] |
229 |
"Blank" |
105 |
[% END %] |
230 |
[% END %] |
106 |
</ul> |
231 |
</p> |
107 |
[% IF ( diffbranch ) %] |
232 |
[% END %] |
108 |
<h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
233 |
[% IF ( errmsgloo.badbarcode ) %] |
|
|
234 |
<p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p> |
235 |
[% END %] |
236 |
[% IF ( errmsgloo.ispermanent ) %] |
237 |
<p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p> |
238 |
[% END %] |
239 |
[% IF ( errmsgloo.notissued ) %] |
240 |
<p class="problem">Not checked out.</p> |
241 |
[% END %] |
242 |
[% IF ( errmsgloo.localuse) %] |
243 |
<p class="problem">Local use recorded</p> |
244 |
[% END %] |
245 |
[% IF ( errmsgloo.waslost ) %] |
246 |
[% IF Koha.Preference('BlockReturnOfLostItems') %] |
247 |
<p class="problem">Item is lost, cannot be checked in.</p> |
109 |
[% ELSE %] |
248 |
[% ELSE %] |
110 |
<h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4> |
249 |
<p class="problem">Item was lost, now found.</p> |
111 |
[% END %] |
250 |
[% END %] |
112 |
</div> |
251 |
[% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %] |
113 |
<div class="modal-footer"> |
252 |
<p class="problem">A refund has been applied to the borrowing patron's account.</p> |
114 |
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button> |
253 |
[% ELSIF Koha.Preference('BlockReturnOfLostItems') %] |
115 |
<button type="button" data-dismiss="modal" class="btn btn-default print print-slip"><i class="fa fa-print"></i> Print slip and continue</button> |
254 |
<h5>Cannot check in</h5> |
116 |
</div> |
255 |
<p><strong>NOT CHECKED IN</strong></p> |
117 |
</div> <!-- /.modal-content --> |
256 |
[% ELSE %] |
118 |
</div> <!-- /.modal-dialog --> |
257 |
<p class="problem">Any lost item fees for this item will remain on the patron's account.</p> |
119 |
</div> <!-- /#holds-auto-fill --> |
258 |
[% END %] |
120 |
[% END # /IF hold_auto_filled %] |
259 |
[% END %] |
121 |
|
260 |
[% IF ( errmsgloo.withdrawn ) %] |
122 |
|
261 |
[% IF Koha.Preference('BlockReturnOfWithdrawnItems') %] |
123 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
262 |
<h5>Cannot check in</h5> |
124 |
<div class="dialog alert"> |
263 |
<p><strong>NOT CHECKED IN</strong></p> |
125 |
<strong>Error:</strong> |
264 |
[% END %] |
126 |
This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect. |
265 |
<p class="problem">Item is withdrawn.</p> |
127 |
</div> |
266 |
[% END %] |
128 |
[% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %] |
267 |
[% IF ( errmsgloo.debarred ) %] |
129 |
<div class="dialog alert"> |
268 |
<p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p> |
130 |
<strong>Error:</strong> |
269 |
[% END %] |
131 |
The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation. |
270 |
[% IF ( errmsgloo.prevdebarred ) %] |
132 |
</div> |
271 |
<p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p> |
133 |
[% END %] |
272 |
[% END %] |
134 |
|
273 |
[% IF ( errmsgloo.foreverdebarred ) %] |
135 |
[% IF additional_materials %] |
274 |
<p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p> |
136 |
<div class="dialog message" id="materials"> |
275 |
[% END %] |
137 |
Note about the accompanying materials: <br /> |
|
|
138 |
[% additional_materials | html %] |
139 |
</div> |
140 |
[% END %] |
141 |
|
142 |
[% IF ( collectionItemNeedsTransferred ) %] |
143 |
<div id="rotating-collection" class="dialog message"> |
144 |
<h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3> |
145 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
146 |
<p>This item is part of a rotating collection.</p> |
147 |
<p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% collectionBranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p> |
148 |
</div> |
149 |
[% END %] |
150 |
|
151 |
<!-- Patron has added an issue note --> |
152 |
[% IF ( issue.note) %] |
153 |
<div class="dialog message"> |
154 |
<h1>Patron note</h1> |
155 |
<p>[% issue.notedate | $KohaDates %]</p> |
156 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p> |
157 |
<p>[% issue.note | html %]</p> |
158 |
</div> |
159 |
[% END %] |
160 |
|
161 |
<!-- Patron has fines --> |
162 |
[% IF ( fines ) %] |
163 |
<div class="dialog alert"> |
164 |
<h3>Patron has outstanding fines of [% fines | html %].</h3> |
165 |
<p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p> |
166 |
</div> |
167 |
[% END %] |
168 |
|
169 |
<!-- Patron has waiting holds --> |
170 |
[% IF ( waiting_holds ) %] |
171 |
<div id="awaiting-pickup" class="dialog message"> |
172 |
<h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3> |
173 |
<p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p> |
174 |
</div> |
175 |
[% END %] |
176 |
|
276 |
|
177 |
<!-- Patron is restricted and checkin was backdated --> |
277 |
[% IF errmsgloo.data_corrupted %] |
178 |
[% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %] |
278 |
<p class="problem">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p> |
179 |
<div id="restricted_backdated" class="dialog message"> |
279 |
[% END %] |
180 |
<h3> |
280 |
[% END # /FOREACH errmsgloo %] |
181 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]"> |
281 |
</div> <!-- /.dialog.dialog-alert --> |
182 |
[% patron.firstname | html %] [% patron.surname | html %] |
282 |
[% END #/IF errmsgloop %] |
183 |
</a> |
283 |
|
184 |
is restricted. Please verify this patron should still be restricted. |
284 |
[% IF ( checkinmsg ) %] |
185 |
</h3> |
285 |
[% IF ( checkinmsgtype == 'alert' ) %] |
186 |
</div> |
286 |
<div class="dialog alert"> |
187 |
[% END %] |
287 |
[% ELSE %] |
|
|
288 |
<div class="dialog message"> |
289 |
[% END %] |
290 |
<p class="problem">[% checkinmsg | html_line_break %]</p> |
291 |
</div> |
292 |
[% END # /IF checkinmsg %] |
293 |
[% END # /BLOCK all_checkin_messages %] |
188 |
|
294 |
|
189 |
[% IF wrongbranch %] |
295 |
[% IF wrongbranch %] |
190 |
<div id="wrong-branch-modal" class="modal fade audio-alert-action"> |
296 |
<div id="wrong-branch-modal" class="modal fade audio-alert-action"> |
Lines 213-218
Link Here
|
213 |
[% Branches.GetName( rightbranch ) | html %] |
319 |
[% Branches.GetName( rightbranch ) | html %] |
214 |
</strong> |
320 |
</strong> |
215 |
</p> |
321 |
</p> |
|
|
322 |
[% INCLUDE all_checkin_messages %] |
216 |
</div> <!-- /.modal-body --> |
323 |
</div> <!-- /.modal-body --> |
217 |
<div class="modal-footer"> |
324 |
<div class="modal-footer"> |
218 |
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button> |
325 |
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button> |
Lines 224-270
Link Here
|
224 |
[% END # /IF wrongbranch %] |
331 |
[% END # /IF wrongbranch %] |
225 |
|
332 |
|
226 |
<!-- case of a mistake in transfer loop --> |
333 |
<!-- case of a mistake in transfer loop --> |
227 |
[% UNLESS ( hold_auto_filled && diffbranch ) %] |
334 |
|
228 |
[% IF WrongTransfer && !transfertodo %] |
335 |
[% IF WrongTransfer && !transfertodo %] |
229 |
<div id="wrong-transfer-modal" class="modal fade audio-alert-action"> |
336 |
<div id="wrong-transfer-modal" class="modal fade audio-alert-action"> |
230 |
<div class="modal-dialog"> |
337 |
<div class="modal-dialog"> |
231 |
<div class="modal-content"> |
338 |
<div class="modal-content"> |
232 |
<div class="modal-header"> |
339 |
<div class="modal-header"> |
233 |
<h3> |
340 |
<h3> |
234 |
Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %] |
341 |
Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %] |
235 |
</h3> |
342 |
</h3> |
236 |
</div> |
343 |
</div> |
237 |
<div class="modal-body"> |
344 |
<div class="modal-body"> |
238 |
<p> |
345 |
<p> |
239 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]"> |
346 |
<a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]"> |
240 |
[% itembarcode | html %]: [% title | html %] |
347 |
[% itembarcode | html %]: [% title | html %] |
241 |
</a> |
348 |
</a> |
242 |
</p> |
349 |
</p> |
243 |
</div> |
350 |
[% INCLUDE all_checkin_messages %] |
244 |
<div class="modal-footer"> |
351 |
</div> |
245 |
<!-- CONFIRM --> |
352 |
<div class="modal-footer"> |
246 |
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button> |
353 |
<!-- CONFIRM --> |
247 |
<!-- PRINT SLIP --> |
354 |
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button> |
248 |
<button type="button" data-dismiss="modal" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button> |
355 |
<!-- PRINT SLIP --> |
249 |
<!-- CANCEL TRANSFER --> |
356 |
<button type="button" data-dismiss="modal" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button> |
250 |
<form method="post" action="returns.pl" name="mainform"> |
357 |
<!-- CANCEL TRANSFER --> |
251 |
<button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button> |
358 |
<form method="post" action="returns.pl" name="mainform"> |
252 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
359 |
<button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button> |
253 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
360 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
254 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]" /> |
361 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
255 |
<input type="hidden" name="canceltransfer" value="1" /> |
362 |
<input type="hidden" name="itemnumber" value="[% itemnumber | html %]" /> |
256 |
[% FOREACH inputloo IN inputloop %] |
363 |
<input type="hidden" name="canceltransfer" value="1" /> |
257 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
364 |
[% FOREACH inputloo IN inputloop %] |
258 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
365 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
259 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
366 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
260 |
[% END %] |
367 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
261 |
</form> <!-- /mainform --> |
368 |
[% END %] |
262 |
</div> <!-- /.modal-footer --> |
369 |
</form> <!-- /mainform --> |
263 |
</div> <!-- /.modal-content --> |
370 |
</div> <!-- /.modal-footer --> |
264 |
</div> <!-- /.modal-dialog --> |
371 |
</div> <!-- /.modal-content --> |
265 |
</div> <!-- /#wrong-transfer-modal --> |
372 |
</div> <!-- /.modal-dialog --> |
266 |
[% END # /IF WrongTransfer && !transfertodo %] |
373 |
</div> <!-- /#wrong-transfer-modal --> |
267 |
[% END # /UNLESS hold_auto_filled && diffbranch %] |
374 |
[% END # /IF WrongTransfer && !transfertodo %] |
268 |
|
375 |
|
269 |
[% IF ( found ) %] |
376 |
[% IF ( found ) %] |
270 |
[% IF ( waiting ) %] |
377 |
[% IF ( waiting ) %] |
Lines 335-340
Link Here
|
335 |
|
442 |
|
336 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
443 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
337 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
444 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
|
|
445 |
[% INCLUDE all_checkin_messages %] |
338 |
</div> <!-- /.modal-body --> |
446 |
</div> <!-- /.modal-body --> |
339 |
|
447 |
|
340 |
<div class="modal-footer"> |
448 |
<div class="modal-footer"> |
Lines 383-388
Link Here
|
383 |
<input type="hidden" name="tobranch" value="[% returnbranch | html %]" /> |
491 |
<input type="hidden" name="tobranch" value="[% returnbranch | html %]" /> |
384 |
<input type="hidden" name="transferitem" value="[% itemnumber | html %]" /> |
492 |
<input type="hidden" name="transferitem" value="[% itemnumber | html %]" /> |
385 |
<input type="hidden" name="barcode" value="0" /> |
493 |
<input type="hidden" name="barcode" value="0" /> |
|
|
494 |
[% INCLUDE all_checkin_messages %] |
386 |
</div> |
495 |
</div> |
387 |
<div class="modal-footer"> |
496 |
<div class="modal-footer"> |
388 |
[% IF !transfer %] |
497 |
[% IF !transfer %] |
Lines 494-499
Link Here
|
494 |
<input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" /> |
603 |
<input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" /> |
495 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
604 |
<input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> |
496 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
605 |
<input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> |
|
|
606 |
[% INCLUDE all_checkin_messages %] |
497 |
</div> |
607 |
</div> |
498 |
|
608 |
|
499 |
<div class="modal-footer"> |
609 |
<div class="modal-footer"> |
Lines 524-645
Link Here
|
524 |
[% END #/IF reserved %] |
634 |
[% END #/IF reserved %] |
525 |
[% END # /IF found %] |
635 |
[% END # /IF found %] |
526 |
|
636 |
|
527 |
[% IF ( errmsgloop ) %] |
637 |
<div class="static_checkin_messages" style="display:none"> |
528 |
<div class="dialog alert audio-alert-warning"> |
638 |
[% INCLUDE all_checkin_messages %] |
529 |
<h3>Check in message</h3> |
639 |
</div> |
530 |
[% IF itembiblionumber %] |
|
|
531 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p> |
532 |
[% END %] |
533 |
[% FOREACH errmsgloo IN errmsgloop %] |
534 |
[% IF ( errmsgloo.NotForLoanStatusUpdated ) %] |
535 |
<p class="problem"> |
536 |
Not for loan status updated. |
537 |
<br />Old value: |
538 |
[% IF errmsgloo.NotForLoanStatusUpdated.from %] |
539 |
[% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %]. |
540 |
[% ELSE %] |
541 |
Available for loan. |
542 |
[% END %] |
543 |
<br />New value: |
544 |
[% IF errmsgloo.NotForLoanStatusUpdated.to %] |
545 |
[% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %]. |
546 |
[% ELSE %] |
547 |
Available for loan. |
548 |
[% END %] |
549 |
</p> |
550 |
[% END %] |
551 |
[% IF ( errmsgloo.ItemLocationUpdated ) %] |
552 |
<p class="problem"> |
553 |
Item shelving location updated. |
554 |
<br />Old value: |
555 |
[% IF errmsgloo.ItemLocationUpdated.from %] |
556 |
[% IF errmsgloo.ItemLocationUpdated.from == '' %] |
557 |
empty |
558 |
[% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %] |
559 |
[% errmsgloo.ItemLocationUpdated.from | html %] (No description available) |
560 |
[% ELSE %] |
561 |
[% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %] |
562 |
[% END %] |
563 |
[% ELSE %] |
564 |
"Blank" |
565 |
[% END %] |
566 |
<br />New value: |
567 |
[% IF errmsgloo.ItemLocationUpdated.to %] |
568 |
[% IF errmsgloo.ItemLocationUpdated.to == '' %] |
569 |
empty |
570 |
[% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %] |
571 |
[% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value) |
572 |
[% ELSE %] |
573 |
[% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %] |
574 |
[% END %] |
575 |
[% ELSE %] |
576 |
"Blank" |
577 |
[% END %] |
578 |
</p> |
579 |
[% END %] |
580 |
[% IF ( errmsgloo.badbarcode ) %] |
581 |
<p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p> |
582 |
[% END %] |
583 |
[% IF ( errmsgloo.ispermanent ) %] |
584 |
<p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p> |
585 |
[% END %] |
586 |
[% IF ( errmsgloo.notissued ) %] |
587 |
<p class="problem">Not checked out.</p> |
588 |
[% END %] |
589 |
[% IF ( errmsgloo.localuse) %] |
590 |
<p class="problem">Local use recorded</p> |
591 |
[% END %] |
592 |
[% IF ( errmsgloo.waslost ) %] |
593 |
[% IF Koha.Preference('BlockReturnOfLostItems') %] |
594 |
<p class="problem">Item is lost, cannot be checked in.</p> |
595 |
[% ELSE %] |
596 |
<p class="problem">Item was lost, now found.</p> |
597 |
[% END %] |
598 |
[% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %] |
599 |
<p class="problem">A refund has been applied to the borrowing patron's account.</p> |
600 |
[% ELSIF Koha.Preference('BlockReturnOfLostItems') %] |
601 |
<h5>Cannot check in</h5> |
602 |
<p><strong>NOT CHECKED IN</strong></p> |
603 |
[% ELSE %] |
604 |
<p class="problem">Any lost item fees for this item will remain on the patron's account.</p> |
605 |
[% END %] |
606 |
[% END %] |
607 |
[% IF ( errmsgloo.withdrawn ) %] |
608 |
[% IF Koha.Preference('BlockReturnOfWithdrawnItems') %] |
609 |
<h5>Cannot check in</h5> |
610 |
<p><strong>NOT CHECKED IN</strong></p> |
611 |
[% END %] |
612 |
<p class="problem">Item is withdrawn.</p> |
613 |
[% END %] |
614 |
[% IF ( errmsgloo.debarred ) %] |
615 |
<p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p> |
616 |
[% END %] |
617 |
[% IF ( errmsgloo.prevdebarred ) %] |
618 |
<p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p> |
619 |
[% END %] |
620 |
[% IF ( errmsgloo.foreverdebarred ) %] |
621 |
<p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p> |
622 |
[% END %] |
623 |
|
624 |
[% IF errmsgloo.data_corrupted %] |
625 |
<p class="problem">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p> |
626 |
[% END %] |
627 |
[% END # /FOREACH errmsgloo %] |
628 |
</div> <!-- /.dialog.dialog-alert --> |
629 |
[% END #/IF errmsgloop %] |
630 |
|
631 |
[% IF ( checkinmsg ) %] |
632 |
[% IF ( checkinmsgtype == 'alert' ) %] |
633 |
<div class="dialog alert"> |
634 |
[% ELSE %] |
635 |
<div class="dialog message"> |
636 |
[% END %] |
637 |
<p class="problem">[% checkinmsg | html_line_break %]</p> |
638 |
</div> |
639 |
[% END # /IF checkinmsg %] |
640 |
|
640 |
|
641 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
641 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
642 |
<fieldset id="circ_returns_checkin"> |
642 |
<fieldset id="circ_returns_checkin"> |
|
|
643 |
<div class="show_checkin_dialog" style="float:right;display:none"><button type="button" class="btn btn-default btn-sm" data-toggle="tooltip" title="Show the last checkin message"><i class="fa fa-info"></i></button></div> |
643 |
<h3>Check in</h3> |
644 |
<h3>Check in</h3> |
644 |
<div class="row"> |
645 |
<div class="row"> |
645 |
<div class="col-sm-6"> |
646 |
<div class="col-sm-6"> |
Lines 884-896
Link Here
|
884 |
$("#barcode").focus(); |
885 |
$("#barcode").focus(); |
885 |
} |
886 |
} |
886 |
$(document).ready(function () { |
887 |
$(document).ready(function () { |
|
|
888 |
$(".static_checkin_messages").show(); |
887 |
$(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() { |
889 |
$(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() { |
888 |
$("#barcode").prop("disabled", true); |
890 |
$("#barcode").prop("disabled", true); |
|
|
891 |
$(".static_checkin_messages").hide(); |
892 |
$(".show_checkin_dialog").show(); |
889 |
}).on('hidden.bs.modal', function() { |
893 |
}).on('hidden.bs.modal', function() { |
890 |
$("#barcode").prop("disabled", false).focus(); |
894 |
$("#barcode").prop("disabled", false).focus(); |
891 |
}); |
895 |
}); |
892 |
|
896 |
|
893 |
$(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); }); |
897 |
$("body").on("click", ".show_checkin_dialog button", function(e){ |
|
|
898 |
e.preventDefault(); |
899 |
$(".modal").modal("show"); |
900 |
}); |
894 |
|
901 |
|
895 |
$(".print-slip").on('click', function(e) { |
902 |
$(".print-slip").on('click', function(e) { |
896 |
e.preventDefault(); |
903 |
e.preventDefault(); |
Lines 1033-1038
Link Here
|
1033 |
$("#return_date_remember").hide(); |
1040 |
$("#return_date_remember").hide(); |
1034 |
} |
1041 |
} |
1035 |
}); |
1042 |
}); |
|
|
1043 |
$('[data-toggle="tooltip"]').tooltip(); |
1036 |
}); |
1044 |
}); |
1037 |
</script> |
1045 |
</script> |
1038 |
[% END %] |
1046 |
[% END %] |
1039 |
- |
|
|