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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-5 / +11 lines)
Lines 15-20 Link Here
15
[% END %]
15
[% END %]
16
[% INCLUDE 'doc-head-close.inc' %]
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% Asset.css("css/datatables.css") | $raw %]
17
[% Asset.css("css/datatables.css") | $raw %]
18
18
</head>
19
</head>
19
20
20
<body id="circ_request" class="catalog">
21
<body id="circ_request" class="catalog">
Lines 316-324 Link Here
316
                        Hold must be record level
317
                        Hold must be record level
317
                    </span>
318
                    </span>
318
                [% ELSIF ( itemloo.available ) %]
319
                [% ELSIF ( itemloo.available ) %]
319
                    <input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" />
320
                    <input type="checkbox" name="checkitem" value="[% itemloo.itemnumber %]" />
320
                [% ELSIF ( itemloo.override ) %]
321
                [% ELSIF ( itemloo.override ) %]
321
                    <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" />
322
                    <input type="checkbox" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" />
322
                    <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" alt="Requires override of hold policy"/></i>
323
                    <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" alt="Requires override of hold policy"/></i>
323
                [% ELSE %]
324
                [% ELSE %]
324
                    <span class="error">
325
                    <span class="error">
Lines 670-675 Link Here
670
            [% END %][% END %][% END %]
671
            [% END %][% END %][% END %]
671
        };
672
        };
672
        var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
673
        var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
674
        var MSG_EXCEEDED_HOLDS_PER_RECORD = _("Patron has exceeded the number of holds for this record.");
675
        var remainingHolds = "[% remaining_holds_for_record %]";
673
676
674
        $(document).ready(function() {
677
        $(document).ready(function() {
675
            function ToggleHoldsToPlace() {
678
            function ToggleHoldsToPlace() {
Lines 794-810 Link Here
794
                }
797
                }
795
            });
798
            });
796
            $("input[name=checkitem]").click(function() {
799
            $("input[name=checkitem]").click(function() {
797
                onechecked = 0;
800
                numchecked = 0;
798
                $("input[name=checkitem]").each(function() {
801
                $("input[name=checkitem]").each(function() {
799
                    if(this.checked){
802
                    if(this.checked){
800
                        onechecked = 1;
803
                        numchecked = 1;
801
                    }
804
                    }
802
                });
805
                });
803
                if(onechecked == 1){
806
                if(numchecked == 1){
804
                    $("#requestany").prop("checked", false);
807
                    $("#requestany").prop("checked", false);
805
                } else {
808
                } else {
806
                    $("#requestany").prop("checked",true);
809
                    $("#requestany").prop("checked",true);
807
                }
810
                }
811
                if (remainingHolds - numchecked < 0) {
812
                    alert(MSG_EXCEEDED_HOLDS_PER_RECORD);
813
                }
808
            });
814
            });
809
            var prev_rank_request;
815
            var prev_rank_request;
810
            var priorities;
816
            var priorities;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-105 / +95 lines)
Lines 146-165 Link Here
146
                        <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
146
                        <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
147
                            <input type="hidden" name="place_reserve" value="1"/>
147
                            <input type="hidden" name="place_reserve" value="1"/>
148
                            <!-- These values are set dynamically by js -->
148
                            <!-- These values are set dynamically by js -->
149
                            <input type="hidden" name="biblionumbers" id="biblionumbers"/>
150
                            <input type="hidden" name="selecteditems" id="selections"/>
151
                            <div id="bigloop">
149
                            <div id="bigloop">
152
150
153
                                [% FOREACH bibitemloo IN bibitemloop %]
151
                                [% FOREACH bibitemloo IN bibitemloop %]
154
                                    <div class="holdrow">
152
                                    <div class="holdrow">
153
                                        <input id="remaining_holds_[% bibitemloo.biblionumber %]" type="hidden" value="[% bibitemloo.remaining_holds_for_record %]"/>
155
                                        <p>
154
                                        <p>
156
                                            [% IF ( bibitemloo.holdable ) %]
155
                                            [% IF ( bibitemloo.holdable ) %]
157
                                                <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
156
                                                <span title="[% bibitemloo.biblionumber %]" style="padding:.3em">
158
                                                <input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber | html %]"/>
157
                                                    <label>
159
                                                <span class="confirmjs_hold" title="[% bibitemloo.biblionumber | html %]" style="padding:.3em"></span>
158
                                                        <input class="biblionumbers" name="biblionumbers" type="checkbox" value="[% bibitemloo.biblionumber %]" checked="checked">
160
                                                <span class="confirm_nonjs">
159
                                                        Place a hold on
161
                                                    <input type="radio" class="confirmbox checkitem [% bibitemloo.biblionumber | html %]" name="[% bibitemloo.biblionumber | html %]" checked="checked" id="single_[% bibitemloo.biblionumber | html %]" value="any" />
160
                                                    </label>
162
                                                    <label class="confirm_label" for="single_[% bibitemloo.biblionumber | html %]">Place a hold on </label>
163
                                                </span>
161
                                                </span>
164
                                            [% END # / bibitemloo.holdable %]
162
                                            [% END # / bibitemloo.holdable %]
165
163
Lines 226-232 Link Here
226
                                                            <li class="branch">
224
                                                            <li class="branch">
227
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
225
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
228
                                                                [% UNLESS ( bibitemloo.holdable ) %]
226
                                                                [% UNLESS ( bibitemloo.holdable ) %]
229
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
227
                                                                    <select name="branch_[% bibitemloo.biblionumber %]" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
230
                                                                        [% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %]
228
                                                                        [% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %]
231
                                                                    </select>
229
                                                                    </select>
232
                                                                [% ELSE %]
230
                                                                [% ELSE %]
Lines 300-329 Link Here
300
                                                            </li>
298
                                                            </li>
301
                                                        [% END # / IF OpacHoldNotes %]
299
                                                        [% END # / IF OpacHoldNotes %]
302
300
303
                                                        [% IF bibitemloo.itemholdable %]
301
                                                        <!-- ITEM HOLDS -->
304
                                                            <!-- ITEM HOLDS -->
302
                                                        <li class="lradio place_on_type" style="display:none;">
305
                                                            <li class="lradio place_on_type" style="display:none;">
303
                                                                <label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label>
306
                                                                [% IF NOT bibitemloo.force_hold %]
304
                                                                <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
307
                                                                    <label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label>
305
                                                                        id="reqany_[% bibitemloo.biblionumber %]"
308
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
306
                                                                        class="selectany"
309
                                                                            id="reqany_[% bibitemloo.biblionumber | html %]"
307
                                                                        value="Any"
310
                                                                            class="selectany"
308
                                                                        checked="checked"
311
                                                                            value="Any"
312
                                                                            checked="checked"
313
                                                                    />
314
                                                                [% END %]
315
                                                                <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber | html %]">A specific item</label>
316
                                                                <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
317
                                                                       id="reqspecific_[% bibitemloo.biblionumber | html %]"
318
                                                                       class="selectspecific"
319
                                                                       value="Specific"
320
                                                                />
309
                                                                />
321
                                                            </li>
310
                                                            <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label>
322
                                                        [% END # / IF bibitemloo.itemholdable %]
311
                                                            <input type="radio" name="reqtype_[% bibitemloo.biblionumber %]"
312
                                                                   id="reqspecific_[% bibitemloo.biblionumber %]"
313
                                                                   class="selectspecific"
314
                                                                   value="Specific"
315
                                                            />
316
                                                        </li>
323
                                                    </ul>
317
                                                    </ul>
324
318
325
                                                    [% IF bibitemloo.itemholdable %]
319
                                                    [% IF bibitemloo.remaining_holds_for_record > 1 %]
326
                                                        <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber | html %]">
320
                                                        [% SET count = 1 %]
321
                                                        <div id="holds_to_place_[% bibitemloo.biblionumber %]" class="hold-options holds-to-place">
322
                                                            <label>Holds to place (count)</label>
323
                                                            <select name="holds_to_place_count_[% bibitemloo.biblionumber %]">
324
                                                            [% WHILE count <= bibitemloo.remaining_holds_for_record %]
325
                                                                <option value="[% count %]">[% count %]</option>
326
                                                                [% SET count = count + 1 %]
327
                                                            [% END %]
328
                                                            </select>
329
                                                        </div>
330
                                                    [% ELSE %]
331
                                                        <input type="hidden" name="holds_to_place_count_[% bibitemloo.biblionumber %]" value="1" />
332
                                                    [% END %]
333
334
                                                        <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]">
327
                                                            <caption>Select a specific item:</caption>
335
                                                            <caption>Select a specific item:</caption>
328
                                                            <tr>
336
                                                            <tr>
329
                                                                <th>Copy number</th>
337
                                                                <th>Copy number</th>
Lines 349-357 Link Here
349
                                                                <tr class="[% itemLoo.backgroundcolor | html %]">
357
                                                                <tr class="[% itemLoo.backgroundcolor | html %]">
350
                                                                    <td class="copynumber">
358
                                                                    <td class="copynumber">
351
                                                                        [% IF ( itemLoo.available ) %]
359
                                                                        [% IF ( itemLoo.available ) %]
352
                                                                            <input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" />
360
                                                                            <input type="checkbox" class="checkitem checkitem_[% bibitemloo.biblionumber %]" name="checkitem_[% bibitemloo.biblionumber %]" value="[% itemLoo.itemnumber %]" />
353
                                                                        [% ELSE %]
361
                                                                        [% ELSE %]
354
                                                                            <input disabled="disabled" type="radio" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber | html %]"
362
                                                                            <input disabled="disabled" type="checkbox" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber %]"
355
                                                                                   style="display:none;" />
363
                                                                                   style="display:none;" />
356
                                                                            <img src="[% interface | html %]/lib/famfamfam/silk/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" />
364
                                                                            <img src="[% interface | html %]/lib/famfamfam/silk/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" />
357
                                                                        [% END %]
365
                                                                        [% END %]
Lines 427-435 Link Here
427
                                                                    </td>
435
                                                                    </td>
428
                                                                </tr>
436
                                                                </tr>
429
                                                            [% END # / FOREACH itemLoo IN bibitemloo.itemLoop%]
437
                                                            [% END # / FOREACH itemLoo IN bibitemloo.itemLoop%]
430
                                                        </table> <!-- / #copiesrow_[% bibitemloo.biblionumber | html %] -->
438
                                                        </table> <!-- / #copiesrow_[% bibitemloo.biblionumber %] -->
431
                                                    [% END # / IF ( bibitemloo.itemholdable )%]
439
                                                </div> <!-- / #hold-options-[% bibitemloo.biblionumber %] -->
432
                                                </div> <!-- / #hold-options-[% bibitemloo.biblionumber | html %] -->
433
                                            </fieldset>
440
                                            </fieldset>
434
                                        [% END # / IF ( bibitemloo.holdable ) %]
441
                                        [% END # / IF ( bibitemloo.holdable ) %]
435
                                    </div> <!-- / .holdrow -->
442
                                    </div> <!-- / .holdrow -->
Lines 451-456 Link Here
451
<script>
458
<script>
452
// <![CDATA[
459
// <![CDATA[
453
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
460
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
461
    var MSG_MAX_HOLDS_EXCEEDED = _("Maximum number of reserve exceded.");
454
462
455
        // Clear the contents of an input field
463
        // Clear the contents of an input field
456
        $(".clearfield").on("click",function(e){
464
        $(".clearfield").on("click",function(e){
Lines 460-467 Link Here
460
468
461
    // Select the first item available
469
    // Select the first item available
462
    function select_first_available(id){
470
    function select_first_available(id){
463
        var radios = $("input:radio[name='checkitem_" + id + "']");
471
        var checkboxes = $("input:checkbox[name='checkitem_" + id + "']");
464
        $(radios).first().attr("checked", "checked");
472
        $(checkboxes).first().attr("checked", "checked");
465
    }
473
    }
466
474
467
    $(document).ready(function() {
475
    $(document).ready(function() {
Lines 482-495 Link Here
482
            }
490
            }
483
        });
491
        });
484
492
485
        // click on a first td check the confirmjs checkbox
493
        $('.checkitem').click(function(e) {
486
        $("td.hold").click(function(e){
494
            var bibNum = suffixOf($(this).attr("name"), "_");
487
          if(e.target.tagName.toLowerCase() == 'td'){
495
            var nbCheked = $("input[name='checkitem_"+bibNum+"']:checked").length;
488
            $(this).find("input.confirmjs").each( function() {
496
            var remaining = $("input[id='remaining_holds_"+bibNum+"']").val();
489
               $(this).attr('checked', !$(this).attr('checked'));
497
            if (nbCheked >= remaining) {
490
               $(this).change();
498
                $("input[name='checkitem_"+bibNum+"']:not(:checked)").attr('disabled', 'disabled');
491
            });
499
            }
492
          }
500
            else {
501
                $('.checkitem_'+bibNum).attr('disabled', false);
502
            }
493
        });
503
        });
494
504
495
        $(".toggle-hold-options").on("click",function(e){
505
        $(".toggle-hold-options").on("click",function(e){
Lines 504-518 Link Here
504
        // Hides all 'specific copy' table rows on load.
514
        // Hides all 'specific copy' table rows on load.
505
        $(".copiesrow").hide();
515
        $(".copiesrow").hide();
506
516
517
        $(".holds-to-place").show();
507
        [% FOREACH bibitemloo IN bibitemloop %]
518
        [% FOREACH bibitemloo IN bibitemloop %]
508
          [% IF bibitemloo.force_hold %]
519
            [% IF bibitemloo.force_hold %]
509
            $("#toggle-hold-options-[% bibitemloo.biblionumber | html %]").click();
520
                [% IF bibitemloo.force_hold == 'item' %]
510
            $("#reqspecific_[% bibitemloo.biblionumber | html %]").click();
521
                    $("#toggle-hold-options-[% bibitemloo.biblionumber %]").click();
511
            $("#copiesrow_[% bibitemloo.biblionumber | html %]").show();
522
                    $("#reqspecific_[% bibitemloo.biblionumber %]").attr('checked', true);
512
          [% END %]
523
                    $("#holds_to_place_[% bibitemloo.biblionumber %]").hide();
513
          [% IF bibitemloo.reqholdnotes %]
524
                    $("#copiesrow_[% bibitemloo.biblionumber %]").show();
514
              $("#holdnotes_[% bibitemloo.biblionumber | html %]").attr( 'required', true );
525
                [% ELSIF bibitemloo.force_hold == 'record' %]
515
          [% END %]
526
                    $("#toggle-hold-options-[% bibitemloo.biblionumber %]").click();
527
                    $("#reqany_[% bibitemloo.biblionumber %]").attr('checked', true);
528
                [% END %]
529
                $("#reqany_[% bibitemloo.biblionumber %]").attr('disabled', 'disabled');
530
                $("#reqspecific_[% bibitemloo.biblionumber %]").attr('disabled', 'disabled');
531
            [% END %]
532
            [% IF bibitemloo.reqholdnotes %]
533
                $("#holdnotes_[% bibitemloo.biblionumber %]").attr( 'required', true );
534
            [% END %]
516
        [% END %]
535
        [% END %]
517
536
518
        $(".date-format").each(function(){
537
        $(".date-format").each(function(){
Lines 529-568 Link Here
529
            $("#" + op + fieldID).val("");
548
            $("#" + op + fieldID).val("");
530
        });
549
        });
531
550
532
        // Replace non-JS single-selection with multi-selection capability.
533
        $(".reserve_mode").val("multi");
534
        $(".confirm_nonjs").remove();
535
        $(".confirmjs_hold").each(function(){
536
            var bib = $(this).attr("title");
537
            var html = "<label><input type =\"checkbox\" class=\"confirmjs\" checked=\"checked\"";
538
            html += "value=\"" + bib + "\" id=\"" + bib + "\" /> " + _("Place a hold on") + " </label> ";
539
            $(this).html(html);
540
        });
541
        $(".confirmjs_nohold").each(function(){
542
            var bib = $(this).attr("title");
543
            var html = "<label><input type =\"checkbox\" class=\"confirmjs\" disabled=\"disabled\"";
544
            html += "value=\"" + bib + "\" id=\"" + bib + "\" />" + _("Place a hold on: ") + "</label>";
545
            $(this).html(html);
546
        });
547
548
        // expand or collapse the copiesrow tr
551
        // expand or collapse the copiesrow tr
549
        function toggle_copiesrow(biblioNum) {
552
        function toggle_copiesrow(biblioNum) {
550
            var checkbox = $("input:checkbox[value='"+biblioNum+"']");
553
            var checkbox = $("input:checkbox[value='"+biblioNum+"']");
551
            newCopiesRowId = "#copiesrow_" + biblioNum;
554
            newCopiesRowId = "#copiesrow_" + biblioNum;
555
            holdsToPlaceCountId = "#holds_to_place_" + biblioNum;
552
            var select_specific = $("#reqspecific_"+biblioNum).is(":checked");
556
            var select_specific = $("#reqspecific_"+biblioNum).is(":checked");
553
            // If the checkbox is checked AND we want a specific item, we display the items block
557
            // If the checkbox is checked AND we want a specific item, we display the items block
554
            if ( $(checkbox).is(":checked") && select_specific ) {
558
            if ( $(checkbox).is(":checked") && select_specific ) {
555
                $(newCopiesRowId).show();
559
                $(newCopiesRowId).show();
560
                $(holdsToPlaceCountId).hide();
556
            } else {
561
            } else {
557
                $(newCopiesRowId).hide();
562
                $(newCopiesRowId).hide();
563
                $(holdsToPlaceCountId).show();
558
             }
564
             }
559
        };
565
        };
560
566
561
        $("#place_on_hdr").show();
567
        function total_requested() {
568
            var total = 0;
569
            $("input[name='biblionumbers']:checked").each(function() {
570
                var biblioNum = $(this).val();
571
                if ($("#reqspecific_" + biblioNum + ":checked").size() > 0) {
572
                    total += parseInt($("input[name='checkitem_'"+biblioNum+"]:checked").length);
573
                } else {
574
                    total += parseInt($("select[name='holds_to_place_count_"+biblioNum+"']").val());
575
                }
576
            });
577
            return total;
578
        }
562
579
563
        $(".place_on_type").show();
580
        $(".place_on_type").show();
564
        // onload, selectany is checked
581
        // onload, selectany is checked
565
        $(".selectany").attr("checked", "checked");
566
582
567
        // If the user is *allowed* to choose a specific item
583
        // If the user is *allowed* to choose a specific item
568
        // The first one is preselected
584
        // The first one is preselected
Lines 571-578 Link Here
571
            select_first_available(id);
587
            select_first_available(id);
572
        });
588
        });
573
589
574
        // On confirmsjs change
590
        // On biblionumbers change
575
        $(".confirmjs").change(function(){
591
        $(".biblionumbers").change(function(){
576
            var id = suffixOf($(this).attr("id"), "_");
592
            var id = suffixOf($(this).attr("id"), "_");
577
            // If I m checked, I enable radio buttons
593
            // If I m checked, I enable radio buttons
578
            if ( $(this).is(":checked") ) {
594
            if ( $(this).is(":checked") ) {
Lines 594-628 Link Here
594
            toggle_copiesrow(id);
610
            toggle_copiesrow(id);
595
        });
611
        });
596
612
597
        // Show or hide holds notes
598
        $(".shownotes").click(function(){
599
            biblioNum = suffixOf($(this).attr("id"), "_");
600
            $("#notesrow_"+biblioNum).toggle();
601
        });
602
603
        // When 'Place Hold' button is clicked
613
        // When 'Place Hold' button is clicked
604
        $(".placehold").click(function(){
614
        $(".placehold").click(function(){
605
            var biblionumbers = "";
615
            if (total_requested() + [% reserves_count %] > [% maxreserves %]) {
606
            var selections = "";
616
                alert(MSG_MAX_HOLDS_EXCEEDED);
607
617
                return false;
608
            [% IF new_reserves_allowed %]
618
            }
609
                if ($(".confirmjs:checked").size() > [% new_reserves_allowed | html %] ) {
610
                    alert(MSG_MAX_HOLDS_EXCEEDED);
611
                    return false;
612
                }
613
            [% END %]
614
619
615
            if ($(".confirmjs:checked").size() == 0) {
620
            if ($("input[name='biblionumbers']:checked").size() == 0) {
616
                alert(MSG_NO_RECORD_SELECTED);
621
                alert(MSG_NO_RECORD_SELECTED);
617
                return false;
622
                return false;
618
            }
623
            }
619
624
620
            // Find the items with the 'Hold' box checked
625
            // Find the items with the 'Hold' box checked
621
            var badBib = null;
626
            var badBib = null;
622
            $(".confirmjs:checked").each(function() {
627
            $("input[name='biblionumbers']:checked").each(function() {
623
                var biblioNum = $(this).val();
628
                var biblioNum = $(this).val();
624
                biblionumbers += biblioNum + "/";
625
                selections += biblioNum + "/";
626
629
627
                // If required hold note is empty, make it visible
630
                // If required hold note is empty, make it visible
628
                if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) {
631
                if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) {
Lines 639-656 Link Here
639
                        alert(MSG_NO_ITEM_SELECTED);
642
                        alert(MSG_NO_ITEM_SELECTED);
640
                        badBib = biblioNum;
643
                        badBib = biblioNum;
641
                        return false;
644
                        return false;
642
                    } else {
643
                      selections += $(item).val();
644
                    }
645
                    }
645
                }
646
                }
646
                selections += "/";
647
648
                // Add the pickup location
649
                var branchSel = $("#branch_" + biblioNum);
650
                if (branchSel.size() > 0) {
651
                    selections += $(branchSel).val();
652
                }
653
                selections += "/";
654
                return true;
647
                return true;
655
            });
648
            });
656
649
Lines 658-666 Link Here
658
                return false;
651
                return false;
659
            }
652
            }
660
653
661
            $("#selections").val(selections);
662
            $("#biblionumbers").val(biblionumbers);
663
664
            return true;
654
            return true;
665
        });
655
        });
666
656
(-)a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less (+2644 lines)
Line 0 Link Here
1
@import "mixins.less";
2
body {
3
    background-color: #EAEAE6;
4
}
5
6
 /* Sticky footer styles */
7
html,
8
body {
9
    height: 100%;
10
    /* The html and body elements cannot have any padding or margin. */
11
}
12
13
.no-js {
14
    .dateformat {
15
        display: inline;
16
        white-space: nowrap;
17
    }
18
    .modal-body {
19
        padding: 0;
20
    }
21
    .selections-toolbar {
22
        display: none;
23
    }
24
}
25
26
.js {
27
    .dateformat {
28
        display: none;
29
    }
30
}
31
32
/* Wrapper for page content to push down footer */
33
#wrap {
34
    min-height: 100%;
35
    height: auto !important;
36
    height: 100%;
37
    /* Negative indent footer by it's height */
38
    // margin: 0 auto -60px;
39
}
40
41
/* Set the fixed height of the footer here */
42
#changelanguage {
43
    // height: 60px;
44
}
45
46
.popup {
47
    padding-left : 0;
48
    padding-right: 0;
49
}
50
51
a {
52
    color: @links;
53
    &.cancel {
54
        padding-left : 1em;
55
    }
56
    &:visited {
57
        color: @links;
58
    }
59
    &.title {
60
        font-weight: bold;
61
        font-size : 108%;
62
    }
63
    &.btn {
64
        &:visited {
65
            color : #333;
66
        }
67
    }
68
    &.btn-primary {
69
        &:visited {
70
            color : #FFF;
71
        }
72
    }
73
    &.login-link {
74
        color: #A6D8ED;
75
        font-weight: bold;
76
    }
77
}
78
79
.ui-widget-content a,
80
.ui-widget-content a:visited {
81
    color: @links;
82
}
83
84
h1 {
85
    font-size : 140%;
86
    line-height: 150%;
87
    &#libraryname {
88
        background: transparent url(../images/logo-koha.png) no-repeat scroll 0%;
89
        border: 0;
90
        float: left !important;
91
        margin: 0;
92
        padding: 0;
93
        width: 120px;
94
        a {
95
            border: 0;
96
            cursor: pointer;
97
            display: block;
98
            height: 0px !important;
99
            margin: 0;
100
            overflow: hidden;
101
            padding: 40px 0 0;
102
            text-decoration: none;
103
            width: 120px;
104
        }
105
    }
106
}
107
108
h2 {
109
110
    font-size : 130%;
111
    line-height: 150%;
112
}
113
h3 {
114
115
    font-size : 120%;
116
    line-height: 150%;
117
}
118
h4 {
119
120
    font-size : 110%;
121
}
122
h5 {
123
124
    font-size : 100%;
125
}
126
127
caption {
128
    font-size: 120%;
129
    font-weight: bold;
130
    margin : 0;
131
    text-align: left;
132
}
133
134
input,
135
textarea {
136
    width: auto;
137
}
138
139
.input-fluid {
140
    width : 50%;
141
}
142
143
legend {
144
    font-size: 110%;
145
    font-weight: bold;
146
}
147
148
table, td {
149
    background-color: #FFF;
150
}
151
152
td {
153
    .btn {
154
        white-space: nowrap;
155
    }
156
    .btn-link {
157
        padding: 0;
158
    }
159
}
160
161
#advsearches,
162
#booleansearch {
163
    label {
164
        display: inline;
165
    }
166
}
167
168
#basketcount {
169
    display : inline;
170
    margin : 0;
171
    padding : 0;
172
    span {
173
        background-color : #FFC;
174
        color : #000;
175
        display : inline;
176
        font-size : 80%;
177
        font-weight : normal;
178
        margin : 0 0 0 .9em;
179
        padding : 0 .3em 0 .3em;
180
        .border-radius-all(3px);
181
    }
182
}
183
184
185
#members {
186
    display: block;
187
    p {
188
        color : #EEE;
189
    }
190
    a {
191
        &.logout {
192
            color : #E8583C;
193
            font-weight: bold;
194
            padding : 0 .3em 0 .3em;
195
        }
196
    }
197
}
198
199
#koha_url p {
200
        color: #666666;
201
        float : right;
202
        margin: 0;
203
}
204
205
#moresearches {
206
    margin: .5em 0;
207
    padding: 0 .8em;
208
    li {
209
        display: inline;
210
        white-space: nowrap;
211
        &:after {
212
            content : " | ";
213
        }
214
215
    }
216
    ul {
217
        margin : 0;
218
    }
219
}
220
221
#moresearches li:last-child:after {
222
    content : "";
223
}
224
225
#news {
226
    margin : .5em 0;
227
}
228
229
.newscontainer {
230
    border: 1px solid #ddd;
231
    border-bottom-width: 0;
232
    border-top-left-radius: 5px;
233
    border-top-right-radius: 5px;
234
}
235
236
.newsheader {
237
    background-color: #ecede6;
238
    border-bottom: 1px solid #ddd;
239
    margin: 0;
240
    padding: 8px;
241
}
242
243
.newsbody {
244
    padding: 8px;
245
}
246
247
.newsfooter {
248
    border-bottom: 1px solid #ddd;
249
    font-style: italic;
250
    padding: 4px 8px;
251
}
252
253
#opacheader {
254
    background-color: #DDD;
255
}
256
257
#selections,
258
.selections {
259
    font-weight : bold;
260
}
261
262
.actions {
263
    a {
264
        white-space: nowrap;
265
        &.hold {
266
            background-image : url("../images/sprite.png"); /* Place hold small */
267
            background-position : -5px -542px;
268
            background-repeat: no-repeat;
269
            margin-right : 1em;
270
            padding-left : 21px;
271
            text-decoration : none;
272
        }
273
        &.article_request {
274
            background-image : url("../images/sprite.png"); /* Place hold small */
275
            background-position : -2px -26px;
276
            background-repeat: no-repeat;
277
            margin-right : 1em;
278
            padding-left : 21px;
279
            text-decoration : none;
280
        }
281
        &.addtocart {
282
            background-image : url("../images/sprite.png"); /* Cart small */
283
            background-position : -5px -572px;
284
            background-repeat: no-repeat;
285
            margin-right : 1em;
286
            padding-left : 20px;
287
            text-decoration : none;
288
        }
289
        &.addtoshelf {
290
            background-image : url("../images/sprite.png"); /* MARC view */
291
            background-position: -5px -27px;
292
            background-repeat: no-repeat;
293
            margin-right : 1em;
294
            padding-left : 20px;
295
            text-decoration : none;
296
        }
297
        &.addtolist {
298
            background-position: -5px -27px;
299
            margin-right : 1em;
300
            padding-left : 20px;
301
            text-decoration : none;
302
        }
303
        &.tag_add {
304
            background-position: -5px -1110px;
305
            margin-right : 1em;
306
            padding-left : 20px;
307
            text-decoration : none;
308
        }
309
        /* List contents remove from list link */
310
        &.removefromlist  {
311
            background-position : -8px -690px; /* Delete */
312
            margin-right : 1em;
313
            text-decoration : none;
314
            padding-left : 15px;
315
        }
316
    }
317
}
318
319
/* Override Bootstrap alert */
320
.alert {
321
    background: #fffbe5; /* Old browsers */
322
    background: -moz-linear-gradient(top,  #fffbe5 0%, #fff0b2 9%, #fff1a8 89%, #f7e665 100%); /* FF3.6+ */
323
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fffbe5), color-stop(9%,#fff0b2), color-stop(89%,#fff1a8), color-stop(100%,#f7e665)); /* Chrome,Safari4+ */
324
    background: -webkit-linear-gradient(top,  #fffbe5 0%,#fff0b2 9%,#fff1a8 89%,#f7e665 100%); /* Chrome10+,Safari5.1+ */
325
    background: -o-linear-gradient(top,  #fffbe5 0%,#fff0b2 9%,#fff1a8 89%,#f7e665 100%); /* Opera 11.10+ */
326
    background: -ms-linear-gradient(top,  #fffbe5 0%,#fff0b2 9%,#fff1a8 89%,#f7e665 100%); /* IE10+ */
327
    background: linear-gradient(to bottom,  #fffbe5 0%,#fff0b2 9%,#fff1a8 89%,#f7e665 100%); /* W3C */
328
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fffbe5', endColorstr='#f7e665',GradientType=0 ); /* IE6-9 */
329
    border-color : #D6C43B;
330
    color: #333;
331
}
332
333
/* Override Bootstrap alert.alert-info */
334
.alert-info {
335
    background: #f4f6fa; /* Old browsers */
336
    background: -moz-linear-gradient(top,  #f4f6fa 0%, #eaeef5 4%, #e8edf6 96%, #cddbf2 100%); /* FF3.6+ */
337
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f6fa), color-stop(4%,#eaeef5), color-stop(96%,#e8edf6), color-stop(100%,#cddbf2)); /* Chrome,Safari4+ */
338
    background: -webkit-linear-gradient(top,  #f4f6fa 0%,#eaeef5 4%,#e8edf6 96%,#cddbf2 100%); /* Chrome10+,Safari5.1+ */
339
    background: -o-linear-gradient(top,  #f4f6fa 0%,#eaeef5 4%,#e8edf6 96%,#cddbf2 100%); /* Opera 11.10+ */
340
    background: -ms-linear-gradient(top,  #f4f6fa 0%,#eaeef5 4%,#e8edf6 96%,#cddbf2 100%); /* IE10+ */
341
    background: linear-gradient(to bottom,  #f4f6fa 0%,#eaeef5 4%,#e8edf6 96%,#cddbf2 100%); /* W3C */
342
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f6fa', endColorstr='#cddbf2',GradientType=0 ); /* IE6-9 */
343
    border-color : #C5D1E5;
344
    color: #333;
345
}
346
347
/* Override Bootstrap alert.alert-success */
348
.alert-success {
349
    background: #f8ffe8; /* Old browsers */
350
    background: -moz-linear-gradient(top,  #f8ffe8 0%, #e3f5ab 4%, #dcf48d 98%, #9ebf28 100%); /* FF3.6+ */
351
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8ffe8), color-stop(4%,#e3f5ab), color-stop(98%,#dcf48d), color-stop(100%,#9ebf28)); /* Chrome,Safari4+ */
352
    background: -webkit-linear-gradient(top,  #f8ffe8 0%,#e3f5ab 4%,#dcf48d 98%,#9ebf28 100%); /* Chrome10+,Safari5.1+ */
353
    background: -o-linear-gradient(top,  #f8ffe8 0%,#e3f5ab 4%,#dcf48d 98%,#9ebf28 100%); /* Opera 11.10+ */
354
    background: -ms-linear-gradient(top,  #f8ffe8 0%,#e3f5ab 4%,#dcf48d 98%,#9ebf28 100%); /* IE10+ */
355
    background: linear-gradient(to bottom,  #f8ffe8 0%,#e3f5ab 4%,#dcf48d 98%,#9ebf28 100%); /* W3C */
356
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8ffe8', endColorstr='#9ebf28',GradientType=0 ); /* IE6-9 */
357
    border-color : #9FBA35;
358
    color: #333;
359
}
360
361
.breadcrumb {
362
    background-color: #F2F2EF;
363
    font-size: 85%;
364
    list-style: none outside none;
365
    margin: 10px 20px;
366
    padding: 5px 10px;
367
    .border-radius-all(7px);
368
}
369
370
.form-inline {
371
    display : inline;
372
    padding: 0;
373
    margin: 0;
374
    fieldset {
375
        margin: 0.3em 0;
376
        padding: 0.3em;
377
    }
378
}
379
380
.main {
381
    background-color: #FFF;
382
    border: 1px solid #D2D2CF;
383
    .border-radius-all(7px);
384
    .shadowed;
385
    margin-top : 0.5em;
386
    margin-bottom: 0.5em;
387
}
388
389
.mastheadsearch {
390
    .border-radius-all(7px);
391
    padding: .8em;
392
    margin: .5em 0;
393
    background: #c7c7c1;
394
    /* Old browsers */
395
    background: -moz-linear-gradient(top, #c7c7c1 38%, #a7a7a2 100%);
396
    /* FF3.6+ */
397
    background: -webkit-gradient(linear, left top, left bottom, color-stop(38%,#c7c7c1), color-stop(100%,#a7a7a2));
398
    /* Chrome,Safari4+ */
399
    background: -webkit-linear-gradient(top, #c7c7c1 38%,#a7a7a2 100%);
400
    /* Chrome10+,Safari5.1+ */
401
    background: -o-linear-gradient(top, #c7c7c1 38%,#a7a7a2 100%);
402
    /* Opera 11.10+ */
403
    background: -ms-linear-gradient(top, #c7c7c1 38%,#a7a7a2 100%);
404
    /* IE10+ */
405
    background: linear-gradient(to bottom, #c7c7c1 38%,#a7a7a2 100%);
406
    /* W3C */
407
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c7c7c1', endColorstr='#a7a7a2',GradientType=0 );
408
    /* IE6-9 */
409
    label {
410
        font-size: 115%;
411
        font-weight: bold;
412
    }
413
}
414
415
.navbar-inverse .brand, .navbar-inverse .nav > li > a {
416
    color: #9FE1FF;
417
    font-weight: bold;
418
}
419
420
.navbar-fixed-bottom.navbar-static-bottom {
421
    margin-top : .5em;
422
    position: static;
423
}
424
425
#changelanguage .nav > .active > p {
426
    padding : 0 15px;
427
}
428
429
.table-striped tbody > tr:nth-child(odd) > td,
430
.table-striped tbody > tr:nth-child(odd) > th {
431
  background-color: #F4F4F4;
432
}
433
434
435
/* jQuery UI standard tabs */
436
.ui-tabs-nav .ui-tabs-active a,
437
.ui-tabs-nav a:hover,
438
.ui-tabs-nav a:focus,
439
.ui-tabs-nav a:active,
440
.ui-tabs-nav span.a {
441
    background: none repeat scroll 0 0 transparent;
442
    outline: 0 none;
443
}
444
445
.ui-widget,
446
.ui-widget input,
447
.ui-widget select,
448
.ui-widget textarea,
449
.ui-widget button {
450
    font-family : inherit;
451
    font-size : inherit;
452
}
453
454
ul.ui-tabs-nav li {
455
    list-style : none;
456
}
457
.ui-tabs.ui-widget-content {
458
    background : transparent none;
459
    border : 0;
460
}
461
462
.ui-tabs .ui-tabs-panel {
463
    border : 1px solid #D8D8D8;
464
    margin-bottom: 1em;
465
}
466
.ui-tabs-nav.ui-widget-header {
467
    border : 0;
468
    background : none;
469
}
470
.ui-tabs .ui-tabs-nav li {
471
    background: #F3F3F3 none;
472
    border-color: #D8D8D8;
473
    margin-right : .4em;
474
}
475
476
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
477
    background-color : #FFF;
478
    border : 1px solid #D8D8D8;
479
    border-bottom: 0;
480
}
481
.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
482
    color : #000;
483
    font-weight : bold;
484
}
485
486
.ui-tabs .ui-tabs-nav li.ui-state-default.ui-state-hover {
487
    background : #F3F3F3 none;
488
}
489
490
.ui-tabs .ui-tabs-nav li.ui-tabs-active.ui-state-hover {
491
    background : #FFF none;
492
}
493
494
.ui-tabs .ui-state-default a,
495
.ui-tabs .ui-state-default a:link,
496
.ui-tabs .ui-state-default a:visited {
497
    color: #006699;
498
}
499
500
.ui-tabs .ui-state-hover a,
501
.ui-tabs .ui-state-hover a:link,
502
.ui-tabs .ui-state-hover a:visited {
503
    color: #990033;
504
}
505
506
.statictabs {
507
    ul {
508
        background: none repeat scroll 0 0 transparent;
509
        border: 0 none;
510
        margin: 0;
511
        padding: 0.2em 0.2em 0;
512
        border-bottom-right-radius: 4px;
513
        border-bottom-left-radius: 4px;
514
        border-top-right-radius: 4px;
515
        border-top-left-radius: 4px;
516
        color: #222222;
517
        font-weight: bold;
518
        font-size: 100%;
519
        line-height: 1.3;
520
        list-style: none outside none;
521
        outline: 0 none;
522
        text-decoration: none;
523
        &:before {
524
            content: "";
525
            display: table;
526
        }
527
        &:after {
528
            clear: both;
529
            content: "";
530
            display: table;
531
        }
532
    }
533
    li {
534
        background: none repeat scroll 0 0 #E6F0F2;
535
        border: 1px solid #B9D8D9;
536
        border-bottom: 0 none !important;
537
        border-top-right-radius: 4px;
538
        border-top-left-radius: 4px;
539
        float: left;
540
        list-style: none outside none;
541
        margin-bottom: 0;
542
        margin-right: 0.4em;
543
        padding: 0;
544
        position: relative;
545
        white-space: nowrap;
546
        top: 1px;
547
        color: #555555;
548
        font-weight: normal;
549
        &.active {
550
            background-color: #FFFFFF;
551
            color: #212121;
552
            font-weight: normal;
553
            padding-bottom: 1px;
554
        }
555
        a {
556
            color: #004D99;
557
            cursor: pointer;
558
            float: left;
559
            padding: 0.5em 1em;
560
            text-decoration: none;
561
            &:hover {
562
                background-color : #EDF4F5;
563
                border-top-right-radius: 4px;
564
                border-top-left-radius: 4px;
565
                color : #538200;
566
            }
567
        }
568
        &.active {
569
            a {
570
                color: #000000;
571
                font-weight: bold;
572
                cursor: text;
573
                background: none repeat scroll 0 0 transparent;
574
                outline: 0 none;
575
            }
576
        }
577
    }
578
    .tabs-container {
579
        border: 1px solid #B9D8D9;
580
        background: none repeat scroll 0 0 transparent;
581
        display: block;
582
        padding: 1em 1.4em;
583
        border-bottom-right-radius: 4px;
584
        border-bottom-left-radius: 4px;
585
        color: #222222;
586
    }
587
}
588
589
/* End jQueryUI tab styles */
590
591
/* jQuery UI Datepicker */
592
.ui-datepicker table {width: 100%; font-size: .9em; border : 0; border-collapse: collapse; margin:0 0 .4em; }
593
.ui-datepicker th { background : transparent none; padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
594
595
.ui-datepicker-trigger {
596
    vertical-align: middle;
597
    margin : 0 3px;
598
}
599
.ui-datepicker {
600
    .shadowed;
601
}
602
/* End jQueryUI datepicker styles */
603
604
605
/* jQueryUI Core */
606
607
.ui-widget-content {
608
    border: 1px solid #AAA;
609
    background: #ffffff none;
610
    color: #222222;
611
}
612
.ui-widget-header {
613
    border: 1px solid #AAA;
614
    background: #E6F0F2 none;
615
    color: #222222;
616
    font-weight: bold;
617
}
618
.ui-state-default,
619
.ui-widget-content .ui-state-default,
620
.ui-widget-header .ui-state-default {
621
    border: 1px solid #AAA;
622
    background: #F4F8F9 none;
623
    font-weight: normal;
624
    color: #555555;
625
}
626
.ui-state-hover,
627
.ui-widget-content .ui-state-hover,
628
.ui-widget-header .ui-state-hover,
629
.ui-state-focus,
630
.ui-widget-content .ui-state-focus,
631
.ui-widget-header .ui-state-focus {
632
    border: 1px solid #AAA;
633
    background: #E6F0F2 none;
634
    font-weight: normal;
635
    color: #212121;
636
}
637
.ui-state-active,
638
.ui-widget-content .ui-state-active,
639
.ui-widget-header .ui-state-active {
640
    border: 1px solid #aaaaaa;
641
    background: #ffffff none;
642
    font-weight: normal;
643
    color: #212121;
644
}
645
.ui-state-highlight,
646
.ui-widget-content .ui-state-highlight,
647
.ui-widget-header .ui-state-highlight  {border: 1px solid #fcefa1;
648
    background: #fbf9ee;
649
    color: #363636;
650
}
651
.ui-state-error,
652
.ui-widget-content .ui-state-error,
653
.ui-widget-header .ui-state-error {border: 1px solid #cd0a0a;
654
    background: #fef1ec;
655
    color: #cd0a0a;
656
}
657
658
/* end jQueryUI core */
659
660
/* jQueryUI autocomplete */
661
662
.ui-autocomplete {
663
    position: absolute;
664
    cursor: default;
665
    .shadowed;
666
}
667
.ui-autocomplete.ui-widget-content .ui-state-hover {
668
    border: 1px solid #AAA;
669
    background: #E6F0F2 none;
670
    font-weight: normal;
671
    color: #212121;
672
}
673
.ui-autocomplete-loading {
674
    background: #FFF url("../../img/loading-small.gif") right center no-repeat;
675
}
676
.ui-menu li {
677
    list-style:none;
678
}
679
680
/* end jQueryUI autocomplete */
681
682
683
684
th {
685
    background-color: #ECEDE6;
686
}
687
688
.item-thumbnail {
689
    max-width: none;
690
}
691
692
.no-image {
693
    background-color : #FFF;
694
    border: 1px solid #AAA;
695
    color : #979797;
696
    display:block;
697
    font-size : 86%;
698
    font-weight : bold;
699
    text-align : center;
700
    width : 75px;
701
    .border-radius-all(3px);
702
}
703
704
#bookcover .no-image {
705
    margin-right : 10px;
706
    margin-bottom : 10px;
707
}
708
709
td.overdue {
710
    color : #cc3333;
711
}
712
table {
713
    font-size: 90%;
714
}
715
th.sum {
716
    text-align: right;
717
}
718
719
td.sum {
720
    background-color: #FFC;
721
    font-weight: bold;
722
}
723
724
th[scope=row] {
725
    background-color: transparent;
726
    text-align : right;
727
}
728
729
.required {
730
    color : #C00;
731
}
732
733
.label {
734
    background-color: transparent;
735
    color: inherit;
736
    display: inline;
737
    font-weight: normal;
738
    padding : 0;
739
    text-shadow: none;
740
}
741
742
.blabel {
743
    background-color: #999999;
744
    border-radius: 3px;
745
    color: #ffffff;
746
    display: inline-block;
747
    font-weight: bold;
748
    padding: 2px 4px;
749
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
750
}
751
752
.label-important {
753
  background-color: #b94a48;
754
}
755
.label-warning {
756
  background-color: #f89406;
757
}
758
.label-success {
759
  background-color: #468847;
760
}
761
.label-info {
762
  background-color: #3a87ad;
763
}
764
.label-inverse {
765
  background-color: #333333;
766
}
767
768
fieldset {
769
    &.rows {
770
        float : left;
771
        font-size : 90%;
772
        clear : left;
773
        margin: .9em 0 0 0;
774
        padding: 0;
775
        width: 100%;
776
        legend {
777
            font-weight: bold;
778
            font-size : 130%;
779
        }
780
        label,
781
        .label {
782
            float: left;
783
            font-weight : bold;
784
            width: 9em;
785
            margin-right: 1em;
786
            text-align: right;
787
        }
788
        label {
789
            &.lradio {
790
                float: none;
791
                margin: inherit;
792
                width: auto;
793
            }
794
        }
795
        fieldset {
796
            margin : 0;
797
            padding : .3em;
798
        }
799
        ol {
800
            padding: 1em 1em 0 1em;
801
            list-style-type: none;
802
            &.lradio {
803
                label {
804
                    width : auto;
805
                    float : none;
806
                    margin-right : 0;
807
                    &.lradio {
808
                        float : left;
809
                        width : 12em;
810
                        margin-right : 1em;
811
                    }
812
                }
813
            }
814
        }
815
        li {
816
            float : left;
817
            clear : left;
818
            padding-bottom: 1em;
819
            list-style-type: none;
820
            width: 100%;
821
            &.lradio {
822
                padding-left: 8.5em;
823
                width : auto;
824
                label {
825
                    float : none;
826
                    width : auto;
827
                    margin : 0 0 0 1em;
828
                }
829
            }
830
        }
831
        .hint {
832
            display: block;
833
            margin-left : 11em;
834
        }
835
    }
836
    &.action {
837
        clear : both;
838
        float : none;
839
        border : none;
840
        margin : 0;
841
        padding : 1em 0 .3em 0;
842
        width : auto;
843
        p {
844
            margin-bottom : 1em;
845
        }
846
    }
847
    table {
848
        font-size: 100%;
849
    }
850
}
851
852
div.rows+div.rows {
853
    margin-top : .6em;
854
}
855
856
div.rows {
857
    float : left;
858
    clear : left;
859
    margin: 0 0 0 0;
860
    padding: 0;
861
    width: 100%;
862
    span.label {
863
        float: left;
864
        font-weight : bold;
865
        width: 9em;
866
        margin-right: 1em;
867
        text-align: left;
868
    }
869
    ol {
870
        list-style-type: none;
871
        margin-left : 0;
872
        padding: .5em 1em 0 0;
873
    }
874
    li {
875
        border-bottom :  1px solid #EEE;
876
        float : left;
877
        clear : left;
878
        padding-bottom: .2em;
879
        padding-top: .1em;
880
        list-style-type: none;
881
        width: 100%;
882
    }
883
    ul {
884
        li {
885
            margin-left : 7.3em;
886
            &:first-child {
887
                float: none;
888
                clear: none;
889
                margin-left: 0;
890
            }
891
        }
892
    }
893
    ol li li {
894
        border-bottom: 0;
895
    }
896
}
897
898
/* different sizes for different tags in opac-tags.tt */
899
.tagweight0 {
900
    font-size: 12px;
901
}
902
903
.tagweight1 {
904
    font-size: 14px;
905
}
906
907
.tagweight2 {
908
    font-size: 16px;
909
}
910
911
.tagweight3 {
912
    font-size: 18px;
913
}
914
915
.tagweight4 {
916
    font-size: 20px;
917
}
918
919
.tagweight5 {
920
    font-size: 22px;
921
}
922
923
.tagweight6 {
924
    font-size: 24px;
925
}
926
927
.tagweight7 {
928
    font-size: 26px;
929
}
930
931
.tagweight8 {
932
    font-size: 28px;
933
}
934
935
.tagweight9 {
936
    font-size: 30px;
937
}
938
939
.toolbar {
940
    background-color : #EEEEEE;
941
    border : 1px solid #E8E8E8;
942
    font-size : 85%;
943
    padding:3px 3px 5px 5px;
944
    vertical-align : middle;
945
    a {
946
        white-space: nowrap;
947
    }
948
    label {
949
        display: inline;
950
        font-size: 100%;
951
        font-weight : bold;
952
        margin-left : .5em;
953
    }
954
    select {
955
        font-size: 97%;
956
        height: auto;
957
        line-height: inherit;
958
        padding: 0;
959
        margin: 0;
960
        width : auto;
961
        white-space: nowrap;
962
    }
963
    .hold,
964
    #tagsel_tag {
965
        padding-left: 28px;
966
        font-size: 97%;
967
        font-weight: bold;
968
    }
969
    #tagsel_form {
970
        margin-top : .5em;
971
    }
972
    li {
973
        display : inline;
974
        list-style : none;
975
        a {
976
            border-left : 1px solid #e8e8e8;
977
        }
978
        &:first-child {
979
            a {
980
                border-left : 0;
981
            }
982
        }
983
    }
984
    ul {
985
        padding-left : 0;
986
    }
987
}
988
989
#basket .toolbar {
990
    padding: 7px 5px 9px 9px;
991
}
992
993
#selections-toolbar,
994
.selections-toolbar {
995
    background: -moz-linear-gradient(top, #b2b2b2 0%, #e0e0e0 14%, #e8e8e8 100%); /* FF3.6+ */
996
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b2b2b2), color-stop(14%,#e0e0e0), color-stop(100%,#e8e8e8)); /* Chrome,Safari4+ */
997
    background: -webkit-linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* Chrome10+,Safari5.1+ */
998
    background: -o-linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* Opera 11.10+ */
999
    background: -ms-linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* IE10+ */
1000
    background: linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* W3C */
1001
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e0e0', endColorstr='#e8e8e8',GradientType=0 ); /* IE6-9 */
1002
    margin : 0 0 1em 0;
1003
    padding-top : .5em;
1004
    padding-left : 10px;
1005
}
1006
1007
.list-actions {
1008
    display : inline;
1009
}
1010
1011
#tagsel_span input.submit,
1012
#tagsel_tag {
1013
    border : 0;
1014
    background-color: transparent;
1015
    font-size : 100%;
1016
    color: #0076B2;
1017
    cursor : pointer;
1018
    background-image : url("../images/sprite.png"); /* Tags */
1019
    background-position : 1px -643px;
1020
    background-repeat : no-repeat;
1021
    padding-left : 25px;
1022
    text-decoration: none;
1023
}
1024
1025
#tagsel_tag.disabled {
1026
    background-position : -1px -667px;
1027
}
1028
1029
1030
#tagsel_span input:hover,
1031
#selections-toolbar input.hold:hover {
1032
    color: #005580;
1033
    text-decoration: underline;
1034
}
1035
1036
#tagsel_span input.disabled,
1037
#tagsel_span input.disabled:hover,
1038
#tagsel_span input.hold.disabled,
1039
#tagsel_span input.hold.disabled:hover,
1040
#selections-toolbar input.hold.disabled,
1041
#selections-toolbar input.hold.disabled:hover,
1042
#selections-toolbar a.disabled,
1043
#selections-toolbar a.disabled:hover,
1044
.selections-toolbar a.disabled,
1045
.selections-toolbar a.disabled:hover {
1046
    color: #888888;
1047
    text-decoration: none;
1048
    padding-left : 23px;
1049
}
1050
1051
.results_summary {
1052
    display: block;
1053
    font-size : 85%;
1054
    color: #707070;
1055
    padding : 0 0 .5em 0;
1056
    .results_summary {
1057
        font-size : 100%;
1058
    }
1059
    &.actions {
1060
        margin-top : .5em;
1061
    }
1062
    &.tagstatus {
1063
        display: inline;
1064
    }
1065
    .label {
1066
        color: #202020;
1067
    }
1068
    a {
1069
        font-weight: normal;
1070
    }
1071
}
1072
1073
#views {
1074
    margin-bottom : .5em;
1075
    padding : 0 2em 0.2em 0.2em;
1076
}
1077
1078
.view {
1079
    background-color : #F3F3F3;
1080
    border: 1px solid #C9C9C9;
1081
    border-radius: 4px;
1082
    display: inline-block;
1083
    padding: 0.2em 0.5em;
1084
    white-space: nowrap;
1085
}
1086
1087
#bibliodescriptions,
1088
#isbdcontents {
1089
    clear : left;
1090
    margin-top : .5em;
1091
}
1092
1093
.view {
1094
    a,
1095
    span {
1096
        background-image: url("../images/sprite.png");
1097
        background-repeat : no-repeat;
1098
        font-size : 87%;
1099
        padding-left: 15px;
1100
        text-decoration: none;
1101
    }
1102
}
1103
1104
.view {
1105
    a {
1106
        font-weight : normal;
1107
    }
1108
}
1109
1110
.current-view {
1111
    background-color: #fff;
1112
    font-weight: bold;
1113
}
1114
1115
#MARCview {
1116
    background-position: -9px -27px;
1117
}
1118
#ISBDview {
1119
    background-position: -10px -56px;
1120
}
1121
#Normalview {
1122
    background-position: -8px 3px;
1123
}
1124
1125
#bookcover {
1126
    float : left;
1127
    margin : 0;
1128
    padding : 0;
1129
    .no-image {
1130
        margin-right : 10px;
1131
        margin-bottom : 10px;
1132
    }
1133
    img {
1134
        margin : 0 1em 1em 0;
1135
    }
1136
}
1137
1138
/* pagination */
1139
.results-pagination {
1140
    position: absolute;
1141
    top:32px;
1142
    left: -1px;
1143
    width: 100%;
1144
    height:auto;
1145
    border: 1px solid #D0D0D0;
1146
    display: none;
1147
    background-color:#F3F3F3;
1148
    padding-bottom:10px;
1149
    z-index: 100;
1150
}
1151
1152
1153
.back {
1154
    float:right;
1155
    input {
1156
        background:none!important;
1157
        color:#999!important;
1158
    }
1159
}
1160
1161
.pagination_list {
1162
    ul {
1163
        padding-top: 40px;
1164
        padding-left:0px;
1165
    }
1166
    li {
1167
        list-style:none;
1168
        float:bottom;
1169
        padding:4px;
1170
        color:#999;
1171
        &.highlight {
1172
           background-color : #F3F3F3;
1173
           border-top : 1px solid #DDDDDD;
1174
           border-bottom : 1px solid #DDDDDD;
1175
        }
1176
        a {
1177
            padding-left:0px;
1178
        }
1179
    }
1180
    .li_pag_index {
1181
        color: #999999;
1182
        float: left;
1183
        font-size: 15px;
1184
        font-weight: bold;
1185
        padding-right: 10px;
1186
        text-align: right;
1187
        width: 13px;
1188
    }
1189
}
1190
1191
.nav_results {
1192
    background-color: #F3F3F3;
1193
    border: 1px solid #D0D0D0;
1194
    font-size: 95%;
1195
    font-weight: bold;
1196
    margin-top: 0.5em;
1197
    position:relative;
1198
    .l_Results {
1199
        a {
1200
            background:#E1E1E1 url("../images/sprite.png") no-repeat 0px -504px; /* Browse results menu */
1201
            color:#006699;
1202
            display:block;
1203
            padding:8px 28px;
1204
            text-decoration:none;
1205
        }
1206
        &:hover {
1207
            background-color:#D9D9D9;
1208
        }
1209
    }
1210
}
1211
1212
.pg_menu {
1213
    margin: 0;
1214
    border-top: 1px solid #D0D0D0;
1215
    white-space : nowrap;
1216
    li {
1217
        color:#B2B2B2;
1218
        display:inline;
1219
        list-style:none;
1220
        margin: 0;
1221
        &.back_results {
1222
            a {
1223
                border-left: 1px solid #D0D0D0;
1224
                border-right: 1px solid #D0D0D0;
1225
            }
1226
        }
1227
        a,
1228
        span {
1229
            background-color: #F3F3F3;
1230
            display : block;
1231
            float:left;
1232
            padding:.4em .5em;
1233
            text-decoration:none;
1234
            font-weight:normal;
1235
            text-align:center;
1236
        }
1237
        span {
1238
            color : #B2B2B2;
1239
        }
1240
    }
1241
}
1242
1243
#listResults{
1244
    li {
1245
        background-color:#999999;
1246
        color:#C5C5C5;
1247
        font-weight:normal;
1248
        display:block;
1249
        margin-right:1px;
1250
        font-size: 80%;
1251
        padding: 0;
1252
        text-align:center;
1253
        min-width:18px;
1254
        &:hover {
1255
            background-color:#006699;
1256
        }
1257
        a {
1258
            color:#FFFFFF;
1259
            font-weight:normal;
1260
        }
1261
    }
1262
}
1263
1264
/* nav */
1265
.nav_pages {
1266
    .close_pagination {
1267
        padding-right: 10px;
1268
        position: absolute;
1269
        right: 3px;
1270
        top: -25px;
1271
    }
1272
    .close_pagination a {
1273
        text-decoration:none!important;
1274
    }
1275
    ul {
1276
        padding-top: 10px;
1277
    }
1278
    li {
1279
        list-style:none;
1280
        float:left;
1281
        padding:4px;
1282
        color:#999;
1283
        a {
1284
            text-decoration:none!important;
1285
            &:hover {
1286
            text-decoration:underline;
1287
            }
1288
        }
1289
        ul {
1290
            float:left;
1291
        }
1292
    }
1293
}
1294
1295
/* action buttons */
1296
#action {
1297
    margin : .5em 0 0 0;
1298
    background-color : #F3F3F3;
1299
    border : 1px solid #E8E8E8;
1300
    padding-bottom : 3px;
1301
    li {
1302
        list-style : none;
1303
        margin : .2em;
1304
        padding : .3em 0;
1305
    }
1306
    a {
1307
        font-weight: bold;
1308
        text-decoration : none;
1309
    }
1310
}
1311
1312
#export,
1313
#moresearches_menu {
1314
    li {
1315
        padding : 0;
1316
        margin : 0;
1317
        a {
1318
            font-weight: normal;
1319
            &.menu-inactive {
1320
                font-weight: bold;
1321
            }
1322
        }
1323
    }
1324
}
1325
1326
#format,
1327
#furthersearches {
1328
    padding-left : 35px;
1329
}
1330
.highlight_controls {
1331
    float: left;
1332
}
1333
a.addtocart,
1334
a.addtoshelf,
1335
a.brief,
1336
a.deleteshelf,
1337
a.deleteshelf.disabled,
1338
a.detail,
1339
a.download,
1340
a.editshelf,
1341
a.empty,
1342
a.hide,
1343
a.highlight_toggle,
1344
a.hold,
1345
a.hold.disabled,
1346
a.incart,
1347
a.new,
1348
a.print-small,
1349
a.print-large,
1350
a.removeitems,
1351
a.removeitems.disabled,
1352
a.reserve,
1353
a.article_request,
1354
a.send,
1355
a.tag_add,
1356
a.removefromlist,
1357
input.hold,
1358
input.hold.disabled,
1359
input.editshelf,
1360
.newshelf,
1361
.newshelf.disabled,
1362
.deleteshelf {
1363
    background-image: url("../images/sprite.png");
1364
    background-repeat: no-repeat;
1365
}
1366
1367
1368
a.addtocart {
1369
    background-position: -5px -265px; /* Cart */
1370
    padding-left : 35px;
1371
}
1372
1373
a.addtoshelf {
1374
    background-position: -5px -225px; /* Virtual shelf */
1375
    padding-left : 35px;
1376
}
1377
1378
a.brief {
1379
1380
    background-position : -2px -868px; /* Zoom out */
1381
    text-decoration : none;
1382
    padding-left : 27px;
1383
}
1384
1385
a.cartRemove {
1386
    color: #cc3333;
1387
    font-size : 90%;
1388
    margin : 0;
1389
    padding: 0;
1390
}
1391
1392
a.detail {
1393
    background-position : -2px -898px; /* Zoom in */
1394
    text-decoration : none;
1395
    padding-left : 27px;
1396
}
1397
1398
a.download {
1399
    background-position : -5px -348px; /* Download */
1400
    padding-left : 20px;
1401
    text-decoration : none;
1402
}
1403
1404
a.editshelf {
1405
    background-position : 2px -348px; /* List edit */
1406
    padding-left : 26px;
1407
    text-decoration : none;
1408
}
1409
1410
a.empty {
1411
    background-position : 2px -598px; /* Trash */
1412
    text-decoration : none;
1413
    padding-left : 30px;
1414
}
1415
1416
a.hide {
1417
    background-position: -3px -814px; /* Close */
1418
    text-decoration : none;
1419
    padding-left : 26px;
1420
}
1421
1422
a.highlight_toggle {
1423
    background-position: -5px -841px; /* Highlight */
1424
    display: none;
1425
    padding-left : 35px;
1426
}
1427
1428
a.hold,
1429
input.hold {
1430
    background-position : -2px -453px; /* Toolbar place hold */
1431
    text-decoration : none;
1432
    padding-left : 23px;
1433
}
1434
1435
a.hold.disabled,
1436
input.hold.disabled {
1437
    background-position : -5px -621px; /* Place hold disabled */
1438
}
1439
1440
a.incart {
1441
    background-position: -5px -265px; /* Cart */
1442
    color : #666;
1443
    padding-left : 35px;
1444
}
1445
1446
a.new {
1447
    background-image : url("../images/sprite.png"); /* New */
1448
    background-position : -4px -922px;
1449
    padding-left : 23px;
1450
    text-decoration : none;
1451
}
1452
1453
a.print-small {
1454
    background-position : 0px -423px; /* Toolbar print */
1455
    text-decoration : none;
1456
    padding-left : 30px;
1457
}
1458
1459
a.print-large {
1460
    background-position : -5px -186px; /* Toolbar print */
1461
    text-decoration : none;
1462
    padding-left : 35px;
1463
}
1464
1465
a.removeitems,
1466
a.deleteshelf {
1467
    background-position : 2px -690px; /* Delete */
1468
    text-decoration : none;
1469
    padding-left : 25px;
1470
}
1471
1472
a.removeitems.disabled,
1473
a.deleteshelf.disabled {
1474
    background-position : 2px -712px; /* Delete disabled */
1475
}
1476
1477
a.reserve {
1478
    background-position: -6px -144px; /* Place hold */
1479
    padding-left : 35px;
1480
}
1481
1482
a.article_request {
1483
    background-position: 0px -24px; /* Place article request */
1484
    padding-left : 35px;
1485
}
1486
1487
a.send {
1488
    background-position : 2px -386px; /* Email */
1489
    text-decoration : none;
1490
    padding-left : 28px;
1491
}
1492
1493
a.tag_add {
1494
    background-position: 3px -1111px; /* Tag results */
1495
    padding-left : 27px;
1496
    text-decoration: none;
1497
}
1498
1499
input.hold {
1500
    background-color: transparent;
1501
    border : 0;
1502
    color: #0076B2;
1503
    font-weight: bold;
1504
}
1505
1506
input.editshelf {
1507
    background-color: transparent;
1508
    background-position : 2px -736px; /* List edit */
1509
    border : 0;
1510
    color : #006699;
1511
    cursor : pointer;
1512
    filter: none;
1513
    font-size : 100%;
1514
    padding-left : 29px;
1515
    text-decoration : none;
1516
}
1517
1518
.newshelf {
1519
    background-position: 2px -764px; /* List new */
1520
    border : 0;
1521
    color : #006699;
1522
    cursor : pointer;
1523
    filter: none;
1524
    font-size : 100%;
1525
    padding-left : 28px;
1526
    text-decoration : none;
1527
}
1528
1529
.newshelf.disabled {
1530
    background-position: -4px -791px; /* List new disabled */
1531
}
1532
1533
.deleteshelf {
1534
    background-color: transparent;
1535
    background-position : 2px -690px; /* Delete */
1536
    border : 0;
1537
    color : #006699;
1538
    cursor : pointer;
1539
    filter: none;
1540
    font-size : 100%;
1541
    padding-left : 25px;
1542
    text-decoration : none;
1543
}
1544
1545
.links a {
1546
    font-weight : bold;
1547
}
1548
1549
.deleteshelf:hover {
1550
    color: #990033;
1551
}
1552
1553
1554
.editshelf:active,
1555
.deleteshelf:active {
1556
    border : 0;
1557
}
1558
1559
#tagslist li { display : inline; }
1560
1561
#login4tags {
1562
    background-image: url("../images/sprite.png"); /* Tag results disabled */
1563
    background-position: -6px -1130px;
1564
    background-repeat: no-repeat;
1565
    padding-left : 20px;
1566
    text-decoration: none;
1567
}
1568
1569
.tag_results_input {
1570
    margin-left: 1em;
1571
    padding: 0.3em;
1572
    font-size: 12px;
1573
    input[type="text"] {
1574
        font-size: inherit;
1575
        margin : 0;
1576
        padding : 0;
1577
    }
1578
    label {
1579
        display : inline;
1580
    }
1581
}
1582
1583
.tagsinput {
1584
    input[type="text"] {
1585
        font-size: inherit;
1586
        margin : 0;
1587
        padding : 0;
1588
    }
1589
    label {
1590
        display : inline;
1591
    }
1592
}
1593
1594
.branch-info-tooltip {
1595
    display: none;
1596
}
1597
1598
.ui-tooltip-content p {
1599
        margin: 0.3em 0;
1600
}
1601
1602
#social_networks {
1603
    a {
1604
        background: transparent url("../images/social-sprite.png") no-repeat;
1605
        display: block;
1606
        height : 20px !important;
1607
        width : 20px;
1608
        text-indent : -999em;
1609
    }
1610
    span {
1611
        color: #274D7F;
1612
        display : block;
1613
        float : left;
1614
        font-size: 85%;
1615
        font-weight: bold;
1616
        line-height: 2em;
1617
        margin : .5em 0 .5em .5em !important;
1618
    }
1619
    div {
1620
        float : left !important;
1621
        margin : .5em 0 .5em .2em !important;
1622
    }
1623
    #facebook {
1624
        background-position : -7px -35px;
1625
    }
1626
    #twitter {
1627
        background-position : -7px -5px;
1628
    }
1629
    #linkedin {
1630
        background-position : -7px -95px;
1631
    }
1632
    #delicious {
1633
        background-position : -7px -66px;
1634
    }
1635
    #email {
1636
        background-position : -7px -126px;
1637
    }
1638
}
1639
1640
#marc {
1641
    td,
1642
    th {
1643
        background-color : transparent;
1644
        border : 0;
1645
        padding: 3px 5px;
1646
        text-align : left;
1647
    }
1648
    td:first-child {
1649
        text-indent : 2em;
1650
    }
1651
    p {
1652
        padding-bottom: .6em;
1653
        .label {
1654
            font-weight : bold;
1655
        }
1656
    }
1657
    ul {
1658
        padding-bottom: .6em;
1659
    }
1660
    .results_summary {
1661
        clear :  left;
1662
        ul {
1663
            display : inline;
1664
            float :  none;
1665
            clear :  none;
1666
            margin: 0;
1667
            padding: 0;
1668
            list-style : none;
1669
        }
1670
        li {
1671
            display: inline;
1672
        }
1673
    }
1674
}
1675
1676
#items,
1677
#items td
1678
#items th {
1679
    border : 1px solid #EEE;
1680
    font-size : 90%;
1681
}
1682
1683
#plainmarc table { border: 0; margin: .7em 0 0 0; font-family: monospace; font-size: 95%; }
1684
#plainmarc th { background-color : #FFF; border: 0; white-space: nowrap; text-align:left; vertical-align: top; padding: 2px; }
1685
#plainmarc td { border: 0; padding : 2px; vertical-align: top; }
1686
1687
#renewcontrols {
1688
     float: right;
1689
     font-size: 66%;
1690
}
1691
1692
#renewcontrols a {
1693
    background-repeat : no-repeat;
1694
    text-decoration:none;
1695
    padding : .1em .4em;
1696
    padding-left : 18px;
1697
}
1698
1699
#renewselected_link {
1700
    background-image : url("../images/sprite.png");
1701
    background-position : -5px -986px;
1702
    background-repeat: no-repeat;
1703
}
1704
1705
#renewall_link {
1706
    background-image : url("../images/sprite.png");
1707
    background-position : -8px -967px;
1708
    background-repeat: no-repeat;
1709
}
1710
1711
.authref {
1712
    text-indent: 2em;
1713
}
1714
1715
.authref .label {
1716
    font-style: italic;
1717
}
1718
1719
.authstanza {
1720
    margin-top: 1em;
1721
}
1722
1723
.authstanzaheading {
1724
    font-weight: bold;
1725
}
1726
.authorizedheading {
1727
    font-weight: bold;
1728
}
1729
.authstanza li {
1730
    margin-left: 0.5em;
1731
}
1732
.authres_notes, .authres_seealso, .authres_otherscript {
1733
  padding-top: .5em;
1734
}
1735
.authres_notes {
1736
  font-style: italic;
1737
}
1738
1739
#didyoumean {
1740
    background-color: #EEE;
1741
    border: 1px solid #E8E8E8;
1742
    box-sizing: border-box;
1743
    margin: .5em 1.5em;
1744
    text-align: left;
1745
    padding: 0.5em;
1746
    .border-radius-all(3px);
1747
1748
    &.dym-loaded {
1749
        border-color: #F4ECBE;
1750
        background-color: #FFFBEA;
1751
    }
1752
}
1753
1754
.suggestionlabel {
1755
    font-weight: bold;
1756
}
1757
1758
.searchsuggestion {
1759
    padding: 0.2em 0.5em;
1760
    display: inline-block;
1761
}
1762
1763
.authlink {
1764
    padding-left: 0.25em;
1765
}
1766
#hierarchies a {
1767
    font-weight: normal;
1768
    text-decoration: underline;
1769
    color: #069;
1770
}
1771
1772
#hierarchies a:hover {
1773
    color: #990033;
1774
}
1775
1776
#top-pages {
1777
    margin: 0 0 0.5em;
1778
}
1779
.dropdown-menu > li > a {
1780
    font-size: 90%;
1781
}
1782
a.listmenulink:link,
1783
a.listmenulink:visited {
1784
    color : #0076B2;
1785
    font-weight: bold;
1786
}
1787
a.listmenulink:hover,
1788
a.listmenulink:active {
1789
    color : #FFF;
1790
    font-weight: bold;
1791
}
1792
#cartDetails,
1793
#cartUpdate,
1794
#holdDetails,
1795
#listsDetails {
1796
    background-color : #FFF;
1797
//    border: 1px solid #739acf;
1798
    border: 1px solid rgba(0, 0, 0, 0.2);
1799
    border-radius: 6px 6px 6px 6px;
1800
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
1801
    color : black;
1802
    display : none;
1803
    font-size: 90%;
1804
    margin : 0;
1805
    padding : 8px 20px;
1806
    text-align : center;
1807
    width : 180px;
1808
    z-index: 2;
1809
}
1810
#cartmenulink {
1811
    white-space: nowrap;
1812
}
1813
1814
#search-facets,
1815
#menu {
1816
    border : 1px solid #D2D2CF;
1817
    .border-radius-all(7px);
1818
    ul {
1819
       margin : 0;
1820
        padding : .3em;
1821
    }
1822
    form {
1823
       margin : 0;
1824
    }
1825
    h4 {
1826
        font-size : 90%;
1827
        margin : 0 0 .6em 0;
1828
        text-align : center;
1829
        a {
1830
            background-color : #F2F2EF;
1831
            border-radius: 8px 8px 0 0;
1832
            border-bottom : 1px solid #D8D8D8;
1833
            display: block;
1834
            font-weight: bold;
1835
            padding : .7em .2em;
1836
            text-decoration: none;
1837
        }
1838
    }
1839
    li {
1840
        font-size: 90%;
1841
        font-weight : bold;
1842
        list-style-type : none;
1843
        li {
1844
            font-weight : normal;
1845
            font-size : 95%;
1846
            line-height: 125%;
1847
            margin-bottom : 2px;
1848
            padding : .1em .2em;
1849
        }
1850
        &.showmore {
1851
            a {
1852
                font-weight : bold;
1853
                text-indent : 1em;
1854
            }
1855
        }
1856
    }
1857
    a {
1858
        font-weight : normal;
1859
        text-decoration: underline;
1860
    }
1861
    .facet-count {
1862
        display: inline-block;
1863
    }
1864
1865
}
1866
1867
#menu {
1868
    font-size : 94%;
1869
    li {
1870
        list-style-type : none;
1871
        a {
1872
            background: #eeeeee;
1873
            text-decoration : none;
1874
            display : block;
1875
            border : 1px solid #D8D8D8;
1876
            border-radius: 5px 0 0 5px;
1877
            border-bottom-color:  #999;
1878
            font-size : 111%;
1879
            padding : .4em .6em;
1880
            margin : .4em 0;
1881
            margin-right: -1px;
1882
            &:hover {
1883
                background: #eaeef5;
1884
            }
1885
        }
1886
        &.active {
1887
            a {
1888
                background-color : #FFF;
1889
                background-image : none;
1890
                border-right-width: 0;
1891
                font-weight : bold;
1892
                &:hover {
1893
                    background-color : #fff;
1894
                }
1895
            }
1896
        }
1897
    }
1898
    h4 {
1899
        display: none;
1900
    }
1901
}
1902
1903
#addto {
1904
    max-width : 10em;
1905
}
1906
1907
/* Search results add to cart (lists disabled) */
1908
.addto a.addtocart {
1909
    background-image: url("../images/sprite.png"); /* Cart */
1910
    background-position: -5px -266px;
1911
    background-repeat: no-repeat;
1912
    text-decoration : none;
1913
    padding-left : 33px;
1914
}
1915
1916
.searchresults {
1917
    p {
1918
        margin: 0;
1919
        padding: 0 0 .6em 0;
1920
        &.details {
1921
           color : #979797;
1922
        }
1923
    }
1924
    a {
1925
        &.highlight_toggle {
1926
            background-image: url("../images/sprite.png"); /* Highlight */
1927
            background-position: -11px -841px;
1928
            background-repeat: no-repeat;
1929
            display: none;
1930
            font-weight: normal;
1931
            padding : 0 10px 0 21px;
1932
        }
1933
    }
1934
    .commentline {
1935
        background-color : rgb(255, 255, 204);
1936
        background-color : rgba(255, 255, 204, 0.4);
1937
        border : 1px solid #CCC;
1938
        display: inline-block;
1939
        .border-radius-all(3px);
1940
        .shadowed;
1941
        margin : .3em;
1942
        padding : .4em;
1943
    }
1944
    .commentline.yours {
1945
        background-color : rgb(239, 254, 213);
1946
        background-color : rgba(239, 254, 213, 0.4);
1947
    }
1948
}
1949
1950
.commentline .avatar {
1951
    float : right;
1952
    padding-left : .5em;
1953
}
1954
1955
/* style for search terms in catalogsearch */
1956
.term {
1957
    /* color : blue; */
1958
    color : #990000;
1959
    background-color : #FFFFCC;
1960
}
1961
1962
/* style for shelving location in catalogsearch */
1963
.shelvingloc {
1964
    display : block;
1965
    font-style : italic;
1966
}
1967
#CheckAll,
1968
#CheckNone,
1969
.CheckAll,
1970
.CheckNone {
1971
    font-weight : normal;
1972
    margin : 0 .5em;
1973
    text-decoration: underline;
1974
}
1975
1976
span.sep {
1977
    color: #888;
1978
    padding: 0 .2em 0 .5em;
1979
    text-shadow: 1px 1px 0 #FFF;
1980
}
1981
1982
/* style for PM-generated pagination bar */
1983
.pages {
1984
    margin: 20px 0;
1985
}
1986
.pages span:first-child,
1987
.pages a:first-child {
1988
    border-width: 1px 1px 1px 1px;
1989
    border-bottom-left-radius: 3px;
1990
    border-top-left-radius: 3px;
1991
}
1992
1993
.pages span:last-child,
1994
.pages a:last-child {
1995
    border-width: 1px 1px 1px 0;
1996
    border-bottom-right-radius: 3px;
1997
    border-top-right-radius: 3px;
1998
}
1999
2000
.pages .inactive,
2001
.pages .currentPage,
2002
.pages a {
2003
    -moz-border-bottom-colors: none;
2004
    -moz-border-left-colors: none;
2005
    -moz-border-right-colors: none;
2006
    -moz-border-top-colors: none;
2007
    background-color: #FFFFFF;
2008
    border-color: #DDDDDD;
2009
    border-image: none;
2010
    border-style: solid;
2011
    border-width: 1px 1px 1px 0;
2012
    float: left;
2013
    font-size: 11.9px;
2014
    line-height: 20px;
2015
    padding: 4px 12px;
2016
    text-decoration: none;
2017
}
2018
2019
.pages .inactive {
2020
    background-color: #F5F5F5;
2021
}
2022
2023
.pages a[rel='last'] {
2024
    border-bottom-right-radius: 3px;
2025
    border-top-right-radius: 3px;
2026
}
2027
2028
.hold-message {
2029
    background-color: #FFF0B1;
2030
    display: inline-block;
2031
    margin: 0.5em;
2032
    padding: 0.2em 0.5em;
2033
    .border-radius-all(3px);
2034
}
2035
.reserve_date,
2036
.expiration_date {
2037
    white-space: nowrap;
2038
}
2039
.close {
2040
    color: #0088CC;
2041
    position: inherit;
2042
    top: auto;
2043
    right : auto;
2044
    filter : none;
2045
    float : none;
2046
    font-size: inherit;
2047
    font-weight: normal;
2048
    opacity: inherit;
2049
    text-shadow: none;
2050
}
2051
2052
.close:hover {
2053
    color: #538200;
2054
    filter: inherit;
2055
    font-size: inherit;
2056
    opacity: inherit;
2057
}
2058
2059
/* Redefine a new style for Bootstrap's class "close" since we use that already */
2060
/* Use <a class="closebtn" href="#">&times;</a> */
2061
.alert .closebtn{position:relative;top:-2px;right:-21px;line-height:20px;}
2062
.modal-header .closebtn{margin-top:2px;}
2063
.closebtn{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000000;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20);}.closebtn:hover{color:#000000;text-decoration:none;cursor:pointer;opacity:0.4;filter:alpha(opacity=40);}
2064
button.closebtn{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;}
2065
.btn-group label,
2066
.btn-group select {
2067
    font-size: 13px;
2068
}
2069
2070
.span2 select {
2071
    width: 100%;
2072
}
2073
2074
.popup .main {
2075
    font-size: 90%;
2076
    padding: 0 1em;
2077
}
2078
2079
.popup legend {
2080
    line-height: 1.5em;
2081
    margin-bottom : .5em;
2082
}
2083
2084
.item-status {
2085
    display: block;
2086
    font-size: 95%;
2087
    margin-bottom: .5em;
2088
}
2089
2090
.available {
2091
    color : #006600;
2092
}
2093
2094
.unavailable {
2095
    color: #990033;
2096
}
2097
2098
.waiting,.intransit,.notforloan,.checkedout,.lost,.notonhold {
2099
    display : block;
2100
}
2101
2102
.notforloan {
2103
    color : #900;
2104
}
2105
2106
.lost {
2107
    color : #666;
2108
}
2109
2110
.suggestion {
2111
    background-color : #EEEEEB;
2112
    border : 1px solid #DDDED3;
2113
    margin : 1em auto;
2114
    padding : .5em;
2115
    width : 35%;
2116
    .border-radius-all(3px);
2117
}
2118
2119
.librarypulldown .transl1 {
2120
    width : auto;
2121
}
2122
2123
.nolibrarypulldown {
2124
    width : 68%;
2125
}
2126
2127
.nolibrarypulldown .transl1 {
2128
    width : 87%;
2129
}
2130
2131
#opac-main-search {
2132
    select {
2133
        width : auto;
2134
        max-width: 12em;
2135
    }
2136
}
2137
2138
#logo {
2139
    background:transparent url("../images/koha-logo-navbar.png") no-repeat scroll 0%;
2140
    border: 0;
2141
    float : left !important;
2142
    margin:0;
2143
    padding:0;
2144
    width:100px;
2145
    a {
2146
        border:0;
2147
        cursor:pointer;
2148
        display:block;
2149
        height:0px !important;
2150
        margin:0;
2151
        overflow:hidden;
2152
        padding:40px 0 0;
2153
        text-decoration:none;
2154
        width:100px;
2155
    }
2156
}
2157
2158
#user-menu-trigger {
2159
    display: none;
2160
    .icon-user {
2161
        background: transparent url("../lib/bootstrap/img/glyphicons-halflings-white.png") no-repeat;
2162
        background-position: -168px 0;
2163
        background-repeat: no-repeat;
2164
        height: 14px;
2165
        line-height: 14px;
2166
        margin : 12px 0 0;
2167
        vertical-align: text-top;
2168
        width: 14px;
2169
    }
2170
    .caret {
2171
        border-bottom-color: #999999;
2172
        border-top-color: #999999;
2173
        margin-top: 18px;
2174
    }
2175
}
2176
2177
/* Class to be added to toolbar when it starts being fixed at the top of the screen*/
2178
.floating {
2179
    -webkit-box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .4);
2180
    box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .4);
2181
    margin-top: 0;
2182
}
2183
2184
.tdlabel {
2185
    font-weight: bold;
2186
    display: none;
2187
}
2188
2189
td img {
2190
    max-width: none;
2191
}
2192
2193
#ulactioncontainer {
2194
    min-width: 16em;
2195
}
2196
2197
.notesrow {
2198
    label {
2199
        font-weight: bold;
2200
    }
2201
    span {
2202
        display: block;
2203
    }
2204
}
2205
2206
.thumbnail-shelfbrowser span {
2207
    margin: 0px auto;
2208
}
2209
2210
.dropdown-menu > li > a.menu-inactive:hover {
2211
    background : #FFF none;
2212
    color : #000;
2213
}
2214
2215
.table {
2216
    .sorting_asc {
2217
        padding-right: 19px;
2218
        background: url("../images/asc.gif") no-repeat scroll right center #ECEDE6;
2219
    }
2220
    .sorting_desc {
2221
        padding-right: 19px;
2222
        background: url("../images/desc.gif") no-repeat scroll right center #ECEDE6;
2223
    }
2224
    .sorting {
2225
        padding-right: 19px;
2226
        background: url("../images/ascdesc.gif") no-repeat scroll right center #ECEDE6;
2227
    }
2228
    .nosort,
2229
    .nosort.sorting_asc,
2230
    .nosort.sorting_desc,
2231
    .nosort.sorting {
2232
        padding-right: 19px;
2233
        background: #ECEDE6 none;
2234
    }
2235
    th,
2236
    td {
2237
        line-height: 135%;
2238
    }
2239
}
2240
.tags, .shelves {
2241
    ul {
2242
        display: inline;
2243
        list-style: none;
2244
        margin-left : 0;
2245
        li {
2246
            display: inline;
2247
        }
2248
    }
2249
}
2250
.coverimages {
2251
    float : right;
2252
}
2253
#i18nMenu {
2254
    margin-left : 1em;
2255
    li {
2256
        font-size : 85%;
2257
        li {
2258
            font-size: 100%;
2259
        }
2260
        li > a {
2261
            font-size : 100%;
2262
            &:hover {
2263
                color : #FFF;
2264
            }
2265
        }
2266
        a {
2267
            color : @links;
2268
        }
2269
    }
2270
    .dropdown-menu {
2271
        li {
2272
            p {
2273
                clear: both;
2274
                display: block;
2275
                font-weight: normal;
2276
                line-height: 20px;
2277
                padding: 3px 20px;
2278
                white-space: nowrap;
2279
            }
2280
        }
2281
    }
2282
}
2283
2284
#subjectsList,
2285
#authorSearch {
2286
    label {
2287
        display :inline;
2288
        vertical-align: middle;
2289
    }
2290
    ul {
2291
        border-bottom: 1px solid #EEE;
2292
        list-style-type: none;
2293
        margin: 0;
2294
        padding: .6em 0;
2295
    }
2296
    li {
2297
        list-style-type: none;
2298
        margin: 0;
2299
        padding: 0;
2300
    }
2301
}
2302
2303
2304
#overdrive-results, #openlibrary-results {
2305
    font-weight: bold;
2306
    padding-left: 1em;
2307
}
2308
2309
.throbber {
2310
    vertical-align: middle;
2311
}
2312
2313
#overdrive-results-list .star-rating-control {
2314
    display: block;
2315
    overflow: auto;
2316
}
2317
2318
#shelfbrowser {
2319
    table {
2320
        margin : 0;
2321
    }
2322
    table,
2323
    td,
2324
    th {
2325
        border : 0;
2326
        font-size : 90%;
2327
        text-align : center;
2328
    }
2329
    td,
2330
    th {
2331
        padding: 3px 5px;
2332
        width : 20%;
2333
    }
2334
    a {
2335
        display : block;
2336
        font-size : 110%;
2337
        font-weight : bold;
2338
        text-decoration : none;
2339
    }
2340
    #browser_next,
2341
    #browser_previous {
2342
        background-image : url("../images/sprite.png");
2343
        background-repeat: no-repeat;
2344
        width : 16px;
2345
        a {
2346
            cursor: pointer;
2347
            display : block;
2348
            height: 0 !important;
2349
            margin: 0;
2350
            overflow: hidden;
2351
            padding: 50px 0 0;
2352
            text-decoration: none;
2353
            width: 16px;
2354
        }
2355
    }
2356
    #browser_previous {
2357
        background-position: -9px -1007px;
2358
    }
2359
    #browser_next {
2360
        background-position: -9px -1057px;
2361
    }
2362
}
2363
2364
#holds {
2365
    margin : 0 auto;
2366
    max-width: 800px;
2367
}
2368
.holdrow {
2369
    clear : both;
2370
    padding: 0 1em 1em 1em;
2371
    border-bottom:1px solid #CCC;
2372
    margin-bottom:.5em;
2373
    fieldset {
2374
        border : 0;
2375
        margin : 0;
2376
        float: none;
2377
        .label {
2378
            font-size: 14px;
2379
        }
2380
    }
2381
    label {
2382
        display: inline;
2383
    }
2384
}
2385
.hold-options {
2386
    clear : both;
2387
}
2388
.toggle-hold-options {
2389
    background-color: #eee;
2390
    clear : both;
2391
    display : block;
2392
    font-weight : bold;
2393
    margin: 1em 0;
2394
    padding: .5em;
2395
}
2396
.hold-option select {
2397
    width: auto;
2398
}
2399
.copiesrow {
2400
    clear : both;
2401
}
2402
2403
#idreambooksreadometer {
2404
    float: right;
2405
}
2406
2407
a.idreambooksrating {
2408
    font-size: 30px;
2409
    color: #29ADE4;
2410
    padding-left: 85px;
2411
    line-height: 30px;
2412
    text-decoration: none;
2413
}
2414
2415
.idreambookslegend {
2416
    font-size: small;
2417
}
2418
2419
a.reviewlink,
2420
a.reviewlink:visited {
2421
    text-decoration: none;
2422
    color: black;
2423
    font-weight: normal;
2424
}
2425
2426
.idreambookssummary a {
2427
    color: #707070;
2428
    text-decoration: none;
2429
}
2430
2431
.idreambookssummary img,
2432
.idbresult img {
2433
    vertical-align: middle;
2434
}
2435
2436
.idbresult {
2437
    color: #29ADE4;
2438
    text-align: center;
2439
    margin: 0.5em;
2440
    padding: 0.5em;
2441
}
2442
2443
.idbresult a,
2444
.idbresult a:visited {
2445
    text-decoration: none;
2446
    color: #29ADE4;
2447
}
2448
2449
.idbresult img {
2450
    padding-right: 6px;
2451
}
2452
2453
.js-show {
2454
    display: none;
2455
}
2456
2457
.modal-nojs {
2458
    .modal-header,
2459
    .modal-footer {
2460
        display: none;
2461
    }
2462
}
2463
2464
.contents {
2465
    width: 75%;
2466
}
2467
2468
2469
.contentblock {
2470
    font-size : 95%;
2471
    line-height: 135%;
2472
    position: relative;
2473
    margin-left: 2em;
2474
}
2475
2476
.contents {
2477
    .t:first-child:before {
2478
        content: "→ ";
2479
    }
2480
    .t:before {
2481
        content: "\A → ";
2482
        white-space: pre;
2483
    }
2484
    .t {
2485
        font-weight: bold;
2486
        display: inline;
2487
    }
2488
    .r {
2489
        display: inline;
2490
    }
2491
}
2492
2493
.m880 {
2494
    display:block;
2495
    text-align:right;
2496
    float:right;
2497
    width:50%;
2498
    padding-left:20px;
2499
}
2500
2501
#memberentry-form input.error {
2502
    border-color: #c00;
2503
    box-shadow: 0 1px 1px #c00 inset, 0 0 8px #c00;
2504
    color: red; outline: 0 none;
2505
}
2506
2507
#memberentry-form input.error:focus {
2508
    border-color: #c00;
2509
    box-shadow: 0 1px 1px #c00 inset, 0 0 8px #c00;
2510
    color: red; outline: 0 none;
2511
}
2512
2513
#memberentry-form label.error {
2514
    color: #c00; float: none;
2515
    font-size: 90%;
2516
}
2517
2518
#illrequests {
2519
    .illrequest-actions {
2520
        .btn,
2521
        .cancel {
2522
            margin-right: 5px;
2523
        }
2524
        padding-top: 20px;
2525
        margin-bottom: 20px;
2526
    }
2527
    #illrequests-create-button {
2528
        margin-bottom: 20px;
2529
    }
2530
    .bg-info {
2531
        overflow: auto;
2532
        position: relative;
2533
    }
2534
    .bg-info {
2535
        #search-summary {
2536
            -webkit-transform: translateY(-50%);
2537
            -ms-transform: translateY(-50%);
2538
            -o-transform: translateY(-50%);
2539
            transform: translateY(-50%);
2540
            position: absolute;
2541
            top: 50%;
2542
        }
2543
2544
    }
2545
    #freeform-fields .custom-name {
2546
        float: left;
2547
        width: 8em;
2548
        margin-right: 1em;
2549
        text-align: right;
2550
    }
2551
    .dropdown:hover .dropdown-menu.nojs {
2552
        display: block;
2553
    }
2554
}
2555
2556
#dc_fieldset {
2557
    border: 1px solid #dddddd;
2558
    border-width: 1px;
2559
    padding: 5px;
2560
    border-radius: 10px
2561
}
2562
2563
.label_dc{
2564
    display: inline;
2565
    padding: 0px;
2566
    margin: 0px;
2567
    cursor: pointer;
2568
}
2569
2570
.btn-danger {
2571
    color: white !important;
2572
}
2573
2574
.count_label {
2575
    @base: #369;
2576
    background-color: @base;
2577
    border-radius: 5px;
2578
    color: #FFF;
2579
    display: inline-block;
2580
    font-weight: bold;
2581
    min-width: 1.5em;
2582
    padding: .2em;
2583
    text-align: center;
2584
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
2585
2586
    &:hover {
2587
        background-color: lighten( @base, 20% );
2588
    }
2589
}
2590
2591
.user_checkouts_count {
2592
2593
}
2594
2595
.user_overdues_count,
2596
.user_fines_count {
2597
    background-color: #990000;
2598
    &:hover {
2599
        background-color: lighten( #990000, 10% );
2600
    }
2601
}
2602
2603
.user_holds_pending_count {
2604
2605
}
2606
2607
.user_holds_waiting_count {
2608
    background-color: #538200;
2609
    &:hover {
2610
        background-color: lighten( #538200, 10% );
2611
    }
2612
}
2613
2614
#user_summary {
2615
    border: 1px solid #EAEAE6;
2616
    border-radius: 7px;
2617
    margin-bottom: 1em;
2618
    padding-bottom: .5em;
2619
2620
    h3 {
2621
        background-color: #EAEAE6;
2622
        border-top-left-radius: 6px;
2623
        border-top-right-radius: 6px;
2624
        box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2);
2625
        margin-top: 0;
2626
        padding: .2em 0;
2627
        text-align: center;
2628
    }
2629
2630
    ul {
2631
        list-style-type: none;
2632
        margin: 0 0 .2em 0;
2633
2634
        a {
2635
            display: block;
2636
            font-weight: bold;
2637
            padding: .2em 1em;
2638
        }
2639
    }
2640
}
2641
2642
2643
2644
@import "responsive.less";
(-)a/opac/opac-reserve.pl (-83 / +83 lines)
Lines 106-139 if ( $reservefee > 0){ Link Here
106
106
107
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
107
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
108
108
109
# There are two ways of calling this script, with a single biblio num
109
# Coming from opac-search biblionumbers param is a string, coming from
110
# or multiple biblio nums.
110
# opac-reserve, it's an array.
111
my $biblionumbers = $query->param('biblionumbers');
111
my @biblionumbers = ref($query->param('biblionumbers')) eq 'Array'
112
my $reserveMode = $query->param('reserve_mode');
112
    ? $query->param('biblionumbers')
113
if ($reserveMode && ($reserveMode eq 'single')) {
113
    : split(/\//, $query->param('biblionumbers'));
114
    my $bib = $query->param('single_bib');
114
115
    $biblionumbers = "$bib/";
115
unless (@biblionumbers) {
116
}
116
    push(@biblionumbers, $query->param('biblionumber'));
117
if (! $biblionumbers) {
118
    $biblionumbers = $query->param('biblionumber');
119
}
120
121
if ((! $biblionumbers) && (! $query->param('place_reserve'))) {
122
    $template->param(message=>1, no_biblionumber=>1);
123
    &get_out($query, $cookie, $template->output);
124
}
117
}
125
118
126
# Pass the numbers to the page so they can be fed back
119
# Pass the numbers to the page so they can be fed back
127
# when the hold is confirmed. TODO: Not necessary?
120
# when the hold is confirmed. TODO: Not necessary?
128
$template->param( biblionumbers => $biblionumbers );
121
$template->param( biblionumbers => @biblionumbers );
129
130
# Each biblio number is suffixed with '/', e.g. "1/2/3/"
131
my @biblionumbers = split /\//, $biblionumbers;
132
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) {
133
    # TODO: New message?
134
    $template->param(message=>1, no_biblionumber=>1);
135
    &get_out($query, $cookie, $template->output);
136
}
137
122
138
123
139
# pass the pickup branch along....
124
# pass the pickup branch along....
Lines 200-238 if ( $query->param('place_reserve') ) { Link Here
200
        $reserve_cnt = $patron->holds->count;
185
        $reserve_cnt = $patron->holds->count;
201
    }
186
    }
202
187
203
    # List is composed of alternating biblio/item/branch
204
    my $selectedItems = $query->param('selecteditems');
205
206
    if ($query->param('reserve_mode') eq 'single') {
207
        # This indicates non-JavaScript mode, so there was
208
        # only a single biblio number selected.
209
        my $bib = $query->param('single_bib');
210
        my $item = $query->param("checkitem_$bib");
211
        if ($item eq 'any') {
212
            $item = '';
213
        }
214
        my $branch = $query->param('branch');
215
        $selectedItems = "$bib/$item/$branch/";
216
    }
217
218
    $selectedItems =~ s!/$!!;
219
    my @selectedItems = split /\//, $selectedItems, -1;
220
221
    # Make sure there is a biblionum/itemnum/branch triplet for each item.
222
    # The itemnum can be 'any', meaning next available.
223
    my $selectionCount = @selectedItems;
224
    if (($selectionCount == 0) || (($selectionCount % 3) != 0)) {
225
        $template->param(message=>1, bad_data=>1);
226
        &get_out($query, $cookie, $template->output);
227
    }
228
229
    my $failed_holds = 0;
188
    my $failed_holds = 0;
230
    while (@selectedItems) {
189
    foreach my $biblioNum (@biblionumbers) {
231
        my $biblioNum = shift(@selectedItems);
190
        my $itemNum = $query->param("checkitem_$biblioNum");
232
        my $itemNum   = shift(@selectedItems);
191
        my @itemnumbers = $query->param("checkitem_$biblioNum");
233
        my $branch    = shift(@selectedItems);    # i.e., branch code, not name
192
        my $branch = $query->param("branch_$biblioNum");
234
193
        my $reqtype = $query->param("reqtype_$biblioNum");
235
        my $canreserve = 0;
194
        my $holds_to_place_count = $query->param("holds_to_place_count_$biblioNum") || 1;
195
        my $notes = $query->param('notes_'.$biblioNum) || '';
196
        my $nbRequested = $reqtype eq 'Specific' ? @itemnumbers : $holds_to_place_count;
197
198
        my $canreserve = 1;
199
        if (   $maxreserves
200
            && $reserve_cnt + $nbRequested >= $maxreserves )
201
        {
202
            $canreserve = 0;
203
        }
236
204
237
        my $singleBranchMode = Koha::Libraries->search->count == 1;
205
        my $singleBranchMode = Koha::Libraries->search->count == 1;
238
        if ( $singleBranchMode || ! C4::Context->preference("OPACAllowUserToChooseBranch") )
206
        if ( $singleBranchMode || ! C4::Context->preference("OPACAllowUserToChooseBranch") )
Lines 240-246 if ( $query->param('place_reserve') ) { Link Here
240
            $branch = $patron->branchcode;
208
            $branch = $patron->branchcode;
241
        }
209
        }
242
210
243
#item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber
244
        if ( $itemNum ne '' ) {
211
        if ( $itemNum ne '' ) {
245
            my $item = Koha::Items->find( $itemNum );
212
            my $item = Koha::Items->find( $itemNum );
246
            my $hostbiblioNum = $item->biblio->biblionumber;
213
            my $hostbiblioNum = $item->biblio->biblionumber;
Lines 262-284 if ( $query->param('place_reserve') ) { Link Here
262
229
263
        my $expiration_date = $query->param("expiration_date_$biblioNum");
230
        my $expiration_date = $query->param("expiration_date_$biblioNum");
264
231
232
        # If a specific item was selected and the pickup branch is the same as the
233
        # holdingbranch, force the value $rank and $found.
265
        my $rank = $biblioData->{rank};
234
        my $rank = $biblioData->{rank};
266
        if ( $itemNum ne '' ) {
235
        if ( $reqtype eq 'Specific') {
267
            $canreserve = 1 if CanItemBeReserved( $borrowernumber, $itemNum )->{status} eq 'OK';
236
            foreach my $itemnumber (@itemnumbers) {
268
        }
237
                my $biblionumber = $biblioNum;
269
        else {
238
270
            $canreserve = 1 if CanBookBeReserved( $borrowernumber, $biblioNum )->{status} eq 'OK';
239
                #item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber
240
                my $hostbiblioNum = GetBiblionumberFromItemnumber($itemnumber);
241
                if ( $hostbiblioNum ne $biblioNum ) {
242
                    $biblionumber = $hostbiblioNum;
243
                }
271
244
272
            # Inserts a null into the 'itemnumber' field of 'reserves' table.
245
                $canreserve = 0 unless CanItemBeReserved( $borrowernumber, $itemnumber ) eq 'OK';
273
            $itemNum = undef;
246
                $rank = '0' unless C4::Context->preference('ReservesNeedReturns');
274
        }
247
                my $item = GetItem($itemnumber);
275
        my $notes = $query->param('notes_'.$biblioNum)||'';
248
                if ( $item->{'holdingbranch'} eq $branch ) {
249
                    $found = 'W'
250
                      unless C4::Context->preference('ReservesNeedReturns');
251
                }
276
252
277
        if (   $maxreserves
253
                if ($canreserve) {
278
            && $reserve_cnt >= $maxreserves )
254
                    my $reserve_id = AddReserve(
279
        {
255
                        $branch,         $borrowernumber,
280
            $canreserve = 0;
256
                        $biblionumber,
257
                        [$biblionumber], $rank,
258
                        $startdate,      $expiration_date,
259
                        $notes,          $biblioData->{title},
260
                        $itemnumber,     $found
261
                    );
262
                    $failed_holds++ unless $reserve_id;
263
                    ++$reserve_cnt;
264
                }
265
            }
266
            print $query->redirect("/cgi-bin/koha/opac-user.pl?" . ( $failed_holds ? "failed_holds=$failed_holds" : q|| ) . "#opac-user-holds");
267
            exit;
281
        }
268
        }
269
        $canreserve = 0 unless CanBookBeReserved( $borrowernumber, $biblioNum ) eq 'OK';
282
270
283
        unless ( $can_place_hold_if_available_at_pickup ) {
271
        unless ( $can_place_hold_if_available_at_pickup ) {
284
            my $items_in_this_library = Koha::Items->search({ biblionumber => $biblioNum, holdingbranch => $branch });
272
            my $items_in_this_library = Koha::Items->search({ biblionumber => $biblioNum, holdingbranch => $branch });
Lines 294-307 if ( $query->param('place_reserve') ) { Link Here
294
282
295
        # Here we actually do the reserveration. Stage 3.
283
        # Here we actually do the reserveration. Stage 3.
296
        if ($canreserve) {
284
        if ($canreserve) {
297
            my $reserve_id = AddReserve(
285
            for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) {
298
                $branch,          $borrowernumber, $biblioNum,
286
                my $reserve_id = AddReserve(
299
                [$biblioNum],     $rank,           $startdate,
287
                    $branch,          $borrowernumber, $biblioNum,
300
                $expiration_date, $notes,          $biblioData->{title},
288
                    [$biblioNum],     $rank,           $startdate,
301
                $itemNum,         $found,          $itemtype,
289
                    $expiration_date, $notes,          $biblioData->{title},
302
            );
290
                    $itemNum,         $found,          $itemtype,
303
            $failed_holds++ unless $reserve_id;
291
                );
304
            ++$reserve_cnt;
292
                $failed_holds++ unless $reserve_id;
293
                ++$reserve_cnt;
294
            }
305
        }
295
        }
306
    }
296
    }
307
297
Lines 361-366 if ( $maxreserves && ( $reserves_count >= $maxreserves ) ) { Link Here
361
}
351
}
362
352
363
unless ( $noreserves ) {
353
unless ( $noreserves ) {
354
    $template->param(
355
        maxreserves => $maxreserves,
356
        reserves_count => $reserves_count
357
    );
364
    my $requested_reserves_count = scalar( @biblionumbers );
358
    my $requested_reserves_count = scalar( @biblionumbers );
365
    if ( $maxreserves && ( $reserves_count + $requested_reserves_count > $maxreserves ) ) {
359
    if ( $maxreserves && ( $reserves_count + $requested_reserves_count > $maxreserves ) ) {
366
        $template->param( new_reserves_allowed => $maxreserves - $reserves_count );
360
        $template->param( new_reserves_allowed => $maxreserves - $reserves_count );
Lines 529-535 foreach my $biblioNum (@biblionumbers) { Link Here
529
            if ( $opac_hold_policy ne 'N' ) { # If Y or F
523
            if ( $opac_hold_policy ne 'N' ) { # If Y or F
530
                $itemLoopIter->{available} = 1;
524
                $itemLoopIter->{available} = 1;
531
                $numCopiesOPACAvailable++;
525
                $numCopiesOPACAvailable++;
532
                $biblioLoopIter{force_hold} = 1 if $opac_hold_policy eq 'F';
526
                $biblioLoopIter{force_hold} = 'item' if $opac_hold_policy eq 'F';
533
            }
527
            }
534
            $numCopiesAvailable++;
528
            $numCopiesAvailable++;
535
529
Lines 596-613 foreach my $biblioNum (@biblionumbers) { Link Here
596
    # patron placed a record level hold, all the holds the patron places must
590
    # patron placed a record level hold, all the holds the patron places must
597
    # be record level. If the patron placed an item level hold, all holds
591
    # be record level. If the patron placed an item level hold, all holds
598
    # the patron places must be item level
592
    # the patron places must be item level
599
    my $forced_hold_level = Koha::Holds->search(
593
    my $holds = Koha::Holds->search(
600
        {
594
        {
601
            borrowernumber => $borrowernumber,
595
            borrowernumber => $borrowernumber,
602
            biblionumber   => $biblioNum,
596
            biblionumber   => $biblioNum,
603
            found          => undef,
597
            found          => undef,
604
        }
598
        }
605
    )->forced_hold_level();
599
    );
600
    my $forced_hold_level = $holds->forced_hold_level();
606
    if ($forced_hold_level) {
601
    if ($forced_hold_level) {
607
        $biblioLoopIter{force_hold}   = 1 if $forced_hold_level eq 'item';
602
        #$biblioLoopIter{force_hold}   = 1 if $forced_hold_level eq 'item';
608
        $biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'record';
603
        #$biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'record';
604
        $biblioLoopIter{force_hold} = $forced_hold_level;
609
    }
605
    }
610
606
607
    my $max_holds_for_record = GetMaxPatronHoldsForRecord( $borrowernumber, $biblioNum );
608
    my $remaining_holds_for_record = $max_holds_for_record - $holds->count();
609
    $biblioLoopIter{remaining_holds_for_record} = $remaining_holds_for_record;
610
611
611
612
    push @$biblioLoop, \%biblioLoopIter;
612
    push @$biblioLoop, \%biblioLoopIter;
613
613
(-)a/reserve/placerequest.pl (-14 / +19 lines)
Lines 47-53 my $startdate = $input->param('reserve_date') || ''; Link Here
47
my @rank           = $input->multi_param('rank-request');
47
my @rank           = $input->multi_param('rank-request');
48
my $type           = $input->param('type');
48
my $type           = $input->param('type');
49
my $title          = $input->param('title');
49
my $title          = $input->param('title');
50
my $checkitem      = $input->param('checkitem');
50
my @checkitems     = $input->param('checkitem');
51
my $expirationdate = $input->param('expiration_date');
51
my $expirationdate = $input->param('expiration_date');
52
my $itemtype       = $input->param('itemtype') || undef;
52
my $itemtype       = $input->param('itemtype') || undef;
53
53
Lines 58-63 my $multi_hold = $input->param('multi_hold'); Link Here
58
my $biblionumbers = $multi_hold ? $input->param('biblionumbers') : ($biblionumber . '/');
58
my $biblionumbers = $multi_hold ? $input->param('biblionumbers') : ($biblionumber . '/');
59
my $bad_bibs = $input->param('bad_bibs');
59
my $bad_bibs = $input->param('bad_bibs');
60
my $holds_to_place_count = $input->param('holds_to_place_count') || 1;
60
my $holds_to_place_count = $input->param('holds_to_place_count') || 1;
61
$holds_to_place_count = scalar(@checkitems) if scalar(@checkitems);
61
62
62
my %bibinfos = ();
63
my %bibinfos = ();
63
my @biblionumbers = split '/', $biblionumbers;
64
my @biblionumbers = split '/', $biblionumbers;
Lines 68-74 foreach my $bibnum (@biblionumbers) { Link Here
68
    $bibinfos{$bibnum} = \%bibinfo;
69
    $bibinfos{$bibnum} = \%bibinfo;
69
}
70
}
70
71
71
my $found;
72
my @found;
73
74
foreach my $checkitem (@checkitems) {
75
    # if we have an item selectionned, and the pickup branch is the same as the holdingbranch
76
    # of the document, we force the value $rank and $found .
77
    $rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns');
78
    my $item = GetItem($checkitem);
79
    if ( $item->{'holdingbranch'} eq $branch ){
80
        push @found, 'W' unless C4::Context->preference('ReservesNeedReturns');
81
    }
82
}
72
83
73
if ( $type eq 'str8' && $borrower ) {
84
if ( $type eq 'str8' && $borrower ) {
74
85
Lines 86-108 if ( $type eq 'str8' && $borrower ) { Link Here
86
            }
97
            }
87
        }
98
        }
88
99
89
        if ( defined $checkitem && $checkitem ne '' ) {
90
            my $item = GetItem($checkitem);
91
            if ( $item->{'biblionumber'} ne $biblionumber ) {
92
                $biblionumber = $item->{'biblionumber'};
93
            }
94
        }
95
96
        if ($multi_hold) {
100
        if ($multi_hold) {
97
            my $bibinfo = $bibinfos{$biblionumber};
101
            my $bibinfo = $bibinfos{$biblionumber};
98
            AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber],
102
            AddReserve( $branch, $borrower->{'borrowernumber'},
99
                       $bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found);
103
                        $biblionumber, [$biblionumber],
104
                        $bibinfo->{rank}, $startdate, $expirationdate, $notes,$bibinfo->{title});
100
        } else {
105
        } else {
101
            # place a request on 1st available
106
            # place a request on 1st available
102
            for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) {
107
            for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) {
108
                my $item = GetItem($checkitems[$i]);
103
                AddReserve( $branch, $borrower->{'borrowernumber'},
109
                AddReserve( $branch, $borrower->{'borrowernumber'},
104
                    $biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title,
110
                    $item->{biblionumber}, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title,
105
                    $checkitem, $found, $itemtype );
111
                    $checkitems[$i], $found[$i] );
106
            }
112
            }
107
        }
113
        }
108
    }
114
    }
109
- 

Return to bug 15565