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=0ad5d23e2d6e68eeca6e550d43875ad691d489bc;hpb=b7b92a4c812570894286bbd2094ff0377c35221f;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 0ad5d23e2d..9e46732a47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -97,16 +97,16 @@ function checkMultiHold() { 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){ @@ -130,6 +130,30 @@ function checkMultiHold() { }); $('#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 %] + }); // ]]> @@ -169,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 ( 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 ) %] @@ -198,14 +230,14 @@ function checkMultiHold() {
    [% ELSE %] -[% IF ( warnings ) %] +[% IF ( maxreserves || alreadyreserved || none_available || alreadypossession ) %]
    [% UNLESS ( multi_hold ) %]

    Cannot place hold

    [% ELSE %]

    Cannot place hold on some items

    @@ -221,13 +256,13 @@ function checkMultiHold() {
    [% END %] -[% IF ( messages ) %] -