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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-33 / +42 lines)
Lines 20-26 Link Here
20
        [% IF SuspendHoldsIntranet %]<th>&nbsp;</th><!-- Suspend Holds Column Header -->[% END %]
20
        [% IF SuspendHoldsIntranet %]<th>&nbsp;</th><!-- Suspend Holds Column Header -->[% END %]
21
    </tr>
21
    </tr>
22
22
23
    [% SET first_priority = 0 %]
24
    [% SET last_priority  = holds.last.priority %]
25
23
    [% FOREACH hold IN holds %]
26
    [% FOREACH hold IN holds %]
27
    [% IF !hold.found && first_priority == 0 %][% first_priority = hold.priority %][% END %]
24
        <tr>
28
        <tr>
25
            <td>
29
            <td>
26
                <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
30
                <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
Lines 70-98 Link Here
70
            </td>
74
            </td>
71
75
72
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
76
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
73
                [% SET first_priority = holds.first.priority %]
77
	        [% UNLESS hold.found %]
74
                [% SET last_priority  = holds.last.priority %]
78
                    [% SET prev_priority  = loop.prev.priority %]
75
                [% SET prev_priority  = loop.prev.priority %]
79
                    [% SET next_priority  = loop.next.priority %]
76
                [% SET next_priority  = loop.next.priority %]
80
                    [% holds.index | html %]
77
                [% holds.index | html %]
81
78
82
                    <td style="white-space:nowrap;">
79
                <td style="white-space:nowrap;">
83
                        <a title="Move hold up" href="request.pl?action=move&amp;where=up&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
80
                    <a title="Move hold up" href="request.pl?action=move&amp;where=up&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
84
                            <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
81
                        <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
85
                        </a>
82
                    </a>
86
83
87
                        <a title="Move hold to top" href="request.pl?action=move&amp;where=top&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
84
                    <a title="Move hold to top" href="request.pl?action=move&amp;where=top&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
88
                            <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
85
                        <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
89
                        </a>
86
                    </a>
90
87
91
                        <a title="Move hold to bottom" href="request.pl?action=move&amp;where=bottom&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
88
                    <a title="Move hold to bottom" href="request.pl?action=move&amp;where=bottom&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
92
                            <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
89
                        <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
93
                        </a>
90
                    </a>
94
91
95
                        <a title="Move hold down" href="request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
92
                    <a title="Move hold down" href="request.pl?action=move&amp;where=down&amp;first_priority=[% first_priority | html %]&amp;last_priority=[% last_priority | html %]&amp;prev_priority=[% prev_priority | html %]&amp;next_priority=[% next_priority | html %]&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
96
                            <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
93
                        <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
97
                        </a>
94
                    </a>
98
                    </td>
95
                </td>
99
		[% ELSE %]
100
		    <td></td>
101
		[% END %]
96
            [% END %]
102
            [% END %]
97
103
98
            <td>
104
            <td>
Lines 161-175 Link Here
161
            </td>
167
            </td>
162
168
163
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
169
            [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
164
                <td>
170
	        [% UNLESS hold.found %]
165
                    <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
171
                    <td>
166
                        [% IF ( hold.lowestPriority ) %]
172
                        <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% hold.borrowernumber | html %]&amp;biblionumber=[% hold.biblionumber | html %]&amp;reserve_id=[% hold.reserve_id | html %]&amp;date=[% hold.date | html %]">
167
                            <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
173
                            [% IF ( hold.lowestPriority ) %]
168
                        [% ELSE %]
174
                                <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
169
                            <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
175
                            [% ELSE %]
170
                        [% END %]
176
                                <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
171
                    </a>
177
                            [% END %]
172
                </td>
178
                        </a>
179
                    </td>
180
		[% ELSE %]
181
		    <td></td>
182
		[% END %]
173
            [% END %]
183
            [% END %]
174
184
175
            <td>
185
            <td>
176
- 

Return to bug 22753