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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt (-104 / +99 lines)
Lines 35-144 Link Here
35
35
36
                [% IF Koha.Preference('UseRecalls') %]
36
                [% IF Koha.Preference('UseRecalls') %]
37
37
38
                <div id="results" class="toptabs">
38
                    [% WRAPPER tabs id= "results" %]
39
                        [% WRAPPER tabs_nav %]
40
                            [% WRAPPER tab_item tabname= "recallswaiting" bt_active= 1 %] <span>Recalls waiting: [% recalls.count | html %]</span> [% END %]
41
                            [% WRAPPER tab_item tabname= "recallsover" %] <span>Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</span> [% END %]
42
                        [% END # /WRAPPER tabs_nav %]
39
43
40
                    <ul class="nav nav-tabs" role="tablist">
44
                        [% WRAPPER tab_panels %]
41
                        <li role="presentation" class="active">
45
                            [% WRAPPER tab_panel tabname="recallswaiting" bt_active= 1 %]
42
                            <a href="#recallswaiting" aria-controls="recallswaiting" role="tab" data-toggle="tab">Recalls waiting: [% recalls.count | html %]</a>
46
                                [% IF ( recalls ) %]
43
                        </li>
47
                                    <table id="recallswaiting-table">
44
                        <li role="presentation">
48
                                        <thead><tr>
45
                            <a href="#recallsover" aria-controls="recallsover" role="tab" data-toggle="tab">Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</a>
49
                                            <th class="recall-waitingdate title-string">Available since</th>
46
                        </li>
50
                                            <th class="recall-title anti-the">Title</th>
47
                    </ul>
51
                                            <th class="recall-patron">Requested by</th>
48
52
                                            <th class="recall-library">Pickup location</th>
49
                    <div class="tab-content">
53
                                            <th class="recall-action nosort">&nbsp;</th>
50
                        <div id="recallswaiting" role="tabpanel" class="tab-pane active">
54
                                        </tr></thead>
51
                            [% IF ( recalls ) %]
55
                                        <tbody>
52
                                <table id="recallswaiting-table">
56
                                            [% FOREACH recall IN recalls %]<tr>
53
                                    <thead><tr>
57
                                                <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
54
                                        <th class="recall-waitingdate title-string">Available since</th>
58
                                                <td class="recall-title">
55
                                        <th class="recall-title anti-the">Title</th>
59
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
56
                                        <th class="recall-patron">Requested by</th>
60
                                                        [% recall.biblio.title | html %]
57
                                        <th class="recall-library">Pickup location</th>
61
                                                        [% FOREACH s IN recall.biblio.subtitle %]
58
                                        <th class="recall-action nosort">&nbsp;</th>
62
                                                            [% s | html %]
59
                                    </tr></thead>
63
                                                        [% END %]
60
                                    <tbody>
64
                                                    </a>
61
                                        [% FOREACH recall IN recalls %]<tr>
65
                                                    [% recall.biblio.author | html %]
62
                                            <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
66
                                                    <br><i>Barcode: [% recall.item.barcode | html %]</i>
63
                                            <td class="recall-title">
67
                                                </td>
64
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | uri %]">
68
                                                <td class="recall-patron">
65
                                                    [% recall.biblio.title | html %]
69
                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
66
                                                    [% FOREACH s IN recall.biblio.subtitle %]
70
                                                    [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
67
                                                        [% s | html %]
71
                                                    [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
68
                                                    [% END %]
72
                                                </td>
69
                                                </a>
73
                                                <td class="recall-library">[% recall.library.branchname | html %]</td>
70
                                                [% recall.biblio.author | html %]
74
                                                <td class="recall-action actions">
71
                                                <br><i>Barcode: [% recall.item.barcode | html %]</i>
75
                                                    <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
72
                                            </td>
76
                                                        <input type="hidden" name="recall_id" value="[% recall.id | html %]">
73
                                            <td class="recall-patron">
77
                                                        <input type="hidden" name="op" value="modify">
74
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
78
                                                        <fieldset class="action">
75
                                                [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
79
                                                            <button type="submit" name="revert" value="revert" class="btn btn-default btn-sm revert_recall"><i class="fa fa-undo"></i> Revert waiting status</button>
76
                                                [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
80
                                                            <button type="submit" name="expire" value="expire" class="btn btn-default btn-sm expire_recall"><i class="fa fa-undo"></i> Expire recall</button>
77
                                            </td>
81
                                                        </fieldset>
78
                                            <td class="recall-library">[% recall.library.branchname | html %]</td>
82
                                                    </form>
79
                                            <td class="recall-action actions">
83
                                                </td>
80
                                                <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
84
                                            </tr>[% END %]
81
                                                    <input type="hidden" name="recall_id" value="[% recall.id | html %]">
85
                                        </tbody>
82
                                                    <input type="hidden" name="op" value="modify">
86
                                    </table>
83
                                                    <fieldset class="action">
87
                                [% ELSE %]
84
                                                        <button type="submit" name="revert" value="revert" class="btn btn-default btn-sm revert_recall"><i class="fa fa-undo"></i> Revert waiting status</button>
88
                                    <div class="dialog message">There are no recalls to show.</div>
85
                                                        <button type="submit" name="expire" value="expire" class="btn btn-default btn-sm expire_recall"><i class="fa fa-undo"></i> Expire recall</button>
89
                                [% END %]
86
                                                    </fieldset>
90
                            [% END # /tab_panel# %]
87
                                                </form>
91
                            [% WRAPPER tab_panel tabname="recallsover" %]
88
                                            </td>
92
                                <div id="recallsover" role="tabpanel" class="tab-pane">
89
                                        </tr>[% END %]
93
                                    [% IF ( over.size ) %]
90
                                    </tbody>
94
                                        [% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %]
91
                                </table>
95
                                        <table id="recallsover-table">
92
                            [% ELSE %]
96
                                            <thead><tr>
93
                                <div class="dialog message">There are no recalls to show.</div>
97
                                                <th class="recall-waitingdate title-string">Available since</th>
94
                            [% END %]
98
                                                <th class="recall-title anti-the">Title</th>
95
                        </div> <!-- recallswaiting -->
99
                                                <th class="recall-patron">Requested by</th>
96
100
                                                <th class="recall-library">Pickup location</th>
97
                        <div id="recallsover" role="tabpanel" class="tab-pane">
101
                                                <th class="recall-action nosort">&nbsp;</th>
98
                            [% IF ( over.size ) %]
102
                                            </tr></thead>
99
                                [% IF ( Koha.Preference('RecallsMaxPickUpDelay') ) %]<p>Recalls listed here have been awaiting pickup for more than [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days.</p>[% END %]
103
                                            <tbody>
100
                                <table id="recallsover-table">
104
                                                [% FOREACH recall IN over %]<tr>
101
                                    <thead><tr>
105
                                                    <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
102
                                        <th class="recall-waitingdate title-string">Available since</th>
106
                                                    <td class="recall-title">
103
                                        <th class="recall-title anti-the">Title</th>
107
                                                        [% INCLUDE 'biblio-title.inc' biblio=recall.biblio link = 1 %]
104
                                        <th class="recall-patron">Requested by</th>
108
                                                        [% IF recall.biblio.author %] by [% recall.biblio.author | html %][% END %]
105
                                        <th class="recall-library">Pickup location</th>
109
                                                        [% recall.item.enumchron | html %]
106
                                        <th class="recall-action nosort">&nbsp;</th>
110
                                                        [% IF ( recall.item.barcode ) %]<br><em>Barcode: [% recall.item.barcode | html %]</em>[% END %]
107
                                    </tr></thead>
111
                                                    </td>
108
                                    <tbody>
112
                                                    <td class="recall-patron">
109
                                        [% FOREACH recall IN over %]<tr>
113
                                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
110
                                            <td class="recall-waitingdate">[% recall.waiting_date | $KohaDates %]</td>
114
                                                        [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
111
                                            <td class="recall-title">
115
                                                        [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
112
                                                [% INCLUDE 'biblio-title.inc' biblio=recall.biblio link = 1 %]
116
                                                    </td>
113
                                                [% IF recall.biblio.author %] by [% recall.biblio.author | html %][% END %]
117
                                                    <td class="recall-library">[% recall.library.branchname | html %]</td>
114
                                                [% recall.item.enumchron | html %]
118
                                                    <td class="recall-action actions">
115
                                                [% IF ( recall.item.barcode ) %]<br><em>Barcode: [% recall.item.barcode | html %]</em>[% END %]
119
                                                        <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
116
                                            </td>
120
                                                            <input type="hidden" name="recall_id" value="[% recall.id | html %]">
117
                                            <td class="recall-patron">
121
                                                            <input type="hidden" name="op" value="modify">
118
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %]</a>
122
                                                            <fieldset class="action">
119
                                                [% IF ( recall.patron.phone ) %]<br />[% recall.patron.phone | html %][% END %]
123
                                                                <button type="submit" name="revert" value="revert" class="btn btn-default btn-sm revert_recall"><i class="fa fa-undo"></i> Revert waiting status</button>
120
                                                [% IF ( recall.patron.email ) %]<br /><a href="mailto:[% recall.patron.email | uri %]?subject=Recall waiting: [% recall.biblio.title | uri %]">[% recall.patron.email | html %]</a>[% END %]
124
                                                                <button type="submit" name="expire" value="expire" class="btn btn-default btn-sm expire_recall"><i class="fa fa-undo"></i> Expire recall</button>
121
                                            </td>
125
                                                            </fieldset>
122
                                            <td class="recall-library">[% recall.library.branchname | html %]</td>
126
                                                        </form>
123
                                            <td class="recall-action actions">
127
                                                    </td>
124
                                                <form action="/cgi-bin/koha/recalls/recalls_waiting.pl" method="post">
128
                                                </tr>[% END %]
125
                                                    <input type="hidden" name="recall_id" value="[% recall.id | html %]">
129
                                            </tbody>
126
                                                    <input type="hidden" name="op" value="modify">
130
                                        </table>
127
                                                    <fieldset class="action">
131
                                    [% ELSE %]
128
                                                        <button type="submit" name="revert" value="revert" class="btn btn-default btn-sm revert_recall"><i class="fa fa-undo"></i> Revert waiting status</button>
132
                                        <div class="dialog message">There are no recalls to show.</div>
129
                                                        <button type="submit" name="expire" value="expire" class="btn btn-default btn-sm expire_recall"><i class="fa fa-undo"></i> Expire recall</button>
133
                                    [% END %]
130
                                                    </fieldset>
134
                                </div> <!-- recallsover -->
131
                                                </form>
135
                            [% END # /tab_panel# %]
132
                                            </td>
136
                        [% END # /WRAPPER tab_panels %]
133
                                        </tr>[% END %]
137
                    [% END # /WRAPPER tabs %]
134
                                    </tbody>
135
                                </table>
136
                            [% ELSE %]
137
                                <div class="dialog message">There are no recalls to show.</div>
138
                            [% END %]
139
                        </div> <!-- recallsover -->
140
                    </div> <!-- /.tab-content -->
141
                </div> <!-- results-->
142
138
143
                [% ELSE %]
139
                [% ELSE %]
144
                    <div class="dialog message">Recalls have not been enabled. Enable the <a href="/cgi-bin/koha/admin/preferences.pl?tab=circulation">UseRecalls</a> system preference to use recalls.</div>
140
                    <div class="dialog message">Recalls have not been enabled. Enable the <a href="/cgi-bin/koha/admin/preferences.pl?tab=circulation">UseRecalls</a> system preference to use recalls.</div>
145
- 

Return to bug 34012