View | Details | Raw Unified | Return to bug 21346
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-67 / +107 lines)
Lines 166-209 Link Here
166
    </div>
166
    </div>
167
[% END %]
167
[% END %]
168
168
169
[% IF ( wrongbranch ) %]
169
[% IF wrongbranch %]
170
    <div class="dialog alert"><h3>Cannot check in</h3>
170
    <div id="wrong-branch-modal" class="modal fade audio-alert-action">
171
        <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
171
        <div class="modal-dialog">
172
        </p><strong>NOT CHECKED IN</strong></p>
172
            <div class="modal-content">
173
        <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) | html %]</strong></p>
173
                <form method="post" action="returns.pl" name="mainform" id="mainform">
174
                    <div class="modal-header">
175
                        <h3>
176
                            Cannot check in
177
                        </h3>
178
                    </div>
179
                    <div class="modal-body">
180
                        <p>
181
                        <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber | uri %]">
182
                            [% itembarcode | html %]: [% title | html %]
183
                        </a>
184
                        </p>
185
                        <p>
186
                            <strong>
187
                                NOT CHECKED IN
188
                            </strong>
189
                        </p>
190
                        <p>
191
                            This item must be checked in at following library:
192
                            <strong>
193
                                [% Branches.GetName( rightbranch ) | html %]
194
                            </strong>
195
                        </p>
196
                    </div>
197
                    <div class="modal-footer">
198
                        <button type="submit" class="btn btn-default approve"><i class="fa fa-check"  onclick="$('#barcode').focus(); return false;"></i> OK</button>
199
                    </div>
200
                </form>
201
            </div>
202
        </div>
174
    </div>
203
    </div>
175
[% END %]
204
[% END %]
176
205
177
<!-- case of a mistake in transfer loop -->
206
<!-- case of a mistake in transfer loop -->
178
[% IF ( WrongTransfer && !transfertodo ) %]
207
[% IF WrongTransfer && !transfertodo %]
179
    <div id="return2" class="dialog message">
208
    <div id="wrong-transfer-modal" class="modal fade audio-alert-action">
180
        <!-- WrongTransfer -->
209
        <div class="modal-dialog">
181
        <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]</h3>
210
            <div class="modal-content">
182
            <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
211
                <form method="post" action="returns.pl" name="mainform" id="mainform">
183
        <button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&amp;&amp;branchcode=[% TransferWaitingAt | html %]&amp;op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
212
                    <div class="modal-header">
184
        <button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&amp;canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
213
                        <h3>
185
[% IF ( patron.cardnumber ) %]<h5>Hold for:</h5>
214
                            Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
186
        <ul>
215
                        </h3>
187
            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
216
                    </div>
188
            [% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
217
                    <div class="modal-body">
189
            [% INCLUDE display_holdpatron_address %]
218
                        <p>
190
            [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
219
                            <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber | uri %]">
191
            [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>[% END %]
220
                                [% itembarcode | html %]: [% title | html %]
192
        </ul>
221
                            </a>
193
222
                        </p>
194
    <form method="post" action="returns.pl" class="confirm">
223
                    </div>
195
            <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem | html %]" />
224
                    <div class="modal-footer">
196
            <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt | html %]" />
225
                        <button type="submit" class="btn btn-default approve"><i class="fa fa-check"  onclick="$('#barcode').focus(); return false;"></i> OK</button>
197
            <input type="hidden" name="WT-From" value="[% wtransfertFrom | html %]" />
226
                        <button type="submit" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&amp;&amp;branchcode=[% TransferWaitingAt | html %]&amp;op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
198
            <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
227
                        <button class="btn btn-default deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&amp;canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
199
            <input type="hidden" name="print_slip" value="0" />
228
                    </div>
200
            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
229
                </form>
201
            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
230
            </div>
202
            <button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print slip and confirm</button>
231
        </div>
203
        <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
232
    </div>
204
        <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
205
    </form>
206
    [% END %]</div>
207
[% END %]
233
[% END %]
208
234
209
[% IF ( found ) %]
235
[% IF ( found ) %]
Lines 341-379 Link Here
341
		</div>
367
		</div>
342
    [% END %]
368
    [% END %]
343
369
344
    [% IF ( transfer ) %]
370
    [% IF transfer || needstransfer %]
345
    <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
371
    <div id="item-transfer-modal" class="modal fade audio-alert-action">
346
        <div id="return1" class="dialog message audio-alert-action">
372
        <div class="modal-dialog">
347
            <h3>Please return item to: [% Branches.GetName( returnbranch ) | html %]</h3>
373
            <div class="modal-content">
348
            <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
374
                <form method="post" action="returns.pl" name="mainform" id="mainform">
349
            <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&amp;branchcode=[% returnbranch | html %]&amp;op=slip"><i class="fa fa-print"></i> Print slip</button></p>
375
                    <div class="modal-header">
376
                        <h3>
377
                            Please return this item to [% Branches.GetName( returnbranch ) | html %]
378
                        </h3>
379
                    </div>
380
                    <div class="modal-body">
381
                        <p>
382
                        <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber | uri %]">
383
                            [% itembarcode | html %]: [% title | html %]
384
                        </a>
385
                        </p>
386
                        [% IF !transfer %]
387
                        <p>
388
                        Transfer now?
389
                        </p>
390
                        <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
391
                        <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
392
                        <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
393
                        <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
394
                        <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
395
                        [% FOREACH inputloo IN inputloop %]
396
                        <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
397
                        <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
398
                        <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
399
                        [% END %]
400
                        <input type="hidden" name="barcode" value="0" />
401
                        <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
402
                        <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
403
                        [% END %]
404
                    </div>
405
                    <div class="modal-footer">
406
                        [% IF !transfer %]
407
                        <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
408
                        <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&amp;&amp;branchcode[% returnbranch | html %]&amp;op=slip"><i class="fa fa-print"></i> Yes, print slip</button><button type="submit" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"  onclick="$('#barcode').focus(); return false;"></i> No</button>
409
                        [% ELSE %]
410
                        <button type="submit" class="btn btn-default approve"><i class="fa fa-check" onclick="$('#barcode').focus(); return false;"></i> OK</button>
411
                        <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&amp;&amp;branchcode[% returnbranch | html %]&amp;op=slip"><i class="fa fa-print"></i> Print slip</button>
412
                        [% END %]
413
                    </div>
414
                </form>
415
            </div>
350
        </div>
416
        </div>
351
    [% END %]
417
    </div>
352
353
    [% IF ( needstransfer ) %]
354
	<!-- needstransfer -->
355
    <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) | html %]</h3>
356
    Transfer now?<br />
357
    <form method="post" action="returns.pl" name="mainform" id="mainform">
358
    [% IF itemnumber %]
359
        <button type="submit" name="dotransfer" value="Yes" class="print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&amp;&amp;branchcode=[% returnbranch | html %]&amp;op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
360
    [% END %]
361
    <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
362
    <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
363
    <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
364
	<input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
365
        <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
366
        <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
367
        <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
368
	[% FOREACH inputloo IN inputloop %]
369
	<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
370
	<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
371
	<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
372
	[% END %]
373
	<input type="hidden" name="barcode" value="0" />
374
        <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
375
        <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
376
	</form>   </div>
377
    [% END %]
418
    [% END %]
378
419
379
    [% IF ( diffbranch ) %]
420
    [% IF ( diffbranch ) %]
380
- 

Return to bug 21346