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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +55 lines)
Lines 178-184 Link Here
178
            [% END %]
178
            [% END %]
179
        </div>
179
        </div>
180
    [% END %]
180
    [% END %]
181
181
    [% IF ( hold_move_successes ) %]
182
        <div class="alert alert-success">
183
            <p>Moved the following holds:</p>
184
            <ul>
185
                [% FOREACH hold IN hold_move_successes %]
186
                    <li>
187
                        <label>Hold ID: </label>
188
                        <span>[% hold.hold_id | html %]</span>
189
                        <span> - Moved from [%- INCLUDE 'biblio-title.inc' biblio=hold.original_biblio link = 1 -%] to [%- INCLUDE 'biblio-title.inc' biblio=hold.target_biblio link = 1 -%]</span>
190
                    </li>
191
                [% END %]
192
            </ul>
193
        </div>
194
    [% END %]
195
    [% IF ( hold_move_failures ) %]
196
        <div class="alert alert-warning">
197
            <strong>One or more holds were not moved due to following errors:</strong>
198
            <ul>
199
                [% FOREACH fail IN hold_move_failures %]
200
                    <li>
201
                        <label>Hold ID: </label>
202
                        <span>[% fail.hold_id | html %]</span>
203
                        [% SWITCH fail.error %]
204
                        [% CASE 'cannotReserveFromOtherBranches' %]
205
                            <span>Target item cannot be reserved from other branches</span>
206
                        [% CASE 'ageRestricted' %]
207
                            <span>The target record and/or items are age restricted</span>
208
                        [% CASE 'alreadypossession' %]
209
                            <span>Target item is already checked out to patron</span>
210
                        [% CASE 'noReservesAllowed' %]
211
                            <span>No holds are allowed on the target item(s)</span>
212
                        [% CASE 'tooManyReservesToday' %]
213
                            <span>Target item has too many holds placed on it today</span>
214
                        [% CASE 'tooManyReserves' %]
215
                            <span>Target item has too many holds placed on it</span>
216
                        [% CASE 'notReservable' %]
217
                            <span>Target item is not reservable</span>
218
                        [% CASE 'cannotReserveFromOtherBranches' %]
219
                            <span>Target item cannot be placed on reserve for this branch</span>
220
                        [% CASE 'branchNotInHoldGroup' %]
221
                            <span>Tagret item is not in the local hold group</span>
222
                        [% CASE 'notforloan' %]
223
                            <span>Target item is not for loan</span>
224
                        [% CASE 'damaged' %]
225
                            <span>Target item is damaged</span>
226
                        [% CASE %]
227
                            <span>Error: [% fail.error | html %]</span>
228
                        [% END %]
229
                    </li>
230
                [% END %]
231
            </ul>
232
        </div>
233
    [% END %]
182
    [% IF ( failed_holds ) %]
234
    [% IF ( failed_holds ) %]
183
        <div class="alert alert-warning">
235
        <div class="alert alert-warning">
184
            <strong>One or more holds were not placed due to following errors:</strong>
236
            <strong>One or more holds were not placed due to following errors:</strong>
Lines 1418-1423 Link Here
1418
                    [% INCLUDE 'csrf-token.inc' %]
1470
                    [% INCLUDE 'csrf-token.inc' %]
1419
                    <input type="hidden" name="op" value="cud-move_hold_item" />
1471
                    <input type="hidden" name="op" value="cud-move_hold_item" />
1420
                    <input type="hidden" name="original_biblionumber" value="[% biblio.biblionumber | html %]" />
1472
                    <input type="hidden" name="original_biblionumber" value="[% biblio.biblionumber | html %]" />
1473
                    <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
1421
                    <div id="itemResultMessage" class="mt-3"> </div>
1474
                    <div id="itemResultMessage" class="mt-3"> </div>
1422
                    <div id="move_hold_item_selection">
1475
                    <div id="move_hold_item_selection">
1423
                        <h3>Review holds to move</h3>
1476
                        <h3>Review holds to move</h3>
Lines 1464-1469 Link Here
1464
                    [% INCLUDE 'csrf-token.inc' %]
1517
                    [% INCLUDE 'csrf-token.inc' %]
1465
                    <input type="hidden" name="op" value="cud-move_hold_biblio" />
1518
                    <input type="hidden" name="op" value="cud-move_hold_biblio" />
1466
                    <input type="hidden" name="original_biblionumber" value="[% biblio.biblionumber | html %]" />
1519
                    <input type="hidden" name="original_biblionumber" value="[% biblio.biblionumber | html %]" />
1520
                    <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
1467
                    <div id="biblioResultMessage" class="mt-3"> </div>
1521
                    <div id="biblioResultMessage" class="mt-3"> </div>
1468
                    <div id="move_hold_biblio_selection">
1522
                    <div id="move_hold_biblio_selection">
1469
                        <h3>Review holds to move</h3>
1523
                        <h3>Review holds to move</h3>
1470
- 

Return to bug 31698