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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-54 / +53 lines)
Lines 583-643 $(document).ready(function () { Link Here
583
            <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
583
            <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
584
        [% END %]
584
        [% END %]
585
        [% FOREACH errmsgloo IN errmsgloop %]
585
        [% FOREACH errmsgloo IN errmsgloop %]
586
                    [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
586
            [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
587
                        <p class="problem">
587
                <p class="problem">
588
                            Not for loan status updated.
588
                    Not for loan status updated.
589
                            <br />Old value:
589
                    <br />Old value:
590
                            [% IF errmsgloo.NotForLoanStatusUpdated.from %]
590
                    [% IF errmsgloo.NotForLoanStatusUpdated.from %]
591
                                [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
591
                        [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
592
                            [% ELSE %]
592
                    [% ELSE %]
593
                                Available for loan.
593
                        Available for loan.
594
                            [% END %]
595
                            <br />New value:
596
                            [% IF errmsgloo.NotForLoanStatusUpdated.to %]
597
                                [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
598
                            [% ELSE %]
599
                                Available for loan.
600
                            [% END %]
601
                        </p>
602
                    [% END %]
603
                    [% IF ( errmsgloo.badbarcode ) %]
604
                        <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
605
                    [% END %]
606
                    [% IF ( errmsgloo.ispermanent ) %]
607
                        <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
608
                    [% END %]
609
                    [% IF ( errmsgloo.notissued ) %]
610
                        <p class="problem">Not checked out.</p>
611
                    [% END %]
612
                    [% IF ( errmsgloo.localuse) %]
613
                        <p class="problem">Local use recorded</p>
614
                    [% END %]
615
                    [% IF ( errmsgloo.waslost ) %]
616
                        <p class="problem">Item was lost, now found.</p>
617
                        [% IF ( LostItemFeeRefunded ) %]
618
                            <p class="problem">A refund has been applied to the borrowing patron's account.</p>
619
                        [% ELSE %]
620
                            <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
621
                        [% END %]
622
                    [% END %]
623
                    [% IF ( errmsgloo.withdrawn ) %]
624
                        [% IF BlockReturnOfWithdrawnItems %]
625
                           <h5>Cannot check in</h5>
626
                           <p><strong>NOT CHECKED IN</strong></p>
627
                           <p class="problem">Item is withdrawn.</p>
628
                        [% ELSE %]
629
                           <p class="problem">Item is withdrawn.</p>
630
                        [% END %]
631
                    [% END %]
632
                    [% IF ( errmsgloo.debarred ) %]
633
                        <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
634
                    [% END %]
635
                    [% IF ( errmsgloo.prevdebarred ) %]
636
                        <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
637
                    [% END %]
594
                    [% END %]
638
                    [% IF ( errmsgloo.foreverdebarred ) %]
595
                    <br />New value:
639
                        <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
596
                    [% IF errmsgloo.NotForLoanStatusUpdated.to %]
597
                        [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
598
                    [% ELSE %]
599
                        Available for loan.
640
                    [% END %]
600
                    [% END %]
601
                </p>
602
            [% END %]
603
            [% IF ( errmsgloo.badbarcode ) %]
604
                <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
605
            [% END %]
606
            [% IF ( errmsgloo.ispermanent ) %]
607
                <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
608
            [% END %]
609
            [% IF ( errmsgloo.notissued ) %]
610
                <p class="problem">Not checked out.</p>
611
            [% END %]
612
            [% IF ( errmsgloo.localuse) %]
613
                <p class="problem">Local use recorded</p>
614
            [% END %]
615
            [% IF ( errmsgloo.waslost ) %]
616
                <p class="problem">Item was lost, now found.</p>
617
                [% IF ( LostItemFeeRefunded ) %]
618
                    <p class="problem">A refund has been applied to the borrowing patron's account.</p>
619
                [% ELSE %]
620
                    <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
621
                [% END %]
622
            [% END %]
623
            [% IF ( errmsgloo.withdrawn ) %]
624
                [% IF BlockReturnOfWithdrawnItems %]
625
                   <h5>Cannot check in</h5>
626
                   <p><strong>NOT CHECKED IN</strong></p>
627
                   <p class="problem">Item is withdrawn.</p>
628
                [% ELSE %]
629
                   <p class="problem">Item is withdrawn.</p>
630
                [% END %]
631
            [% END %]
632
            [% IF ( errmsgloo.debarred ) %]
633
                <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
634
            [% END %]
635
            [% IF ( errmsgloo.prevdebarred ) %]
636
                <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
637
            [% END %]
638
            [% IF ( errmsgloo.foreverdebarred ) %]
639
                <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
640
            [% END %]
641
        [% END %]
641
        [% END %]
642
    </div>
642
    </div>
643
[% END %]
643
[% END %]
644
- 

Return to bug 18219