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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc (+3 lines)
Lines 56-61 Link Here
56
                                </strong>
56
                                </strong>
57
                            [% END %]
57
                            [% END %]
58
                            [% HOLD.biblio.author | html %]
58
                            [% HOLD.biblio.author | html %]
59
                            [% IF HOLD.item_group_id %]
60
                               <p>Next available item from item group: <strong>[% HOLD.item_group.description | html %]</strong></p>
61
                            [% END %]
59
                            [% IF HOLD.item_level_hold %]
62
                            [% IF HOLD.item_level_hold %]
60
                                <p class="hint">Item on hold: [% HOLD.item.barcode | html %]</p>
63
                                <p class="hint">Item on hold: [% HOLD.item.barcode | html %]</p>
61
                            [% END %]
64
                            [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-2 / +22 lines)
Lines 305-310 Link Here
305
                                                    </li>
305
                                                    </li>
306
                                                [% END %]
306
                                                [% END %]
307
307
308
                                                [% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %]
309
                                                    [% IF bibitemloo.object.item_groups %]
310
                                                        <li>
311
                                                            <label for="itemtype">Request specific item group:</label>
312
                                                            <select name="item_group_id_[% bibitemloo.biblionumber | html %]" id="item_group_id_[% bibitemloo.biblionumber | html %]">
313
                                                                <option value="">Any item group</option>
314
                                                                [% FOREACH g IN bibitemloo.object.item_groups.search({}, { order_by => ['display_order'] }) %]
315
                                                                    <option value="[% g.id | html %]">[% g.description | html %]</option>
316
                                                                [% END %]
317
                                                            </select>
318
                                                        </li>
319
                                                    [% END %]
320
                                                [% END %]
321
308
                                                [% IF ( OpacHoldNotes ) %]
322
                                                [% IF ( OpacHoldNotes ) %]
309
                                                    <li>
323
                                                    <li>
310
                                                        <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]">
324
                                                        <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]">
Lines 320-326 Link Here
320
                                                [% IF bibitemloo.itemholdable %]
334
                                                [% IF bibitemloo.itemholdable %]
321
                                                    <!-- ITEM HOLDS -->
335
                                                    <!-- ITEM HOLDS -->
322
                                                    <li class="lradio place_on_type" style="display:none;">
336
                                                    <li class="lradio place_on_type" style="display:none;">
323
                                                        [% IF NOT bibitemloo.force_hold %]
337
                                                        [% UNLESS bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'item_group' %]
324
                                                            <label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label>
338
                                                            <label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label>
325
                                                            <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
339
                                                            <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
326
                                                                    id="reqany_[% bibitemloo.biblionumber | html %]"
340
                                                                    id="reqany_[% bibitemloo.biblionumber | html %]"
Lines 590-599 Link Here
590
            var select_specific = $("#reqspecific_"+biblioNum).is(":checked");
604
            var select_specific = $("#reqspecific_"+biblioNum).is(":checked");
591
            // If the checkbox is checked AND we want a specific item, we display the items block
605
            // If the checkbox is checked AND we want a specific item, we display the items block
592
            if ( $(checkbox).is(":checked") && select_specific ) {
606
            if ( $(checkbox).is(":checked") && select_specific ) {
607
                if ( $(`#item_group_id_${biblioNum}`).length ) {
608
                    $(`#item_group_id_${biblioNum}`).val("").attr('disabled', 'disabled');
609
                }
593
                $(newCopiesRowId).show();
610
                $(newCopiesRowId).show();
594
            } else {
611
            } else {
612
                if ( $(`#item_group_id_${biblioNum}`).length ) {
613
                    $(`#item_group_id_${biblioNum}`).removeAttr('disabled');
614
                }
595
                $(newCopiesRowId).hide();
615
                $(newCopiesRowId).hide();
596
             }
616
            }
597
        };
617
        };
598
618
599
        $("#place_on_hdr").show();
619
        $("#place_on_hdr").show();
(-)a/opac/opac-reserve.pl (-1 / +5 lines)
Lines 290-295 if ( $query->param('place_reserve') ) { Link Here
290
            $itemNum = undef;
290
            $itemNum = undef;
291
        }
291
        }
292
        my $notes = $query->param('notes_'.$biblioNum)||'';
292
        my $notes = $query->param('notes_'.$biblioNum)||'';
293
        my $item_group_id = $query->param("item_group_id_$biblioNum") || undef;
293
294
294
        if (   $maxreserves
295
        if (   $maxreserves
295
            && $reserve_cnt >= $maxreserves )
296
            && $reserve_cnt >= $maxreserves )
Lines 321-326 if ( $query->param('place_reserve') ) { Link Here
321
                    itemnumber       => $itemNum,
322
                    itemnumber       => $itemNum,
322
                    found            => $found,
323
                    found            => $found,
323
                    itemtype         => $itemtype,
324
                    itemtype         => $itemtype,
325
                    item_group_id    => $item_group_id,
324
                }
326
                }
325
            );
327
            );
326
            $failed_holds++ unless $reserve_id;
328
            $failed_holds++ unless $reserve_id;
Lines 442-447 foreach my $biblioNum (@biblionumbers) { Link Here
442
    $biblioLoopIter{reservecount} = $biblioData->{reservecount};
444
    $biblioLoopIter{reservecount} = $biblioData->{reservecount};
443
    $biblioLoopIter{already_reserved} = $biblioData->{already_reserved};
445
    $biblioLoopIter{already_reserved} = $biblioData->{already_reserved};
444
    $biblioLoopIter{reqholdnotes}=0; #TODO: For future use
446
    $biblioLoopIter{reqholdnotes}=0; #TODO: For future use
447
    $biblioLoopIter{object} = $biblio;
445
448
446
    if (!$itemLevelTypes && $biblioData->{itemtype}) {
449
    if (!$itemLevelTypes && $biblioData->{itemtype}) {
447
        $biblioLoopIter{translated_description} = $itemtypes->{$biblioData->{itemtype}}{translated_description};
450
        $biblioLoopIter{translated_description} = $itemtypes->{$biblioData->{itemtype}}{translated_description};
Lines 668-674 foreach my $biblioNum (@biblionumbers) { Link Here
668
    )->forced_hold_level();
671
    )->forced_hold_level();
669
    if ($forced_hold_level) {
672
    if ($forced_hold_level) {
670
        $biblioLoopIter{force_hold}   = 1 if $forced_hold_level eq 'item';
673
        $biblioLoopIter{force_hold}   = 1 if $forced_hold_level eq 'item';
674
        $biblioLoopIter{force_hold}   = 0 if $forced_hold_level eq 'item_group';
671
        $biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'record';
675
        $biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'record';
676
        $biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'item_group';
672
        $biblioLoopIter{forced_hold_level} = $forced_hold_level;
677
        $biblioLoopIter{forced_hold_level} = $forced_hold_level;
673
    }
678
    }
674
679
675
- 

Return to bug 24860