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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-16 / +6 lines)
Lines 236-244 Link Here
236
                                                            <li>
236
                                                            <li>
237
                                                                <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]">
237
                                                                <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber %]">
238
                                                                    <label for="holdnotes[% bibitemloo.biblionumber %]">Hold notes:</label>
238
                                                                    <label for="holdnotes[% bibitemloo.biblionumber %]">Hold notes:</label>
239
                                                                    <span id="forcenotesreason_[% bibitemloo.biblionumber %]" class="forcenotesreason"></span>
239
                                                                    [% IF bibitemloo.reqholdnotes %]
240
                                                                    <textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea>
240
                                                                        <span>Please enter additional information on the part/volume/serial issue you request:</span>
241
                                                                    <input type="hidden" id="notesmandatory_[% bibitemloo.biblionumber %]" value="[% bibitemloo.mandatorynotes %]"/>
241
                                                                        <textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]" required >[% bibitemloo.holdnotes %]</textarea>
242
                                                                    [% ELSE %]
243
                                                                        <textarea id="holdnotes[% bibitemloo.biblionumber %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber %]">[% bibitemloo.holdnotes %]</textarea>
244
                                                                    [% END %]
242
                                                                </div>
245
                                                                </div>
243
                                                            </li>
246
                                                            </li>
244
                                                        [% END # / IF OpacHoldNotes %]
247
                                                        [% END # / IF OpacHoldNotes %]
Lines 403-412 Link Here
403
<script type="text/javascript">
406
<script type="text/javascript">
404
// <![CDATA[
407
// <![CDATA[
405
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
408
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
406
    var ForceHoldNotesReasons=new Array(
407
       _("This title consists of multiple volumes/parts. Please indicate which part you need. Clicking on specific item information may be helpful."),
408
       "*** Add a new reason above this line ***" );
409
       // NOTE: Do not renumber reasons; this will affect use of existing ones.
410
409
411
        // Clear the contents of an input field
410
        // Clear the contents of an input field
412
        $(".clearfield").on("click",function(e){
411
        $(".clearfield").on("click",function(e){
Lines 469-483 Link Here
469
          [% END %]
468
          [% END %]
470
        [% END %]
469
        [% END %]
471
470
472
        // Insert reasons for forced hold notes
473
        $(".forcenotesreason").each(function(){
474
            biblioNum = suffixOf($(this).attr("id"), "_");
475
            var j=$("#notesmandatory_"+biblioNum).val();
476
            if(j>0) {
477
                $(this).html(ForceHoldNotesReasons[j-1]);
478
            }
479
        });
480
481
        $(".date-format").each(function(){
471
        $(".date-format").each(function(){
482
            if($(this).hasClass("to")){ var op = "to"; }
472
            if($(this).hasClass("to")){ var op = "to"; }
483
            if($(this).hasClass("from")){ var op = "from"; }
473
            if($(this).hasClass("from")){ var op = "from"; }
(-)a/opac/opac-reserve.pl (-2 / +4 lines)
Lines 396-402 foreach my $biblioNum (@biblionumbers) { Link Here
396
    $biblioLoopIter{rank} = $biblioData->{rank};
396
    $biblioLoopIter{rank} = $biblioData->{rank};
397
    $biblioLoopIter{reservecount} = $biblioData->{reservecount};
397
    $biblioLoopIter{reservecount} = $biblioData->{reservecount};
398
    $biblioLoopIter{already_reserved} = $biblioData->{already_reserved};
398
    $biblioLoopIter{already_reserved} = $biblioData->{already_reserved};
399
    $biblioLoopIter{mandatorynotes}=0; #FIXME: For future use
399
    $biblioLoopIter{reqholdnotes} =
400
        defined &_reqholdnotes? _reqholdnotes( $record, $biblioData ): 0;
401
        #This allows for local customization: if you define _reqholdnotes
402
        #you can force hold notes based on your own rules.
400
403
401
    if (!$itemLevelTypes && $biblioData->{itemtype}) {
404
    if (!$itemLevelTypes && $biblioData->{itemtype}) {
402
        $biblioLoopIter{description} = $itemTypes->{$biblioData->{itemtype}}{description};
405
        $biblioLoopIter{description} = $itemTypes->{$biblioData->{itemtype}}{description};
403
- 

Return to bug 9743