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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-63 / +64 lines)
Lines 792-869 Link Here
792
                                            <th class="anti-the">Title</th>
792
                                            <th class="anti-the">Title</th>
793
                                            <th class="psort title-string">Placed on</th>
793
                                            <th class="psort title-string">Placed on</th>
794
                                            <th class="title-string">Expires on</th>
794
                                            <th class="title-string">Expires on</th>
795
                                            <th>Pick up location</th>
795
                                            <th>Pickup location</th>
796
                                            <th>Status</th>
796
                                            <th>Status</th>
797
                                            <th>Cancel</th>
797
                                            <th>Cancel</th>
798
                                        </tr>
798
                                        </tr>
799
                                    </thead>
799
                                    </thead>
800
                                    <tbody>
800
                                    <tbody>
801
                                        [% FOREACH RECALL IN RECALLS %]
801
                                        [% FOREACH RECALL IN RECALLS %]
802
                                            <td class="title">
802
                                            <tr>
803
                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblionumber %]">
803
                                                <td class="title">
804
                                                    [% RECALL.biblio.title %]
804
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblionumber %]">
805
                                                    [% FOREACH s IN RECALL.biblio.subtitles %]
805
                                                        [% RECALL.biblio.title %]
806
                                                        [% s %]
806
                                                        [% FOREACH s IN RECALL.biblio.subtitles %]
807
                                                    [% END %]
807
                                                            [% s %]
808
                                                    [% RECALL.item.enumchron %]
808
                                                        [% END %]
809
                                                </a>
809
                                                        [% RECALL.item.enumchron %]
810
                                                [% RECALL.biblio.author %]
810
                                                    </a>
811
                                            </td>
811
                                                    [% RECALL.biblio.author %]
812
                                            <td class="recalldate">
812
                                                </td>
813
                                                <span title="[% RECALL.recalldate %]">
813
                                                <td class="recalldate">
814
                                                    <span class="tdlabel">Recall date:</span>
814
                                                    <span title="[% RECALL.recalldate %]">
815
                                                    [% RECALL.recalldate | $KohaDates %]
815
                                                        <span class="tdlabel">Recall date:</span>
816
                                                </span>
816
                                                        [% RECALL.recalldate | $KohaDates %]
817
                                            </td>
817
                                                    </span>
818
                                            <td class="expirationdate">
818
                                                </td>
819
                                                [% IF ( RECALL.is_waiting ) %]
819
                                                <td class="expirationdate">
820
                                                    [% IF ( RECALL.expirationdate ) %]
820
                                                    [% IF ( RECALL.is_waiting ) %]
821
                                                        <span title="[% RECALL.expirationdate %]">
821
                                                        [% IF ( RECALL.expirationdate ) %]
822
                                                            <span title="[% RECALL.expirationdate %]">
823
                                                                <span class="tdlabel">Expiration:</span>
824
                                                                    [% RECALL.expirationdate | $KohaDates %]
825
                                                            </span>
826
                                                        [% ELSE %]
827
                                                            <span title="0000-00-00">
828
                                                                <span class="tdlabel">Expiration:</span>
829
                                                                Never expires
830
                                                            </span>
831
                                                        [% END %]
832
                                                    [% ELSIF ( RECALL.has_expired && RECALL.expirationdate ) %]
833
                                                        <span title="[% RECALL.expirationdate %]" class="overdue">
822
                                                            <span class="tdlabel">Expiration:</span>
834
                                                            <span class="tdlabel">Expiration:</span>
823
                                                                [% RECALL.expirationdate | $KohaDates %]
835
                                                            [% RECALL.expirationdate | $KohaDates %]
824
                                                        </span>
836
                                                        </span>
825
                                                    [% ELSE %]
837
                                                    [% ELSE %]
826
                                                        <span title="0000-00-00">
838
                                                        <span title="0000-00-00">-</span>
827
                                                            <span class="tdlabel">Expiration:</span>
828
                                                            Never expires
829
                                                        </span>
830
                                                    [% END %]
839
                                                    [% END %]
831
                                                [% ELSIF ( RECALL.has_expired && RECALL.expirationdate ) %]
840
                                                </td>
832
                                                    <span title="[% RECALL.expirationdate %]" class="overdue">
841
                                                <td class="branch">
833
                                                        <span class="tdlabel">Expiration:</span>
842
                                                    <span class="tdlabel">Pick up location:</span>
834
                                                        [% RECALL.expirationdate | $KohaDates %]
843
                                                    [% RECALL.branch.branchname %]
835
                                                    </span>
844
                                                </td>
836
                                                [% ELSE %]
845
                                                <td class="status">
837
                                                    <span title="0000-00-00">-</span>
846
                                                    <span class="tdlabel">Status:</span>
838
                                                [% END %]
847
                                                    [% IF ( RECALL.is_requested ) %]
839
                                            </td>
848
                                                        Requested
840
                                            <td class="branch">
849
                                                    [% ELSIF ( RECALL.is_waiting ) %]
841
                                                <span class="tdlabel">Pick up location:</span>
850
                                                        Ready for pickup
842
                                                [% RECALL.branch.branchname %]
851
                                                    [% ELSIF ( RECALL.has_expired ) %]
843
                                            </td>
852
                                                        Expired
844
                                            <td class="status">
853
                                                    [% END %]
845
                                                <span class="tdlabel">Status:</span>
854
                                                </td>
846
                                                [% IF ( RECALL.is_requested ) %]
855
                                                <td class="cancelrecall">
847
                                                    Requested
856
                                                    [% IF ( !RECALL.cancellationdate ) %]
848
                                                [% ELSIF ( RECALL.is_waiting ) %]
857
                                                        <form action="/cgi-bin/koha/opac-recall.pl" method="post">
849
                                                    Ready for pickup
858
                                                            <input type="hidden" name="op" value="cancel">
850
                                                [% ELSIF ( RECALL.has_expired ) %]
859
                                                            <input type="hidden" name="recall_id" value="[% RECALL.recall_id %]">
851
                                                    Expired
860
                                                            <input type="hidden" name="itemnumber" value="[% RECALL.itemnumber %]">
852
                                                [% END %]
861
                                                            <button type="submit" name="submit" class="btn btn-sm btn-danger" id="cancel_recall"><i class="icon-remove icon-white"></i> Cancel</button>
853
                                            </td>
862
                                                        </form>
854
                                            <td class="cancelrecall">
863
                                                    [% ELSE %]
855
                                                [% IF ( !RECALL.cancellationdate ) %]
864
                                                        Cancelled
856
                                                    <form action="/cgi-bin/koha/opac-recall.pl" method="post">
865
                                                    [% END %]
857
                                                        <input type="hidden" name="op" value="cancel">
866
                                                </td>
858
                                                        <input type="hidden" name="recall_id" value="[% RECALL.recall_id %]">
867
                                            [% END %]
859
                                                        <input type="hidden" name="itemnumber" value="[% RECALL.itemnumber %]">
868
                                        </tr>
860
                                                        <button type="submit" name="submit" class="btn btn-sm btn-danger" id="cancel_recall"><i class="icon-remove icon-white"></i> Cancel</button>
861
                                                    </form>
862
                                                [% ELSE %]
863
                                                    Cancelled
864
                                                [% END %]
865
                                            </td>
866
                                        [% END %]
867
                                    </tbody>
869
                                    </tbody>
868
                                <table>
870
                                <table>
869
                            </div>
871
                            </div>
870
- 

Return to bug 19532