X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Freserve%2Frequest.tt;h=9e46732a4730f815b94788da44e684743c1050a2;hb=5cfa865aad2caabd76e361fcbbe8f6429941bad4;hp=4b7aa7c6f521a7c74fb0cc3856c93a95e9aa4237;hpb=432777e83388d9ea3d9f9c123e684b6830cd05e3;p=koha_fer diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 4b7aa7c6f5..9e46732a47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1,8 +1,9 @@ +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS ( multi_hold ) %] Koha › Circulation › Holds › Place a hold on [% title |html %] [% ELSE %] - Koha › Circulation › Holds › Confirm Holds + Koha › Circulation › Holds › Confirm holds [% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] @@ -93,24 +94,24 @@ function checkMultiHold() { $(document).ready(function() { $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic var itemnumber = this.value; - var msg; + var msg = ''; switch (override_items[itemnumber].holdallowed) { - case 0: msg = _( 'This item normally cannot be put on hold.' ); break; - case 1: msg = _( 'This item normally cannot be put on hold except for patrons from ' ) + override_items[itemnumber].homebranch + '.'; break; + case 0: msg = _("This item normally cannot be put on hold."); break; + case 1: msg = _("This item normally cannot be put on hold except for patrons from ") + override_items[itemnumber].homebranch + "."; break; } - msg += "\n\n" + _( 'Place hold on this item?' ); + msg += "\n\n" + _("Place hold on this item?"); return confirm(msg); }); $("input.warning").click(function() { - return confirm( _( 'None of these items can normally be put on hold for this patron.' ) + "\n\n" + _( 'Place hold?' ) ); + return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") ); }); $("#requestany").click(function() { if(this.checked){ $("input[name=checkitem]").each(function() { - $(this).attr("checked",""); + $(this).removeAttr("checked"); }); } }); @@ -122,24 +123,50 @@ function checkMultiHold() { } }); if(onechecked == 1){ - $("#requestany").attr("checked",""); + $("#requestany").removeAttr("checked"); } else { $("#requestany").attr("checked","checked"); } }); + + $('#hold-request-form').preventDoubleFormSubmit(); + +[% UNLESS ( borrowernumber || borrower_list ) %] + [% IF ( CircAutocompl ) %] + $( "#patron" ).autocomplete({ + source: "/cgi-bin/koha/circ/ysearch.pl", + minLength: 3, + select: function( event, ui ) { + $( "#patron" ).val( ui.item.cardnumber ); + $( "#holds_patronsearch" ).submit(); + return false; + } + }) + .data( "autocomplete" )._renderItem = function( ul, item ) { + return $( "
  • " ) + .data( "item.autocomplete", item ) + .append( "" + item.surname + ", " + item.firstname + + " (" + item.cardnumber + ") " + item.address + + " " + item.city + " " + item.zipcode + " " + + item.country + "" ) + .appendTo( ul ); + }; + [% END %] +[% END %] + }); // ]]> - + [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %] [% UNLESS ( multi_hold ) %] [% ELSE %] - + [% END %]
    @@ -166,26 +193,34 @@ function checkMultiHold() { [% UNLESS ( multi_hold ) %]

    Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title |html %]

    [% ELSE %] -

    Confirm Holds

    +

    Confirm holds

    [% END %] - [% UNLESS ( cardnumber ) %] + [% UNLESS ( borrowernumber ) %] [% IF ( messageborrower ) %] -

    Patron Not Found

    No patron with this name, Please, try another

    +

    Patron not found

    No patron with this name, please, try another

    [% END %] -
    - [% UNLESS ( CGIselectborrower ) %] -
    - -
    Enter patron card number or partial name:
    - - + + [% UNLESS borrower_list %] +
    + +
    Enter patron card number or partial name:
    + -
    + +
    [% ELSE %] -
    - [% CGIselectborrower %] -
    +
    + +
    [% END %] [% IF ( multi_hold ) %] @@ -195,14 +230,14 @@ function checkMultiHold() {
    [% ELSE %] -[% IF ( warnings ) %] +[% IF ( maxreserves || alreadyreserved || none_available || alreadypossession ) %]
    [% UNLESS ( multi_hold ) %] -

    Cannot Place Hold

    +

    Cannot place hold

    [% ELSE %] -

    Cannot Place Hold on Some Items

    +

    Cannot place hold on some items

    [% END %]
    [% END %] -[% IF ( messages ) %] -