X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fcirc%2Freturns.tt;h=8e1849aa772b5b3300e65be3c2f2aa4ad6856d5e;hb=df97814f3034a3d5015546c4eca21f08ae951e37;hp=40a366367e7fda7a6a468a342e8ba2fe307ecc15;hpb=cb2151529e0c2d031a01e68bd5deab26d2ffbaff;p=srvgit diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 40a366367e..8e1849aa77 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -2,12 +2,31 @@ [% USE Branches %] [% USE Koha %] [% USE Borrowers %] +[% USE ItemTypes %] [% USE AuthorisedValues %] +[% USE ColumnsSettings %] + +[% BLOCK display_bormessagepref %] + [% IF ( bormessagepref ) %] +
  • Patron notification: + [% FOREACH mtt IN bormessagepref.keys %] + [%~ IF ( mtt == 'email' ) %] Email[% END ~%] + [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%] + [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%] + [%~ UNLESS loop.last %], [% ELSE %].[% END ~%] + [% END %] +
  • + [% ELSE %] +
  • Patron is not notified.
  • + [% END %] +[% END %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Check in [% title |html %] + [% INCLUDE 'doc-head-close.inc' %] - +[% INCLUDE 'datatables.inc' %] +[% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'timepicker.inc' %] @@ -19,17 +38,37 @@ function Dopop(link) { $("#barcode").focus(); } $(document).ready(function () { + $(".modal").modal({ backdrop: 'static' }).on('shown', function() { + $("#barcode").prop("disabled", true); + }).on('hidden', function() { + $("#barcode").prop("disabled", false).focus(); + }); [% IF print_slip %] Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]'); [% END %] + var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %] + var returns_table = KohaTable("#checkedintable", { + "bFilter":false, + "bPaginate":false, + "bInfo":false, + "bSort":false, + "dom": 'B<"clearfix">t', + }, columns_settings); + $("#return_date_override").datetimepicker({ - onClose: function(dateText, inst) { $("#barcode").focus(); }, + onClose: function(dateText, inst) { + if (validate_date(dateText, inst) ) { + $("#barcode").focus(); + } + }, defaultDate: -1, hour: 23, minute: 59, maxDate: 0 + }).on("change", function(e, value) { + if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} }); $("#return_date_override").on("blur", function() { check_valid_return_date(); @@ -68,13 +107,13 @@ $(document).ready(function () { $("#barcode").addClass("alert"); $("#dropboxmode").show(); - $("#return_date_override_fields :input").attr("disabled", true); + $("#return_date_override_fields :input").prop('disabled', true); $("#return_date_override").datetimepicker("disable"); } else { $("#barcode").removeClass("alert"); $("#dropboxmode").hide(); - $("#return_date_override_fields :input").attr("disabled", false); + $("#return_date_override_fields :input").prop('disabled', false); $("#return_date_override").datetimepicker("enable"); } $("#barcode").focus(); @@ -90,7 +129,7 @@ $(document).ready(function () { $("#barcode").focus(); }); [% IF(overduecharges) %] $("#barcode").focus(function () { - if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) { + if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { $("#barcode").addClass("alert"); } else { $("#barcode").removeClass("alert"); @@ -100,11 +139,16 @@ $(document).ready(function () { $("#barcode").removeClass("alert"); }); [% END %] + $('.openWin').on("click",function(e){ + e.preventDefault(); + Dopop( $(this).data("url") ); + }); }); //]]> + [% INCLUDE 'header.inc' %] [% INCLUDE 'checkin-search.inc' %] @@ -119,7 +163,7 @@ $(document).ready(function () {
    [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] -
    Error: This patron has requested a privacy on returning item but the AnonymousPatron pref is not set correctly.
    +
    Error: This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
    [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
    Error: The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
    [% END %] @@ -131,7 +175,12 @@ $(document).ready(function () { [% END %] [% IF ( collectionItemNeedsTransferred ) %] -
    This item is part of a rotating collection and needs to be transferred to [% collectionBranch %]
    +
    +

    Please transfer item to: [% Branches.GetName( collectionBranch ) %]

    +

    [% itembarcode |html %]: [% title |html %]

    +

    This item is part of a rotating collection.

    +

    +
    [% END %] @@ -163,11 +212,20 @@ $(document).ready(function () { [% END %] [% IF ( wrongbranch ) %] -

    Cannot check in

    This item must be checked in at its home library. NOT CHECKED IN

    -
    +

    Cannot check in

    +

    [% itembarcode |html %]: [% title |html %]

    +

    NOT CHECKED IN

    +

    This item must be checked in at following library: [% Branches.GetName( rightbranch ) %]

    +
    [% END %] -[% IF ( WrongTransfer ) %]

    Please return [% title |html %] to [% Branches.GetName( TransferWaitingAt ) %]

    Print slip or Cancel transfer

    +[% IF ( WrongTransfer ) %] +
    + +

    Please return item to: [% Branches.GetName( TransferWaitingAt ) %]

    +

    [% itembarcode |html %]: [% title |html %]

    + + [% IF ( wborcnum ) %]
    Hold for:
    • [% borsurname %], [% borfirstname %] ([% borcnum %])
    • @@ -182,11 +240,11 @@ $(document).ready(function () { - + - + @@ -194,68 +252,104 @@ $(document).ready(function () { [% END %] [% IF ( found ) %] - - [% IF ( waiting ) %] - + [% END %] [% IF ( diffbranch ) %] - [% IF ( soundon ) %] - - [% END %] -
      -

      Hold needing transfer found: [% title |html %]

      +
      +

      Hold needing transfer found

      +

      [% itembarcode |html %]: [% title |html %]

      Hold for:

      • [% borsurname %], [% borfirstname %] ([% borcnum %])
      • @@ -267,18 +361,18 @@ $(document).ready(function () { [% IF ( debarred ) %]
      • Patron is RESTRICTED
      • [% END %] [% IF ( gonenoaddress ) %]
      • Patron's address is in doubt
      • [% END %]
      - [% IF ( transfertodo ) %] -

      Transfer to: [% destbranchname %]

      - [% ELSE %] -

      Hold at [% destbranchname %]

      + [% IF ( transfertodo ) %] +

      Transfer to: [% Branches.GetName( destbranch ) %]

      + [% ELSE %] +

      Hold at [% Branches.GetName( destbranch ) %]

      [% END %]
      - + - + [% FOREACH inputloo IN inputloop %] @@ -298,27 +392,23 @@ $(document).ready(function () { [% IF ( transfer ) %] -
      -

      Please return [% title or "item" |html %] to [% Branches.GetName( returnbranch ) %]
      ( Print slip )

      +
      +

      Please return item to: [% Branches.GetName( returnbranch ) %]

      +

      [% itembarcode |html %]: [% title |html %]

      +

      - [% IF ( soundon ) %] - - [% END %] [% END %] [% IF ( needstransfer ) %] - [% IF ( soundon ) %] - - [% END %] -

      This item needs to be transferred to [% Branches.GetName( returnbranch ) %]

      +

      This item needs to be transferred to [% Branches.GetName( returnbranch ) %]

      Transfer now?
      [% IF itemnumber %] - + [% END %] - - + + @@ -337,10 +427,7 @@ $(document).ready(function () { [% IF ( diffbranch ) %] - [% IF ( soundon ) %] - - [% END %] -

      Item consigned:

      +

      Item consigned:

      @@ -368,87 +455,146 @@ $(document).ready(function () { [% IF ( reserved ) %] + [% END %] [% END %] [% IF ( errmsgloop ) %] -
      +

      Check in message

      + [% IF itembiblionumber %] +

      [% itembarcode |html %]: [% title |html %]

      + [% END %] [% FOREACH errmsgloo IN errmsgloop %] [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]

      - Not for loan status updated - from + Not for loan status updated. +
      Old value: [% IF errmsgloo.NotForLoanStatusUpdated.from %] - [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %] + [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %]. [% ELSE %] - being available for loan + Available for loan. [% END %] - to +
      New value: [% IF errmsgloo.NotForLoanStatusUpdated.to %] - [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %] + [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %]. [% ELSE %] - being available for loan + Available for loan. [% END %]

      [% END %] [% IF ( errmsgloo.badbarcode ) %] -

      No item with barcode: [% errmsgloo.msg %]

      +

      No item with barcode: [% errmsgloo.msg | html %]

      [% END %] [% IF ( errmsgloo.ispermanent ) %] -

      Please return to [% errmsgloo.msg %]

      +

      Please return item to: [% Branches.GetName( errmsgloo.msg ) %]

      [% END %] [% IF ( errmsgloo.notissued ) %]

      Not checked out.

      @@ -461,35 +607,30 @@ $(document).ready(function () { [% IF ( LostItemFeeRefunded ) %]

      A refund has been applied to the borrowing patron's account.

      [% ELSE %] -

      Any lost item fees for this item will remain on the patron's account

      +

      Any lost item fees for this item will remain on the patron's account.

      [% END %] [% END %] [% IF ( errmsgloo.withdrawn ) %] [% IF BlockReturnOfWithdrawnItems %]
      Cannot check in
      -

      Item is withdrawn. NOT CHECKED IN

      +

      NOT CHECKED IN

      +

      Item is withdrawn.

      [% ELSE %]

      Item is withdrawn.

      [% END %] [% END %] [% IF ( errmsgloo.debarred ) %] -

      [% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %]) is now debarred until [% errmsgloo.debarred | $KohaDates %]

      +

      [% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %]) is now debarred until [% errmsgloo.debarred | $KohaDates %].

      [% END %] [% IF ( errmsgloo.prevdebarred ) %] -

      Reminder: Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %]

      +

      Reminder: Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].

      [% END %] [% IF ( errmsgloo.foreverdebarred ) %] -

      Reminder: Patron has an indefinite restriction

      +

      Reminder: Patron has an indefinite restriction.

      [% END %] [% END %] -[% IF ( soundon ) %] - -[% END %] [% ELSE %] -[% IF ( soundon ) %] - -[% END %] [% END %]
      @@ -592,7 +733,7 @@ $(document).ready(function () { [% IF ( riloop ) %]

      Checked-in items

      [% title |html %]
      - + [% FOREACH riloo IN riloop %] @@ -605,21 +746,30 @@ $(document).ready(function () { [% END %] + [% riloo.itemtitle |html %] + + [% IF ( riloo.enumchron ) %] +
      + [% riloo.enumchron %] + [% END %] + - - + + - + + - [% END %]
      Due dateTitleAuthorBarcodeHome libraryHolding libraryShelving locationCall numberTypePatronNote
      Due dateTitleAuthorBarcodeHome libraryHolding libraryShelving locationCall numberDate acquiredTypePatronNote
      - [% riloo.itemtitle |html %] [% riloo.itemauthor %] [% riloo.barcode %][% riloo.homebranch %][% riloo.holdingbranch %][% Branches.GetName( riloo.homebranch ) %][% Branches.GetName( riloo.holdingbranch ) %] [% riloo.location %] [% riloo.itemcallnumber %][% riloo.itemtype %] [% riloo.ccode %][% riloo.dateaccessioned | $KohaDates %][% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %] [% IF ( riloo.duedate ) %] [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %]) [% ELSE %]Not checked out[% END %][% IF ( riloo.bornote ) %][% riloo.bornote %]
      [% END %] - [% IF ( riloo.itemnote ) %][% riloo.itemnote %][% END %] +
      + [% IF ( riloo.bornote ) %]

      [% riloo.bornote %]

      [% END %] + [% IF ( riloo.itemnote ) %]

      [% riloo.itemnote %]

      [% END %] + [% IF ( riloo.itemnotes_nonpublic ) %]

      [% riloo.itemnotes_nonpublic %]

      [% END %]