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

Return to bug 19532