diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 4aba40cefa..433c1de2bb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -83,918 +83,813 @@ [% WRAPPER 'main-container.inc' wide_centered => ( op == 'illlist' ? 0 : 1 ) aside = ( op == 'illlist' ? 'ill-filter' : '' ) %] - [% IF op == 'illlist' %] - - [% END %] + [% UNLESS blocking_error %] -
- [% IF !backends_available || !has_branch || ill_deprecated_backend_freeform_is_installed %] -
ILL module configuration problem. Take a look at the about page
- [% ELSE %] - [% INCLUDE 'ill-toolbar.inc' %] - [% INCLUDE 'ill-batch-modal.inc' %] + [% IF op == 'illlist' %] + + [% END %] - [% IF whole.error %] -

Error performing operation

- -

We encountered an error:

-

- [% SWITCH whole.status %] - [% CASE 'invalid_patron' %] -

The patron ID you entered is invalid.
- [% CASE 'invalid_biblio' %] -
The bibliographic record ID you entered is invalid.
- [% CASE %] -
[% whole.message | html %] ([% whole.status | html %])
- [% END %] -

- [% END %] +
+ [% IF !backends_available || !has_branch || ill_deprecated_backend_freeform_is_installed %] +
ILL module configuration problem. Take a look at the about page
+ [% ELSE %] + [% INCLUDE 'ill-toolbar.inc' %] + [% INCLUDE 'ill-batch-modal.inc' %] - [% IF whole.success %] -

[% whole.success | html %]

- [% END %] - - [% IF op == 'cud-create' %] -

New ILL request

- [% PROCESS $whole.template %] - [% ELSIF op == 'confirm' %] -

Confirm ILL request

- [% PROCESS $whole.template %] - [% ELSIF op == 'mark_completed' %] -

Complete ILL request

-

Proceeding with this action will set this request to 'Completed'.

-

You can select a status alias from the available options:

- [% base_url = "/cgi-bin/koha/ill/ill-requests.pl" %] - [% proceed_url = base_url _ "?method=mark_completed&stage=complete" _ "&illrequest_id=" _ request.illrequest_id %] -
- - - - -
- - Cancel -
-
- [% ELSIF op == 'cud-cancel' and !whole.error %] -

Cancel a confirmed request

- [% PROCESS $whole.template %] - [% ELSIF op == 'check_out' and !whole.error %] - [% IF !whole.stage || whole.stage == 'form' %] -

Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]

- [% IF !request.biblio_id || request.biblio_id.length == 0 %] -
This item cannot be checked out as it has no bibliographic record associated with it
- [% END %] - [% IF whole.value.errors.itemcount %] -
The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.
- [% END %] - [% IF whole.value.errors.item_creation %] -
An unknown error occurred while trying to add an item
- [% END %] - [% IF whole.value.errors.item_check_out %] -
An unknown error occurred while trying to check out the item
- [% END %] - [% IF whole.value.check_out_errors %] - [% IF whole.value.check_out_errors.error.STATS %] -
Local use recorded
- [% ELSIF whole.value.check_out_errors.error.UNKNOWN_BARCODE %] -
The bibliographic record's item contains an unknown (or empty) barcode.
- [% ELSE %] -
- There was a problem checking this item out, please check for problems with the patron's account -
- [% END %] - [% END %] - [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %] -
- [% INCLUDE 'csrf-token.inc' %] -
- Check out details - [% items = whole.value.biblio.items.unblessed %] - [% IF items.size == 1 %] -

The bibliographic record for this request already has an item attached to it, - you are about to check it out

- [% ELSE %] -

A bibliographic record for this request exists, but no item. You are about to create an item and check it out

- [% END %] -
    -
  1. - - - [% IF whole.value.errors.inhouse %] - You must choose a valid patron - [% END %] -
    If you do not wish to check out the item to [% INCLUDE 'patron-title.inc' patron = request.patron %] and would rather issue it to an in-house statistical patron, choose the patron here
    -
  2. -
  3. - - [% IF items.size != 1 %] - - [% ELSE %] - [% FOREACH type IN whole.value.itemtypes %] - [% IF type.itemtype == items.0.itype %] - [% type.description | html %] - [% END %] - [% END %] - [% END %] - [% IF whole.value.errors.item_type %] - You must choose an item type - [% END %] -
  4. - [% IF items.size == 1 %] -
  5. - - [% items.0.barcode | html %] -
  6. - [% END %] -
  7. - - [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %] - [% IF items.size != 1 %] - - [% ELSE %] - [% FOREACH branch IN whole.value.libraries.unblessed %] - [% IF branch.branchcode == branchcode %] - [% branch.branchname | html %] - [% END %] - [% END %] - [% END %] - [% IF whole.value.errors.branchcode %] - You must choose a library - [% END %] -
  8. -
  9. - - [% INCLUDE 'date-format.inc' %] -
    If you do not specify a due date, it will be set according to circulation rules
    -
  10. -
-
-
- - - [% IF items.size == 1 %] - - - [% END %] - - - Cancel -
-
- [% END %] - [% IF whole.value.check_out_errors.error.STATS %] - Return to request - [% END %] - [% ELSIF whole.stage == 'done_check_out' %] -

Item checked out

-
- Check out details -
    -
  1. - - [% INCLUDE 'patron-title.inc' patron = whole.value.patron %] -
  2. -
  3. - - [% whole.value.check_out.date_due | $KohaDates as_due_date => 1 %] -
  4. -
-
-
- Return to request -
+

[% END %] - [% ELSIF op == 'generic_confirm' %] -

Place request with partner libraries

- [% IF error %] - [% IF error == 'no_target_email' %] -
No target email addresses found. Either select at least one partner or check your ILL partner library records.
- [% ELSIF error == 'no_library_email' %] -
Your library has no usable email address. Please set it.
- [% ELSIF error == 'unkown_error' %] -
Unknown error processing your request. Contact your administrator.
- [% END %] + + [% IF whole.success %] +

[% whole.success | html %]

[% END %] - - [% IF whole.value.partners %] - [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?op=illview&illrequest_id=" _ request.illrequest_id %] -
- [% INCLUDE 'csrf-token.inc' %] -
- Interlibrary loan request details -
    -
  1. - - -
  2. -
  3. - - - [% IF Koha.Preference('ILLCheckAvailability') %] -
    Partners available for searching: none
    - - [% END %] -
  4. -
  5. - - -
  6. -
  7. - - -
  8. -
- - - -
-
- - Cancel -
-
- [% IF Koha.Preference('ILLCheckAvailability') %] - - [% END %] - [% ELSE %] -
- Interlibrary loan request details -

No partners have been defined yet. Please create appropriate patron records (by default IL category).

-

Be sure to provide email addresses for these patrons.

-

Cancel

-
- [% END %] - - [% ELSIF op == 'edit_action' %] -
- [% INCLUDE 'csrf-token.inc' %] -
- Request details -
    - [% type = request.get_type %] -
  1. - - -
  2. - [% PROCESS select_manager_form manager => request.manager required_permission => CAN_user_ill %] -
  3. - - -
  4. -
  5. - - -
  6. -
  7. - - [% stat = request.status %] - [% current_alias = request.status_alias %] - -
  8. - [% IF batches.count > 0 %] -
  9. - - -
  10. - [% END %] -
  11. - - [% request.updated | $KohaDates with_hours => 1 %] -
  12. -
  13. - - [% IF type %][% type | html %][% ELSE %]N/A[% END %] -
  14. -
  15. - - [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A[% END %] -
  16. -
  17. - - -
  18. -
  19. - - [% request.id_prefix _ request.illrequest_id | html %] -
  20. -
  21. - - -
  22. -
  23. - - -
  24. - [% IF stat == 'UNAUTH' %] -

    Unauthenticated request details

    - [% INCLUDE unauthenticated_details %] - [% END %] -
-
-
- - - - - Cancel -
-
- [% ELSIF op == 'delete_confirm' %] -
-

Are you sure you wish to delete this request?

-
- [% INCLUDE 'csrf-token.inc' %] - - - - -
- No, do not delete -
- [% ELSIF op == 'illview' %] - [% IF whole.template.length > 0 %] + + [% IF op == 'cud-create' %] +

New ILL request

[% PROCESS $whole.template %] - [% END %] - [% req_status = request.status %] - - [% IF error %] - [% IF error == 'migrate_target' %] -
The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
- [% END %] - [% END %] - - [% IF tran_success %] - [% succ_methods = [] %] - [% IF tran_success.match('email') %] - [% succ_methods.push('email') %] - [% END %] - [% IF tran_success.match('sms') %] - [% succ_methods.push('SMS') %] - [% END %] -
The requested notice was queued for delivery by [% succ_methods.join(', ') | html %]
- [% END %] - [% IF tran_fail %] - [% fail_methods = [] %] - [% IF tran_fail.match('email') %] - [% fail_methods.push('email') %] - [% END %] - [% IF tran_fail.match('sms') %] - [% fail_methods.push('SMS') %] - [% END %] -
The requested notice was NOT queued for delivery by [% fail_methods.join(', ') | html %]
- [% END %] - -

Manage ILL request [% request.id_prefix _ request.illrequest_id | html %]

-
- [% FOREACH action IN request.available_actions %] - [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %] - [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %] - [% needs_all = action.needs_all.size ? action.needs_all : [] %] - [% has_prefs_count = 0 %] - [% has_perms_count = 0 %] - [% has_all_count = 0 %] - [% FOREACH pref IN needs_prefs %] - [% IF Koha.Preference(pref) %] - [% has_prefs_count = has_prefs_count + 1 %] + [% ELSIF op == 'confirm' %] +

Confirm ILL request

+ [% PROCESS $whole.template %] + [% ELSIF op == 'mark_completed' %] +

Complete ILL request

+

Proceeding with this action will set this request to 'Completed'.

+

You can select a status alias from the available options:

+ [% base_url = "/cgi-bin/koha/ill/ill-requests.pl" %] + [% proceed_url = base_url _ "?method=mark_completed&stage=complete" _ "&illrequest_id=" _ request.illrequest_id %] +
+ + + + +
+ + Cancel +
+
+ [% ELSIF op == 'cud-cancel' and !whole.error %] +

Cancel a confirmed request

+ [% PROCESS $whole.template %] + [% ELSIF op == 'check_out' and !whole.error %] + [% IF !whole.stage || whole.stage == 'form' %] +

Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]

+ [% IF !request.biblio_id || request.biblio_id.length == 0 %] +
This item cannot be checked out as it has no bibliographic record associated with it
[% END %] - [% FOREACH perm IN needs_perms %] - [% perm_name = 'CAN_' _ perm %] - [% IF ($perm_name) %] - [% has_perms_count = has_perms_count + 1 %] - [% END %] + [% IF whole.value.errors.itemcount %] +
The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.
[% END %] - [% FOREACH func IN needs_all %] - [% IF func(request) %] - [% has_all_count = has_all_count + 1 %] - [% END %] + [% IF whole.value.errors.item_creation %] +
An unknown error occurred while trying to add an item
[% END %] - [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %] - [% IF action.method == 'migrate' %] - [% IF Koha.Preference('AutoILLBackendPriority') && backends.size > 1 %] - - - [% action.ui_method_name | html %] - - [% ELSIF backends.size > 2 %] - -
-

Request details

-

Details from library

- [% IF request.get_copyright_clearance_confirmed %] -
Patron has confirmed copyright clearance for this request
- [% END %] -
-
    - [% IF request.orderid %] -
  1. - Order ID: - [% request.orderid | html %] -
  2. - [% END %] - [% IF request.borrowernumber %] -
  3. - Patron: - [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %] - [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] -
  4. - [% END %] - [% PROCESS select_manager_show manager => request.manager display => "fieldset" %] - [% IF request.biblio_id %] -
  5. - Bibliographic record ID: - [% request.biblio_id | html %] -
  6. - [% END %] -
  7. - Library: - [% Branches.GetName(request.branchcode) | html %] -
  8. -
  9. - Status: - [% IF request.statusalias %] - [% request.statusalias.lib | html %] - [% ELSE %] - [% request.capabilities.$req_status.name | html %] - [% IF request.requested_partners %] - ([% request.requested_partners | html %]) - [% END %] - [% END %] -
  10. - [% IF request.ill_batch > 0 %] -
  11. - Batch: - [% request.ill_batch.name | html %] -
  12. - [% END %] -
  13. - Last updated: - [% request.updated | $KohaDates with_hours => 1 %] -
  14. - [% type = request.get_type %] - [% IF type %] -
  15. - Request type: - [% type | html %] -
  16. - [% END %] - [% IF request.accessurl %] -
  17. - Access URL: - View document -
  18. - [% END %] - [% historycheck_requests = request.get_history_check_requests %] - [% IF historycheck_requests.count %] -
  19. - History check requests: - [% FOREACH historycheck_request IN historycheck_requests %] - [% SET status = historycheck_request.status %] - Request [% historycheck_request.id_prefix | html %][% historycheck_request.illrequest_id | html %] - ([% historycheck_request.capabilities.$status.name | html %]) on [% historycheck_request.placed | $KohaDates %] - [% END %] -
  20. - [% END %] - [% type_disclaimer_value = request.get_type_disclaimer_value %] - [% IF type_disclaimer_value %] -
  21. - Type disclaimer value: - [% type_disclaimer_value | html %] -
  22. - [% END %] - [% type_disclaimer_date = request.get_type_disclaimer_date %] - [% IF type_disclaimer_date %] -
  23. - Type disclaimer date: - [% type_disclaimer_date | $KohaDates with_hours => 1 %] -
  24. - [% END %] - [% IF request.cost %] -
  25. - Cost: - [% request.cost | $Price %] -
  26. - [% END %] - [% IF request.price_paid %] -
  27. - Price paid: - [% request.price_paid | $Price %] -
  28. - [% END %] - [% IF request.notesstaff %] -
  29. - Staff notes: -
    [% request.notesstaff | $raw %]
    -
  30. - [% END %] - [% IF request.notesopac %] -
  31. - Notes: -

    [% request.notesopac | html %]

    -
  32. - [% END %] -
-
- [% IF req_status == 'UNAUTH' %] -
-

Unauthenticated request details

-
    - [% INCLUDE unauthenticated_details %] -
-
- [% END %] -
-

Details from supplier ([% request.backend | html %])

-
    - [% FOREACH meta IN request.metadata %] - [% IF meta.value.defined && meta.value.length %] -
  1. - [% meta.key.replace('_',' ') | html %]: - [% meta.value | html %] -
  2. - [% END %] - [% END %] -
-
-
- - - - - -
-

[% request.illcomments.count | html %] comments

- [% IF request.illcomments.count && request.illcomments.count > 0 %] - [% FOREACH comment IN request.illcomments %] -
-
Comment by: - [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %] - [% comment.timestamp | $KohaDates with_hours => 1 %]
-

[% comment.comment | html %]

-
- [% END %] - [% END %] -
-

Add comment

-
-
- + [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %] + [% INCLUDE 'csrf-token.inc' %] -
+ Check out details + [% items = whole.value.biblio.items.unblessed %] + [% IF items.size == 1 %] +

The bibliographic record for this request already has an item attached to + it, you are about to check it out

+ [% ELSE %] +

A bibliographic record for this request exists, but no item. You are about to create an item and check it out

+ [% END %]
    -
  1. - - - Required +
  2. + + + [% IF whole.value.errors.inhouse %] + You must choose a valid patron + [% END %] +
    If you do not wish to check out the item to [% INCLUDE 'patron-title.inc' patron = request.patron %] and would rather issue it to an in-house statistical patron, choose the patron here
    +
  3. +
  4. + + [% IF items.size != 1 %] + + [% ELSE %] + [% FOREACH type IN whole.value.itemtypes %] + [% IF type.itemtype == items.0.itype %] + [% type.description | html %] + [% END %] + [% END %] + [% END %] + [% IF whole.value.errors.item_type %] + You must choose an item type + [% END %] +
  5. + [% IF items.size == 1 %] +
  6. + + [% items.0.barcode | html %] +
  7. + [% END %] +
  8. + + [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %] + [% IF items.size != 1 %] + + [% ELSE %] + [% FOREACH branch IN whole.value.libraries.unblessed %] + [% IF branch.branchcode == branchcode %] + [% branch.branchname | html %] + [% END %] + [% END %] + [% END %] + [% IF whole.value.errors.branchcode %] + You must choose a library + [% END %] +
  9. +
  10. + + [% INCLUDE 'date-format.inc' %] +
    If you do not specify a due date, it will be set according to circulation rules
+ + + [% IF items.size == 1 %] + + + [% END %] + + Cancel
-
-
-
- [% ELSIF op == 'illlist' %] - -

- [% IF !batch %] - View ILL requests - [% ELSIF batch %] - View ILL requests for batch "[% batch.name | html %]" - [% END %] -

-
- [% WRAPPER tabs id= "ill-list-tabs" %] - [% WRAPPER tabs_nav %] - [% WRAPPER tab_item tabname= "ill-list-tab-all" bt_active= 1 %] - All - [% END %] - [% FOREACH illreq_tab IN illreq_tabs %] - [% WRAPPER tab_item tabname= "ill-list-tab-${loop.index}" %] - [% illreq_tab.name | html %] - [% END %] - [% END %] - [% END # /WRAPPER tabs_nav %] - [% END %] -

Details for all requests

- [% INCLUDE 'ill-list-table.inc' %] -
- - [% ELSIF op == 'availability' %] - -

Availability

-
-

Displaying availability results

-
- [% INCLUDE 'csrf-token.inc' %] - [% FOREACH key IN whole.keys %] - [% value = whole.$key %] - [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] - - [% END %] [% END %] - [% custom_keys = whole.custom_key.split('\0') %] - [% custom_values = whole.custom_value.split('\0') %] - [% i = 0 %] - [% FOREACH custom_key IN custom_keys %] - - - [% i = i + 1 %] + [% IF whole.value.check_out_errors.error.STATS %] + Return to request [% END %] - - - -
- If you can't find what you are looking for, you can - or - cancel your request -
-
- [% FOR service IN services %] -

[% service.name | html %]

- [% INCLUDE 'ill-availability-table.inc' service=service %] - [% END %] -
- [% ELSIF op == 'typedisclaimer' %] - -

Request type disclaimer

-
-
- [% INCLUDE 'csrf-token.inc' %] + [% ELSIF whole.stage == 'done_check_out' %] +

Item checked out

- [% disclaimer.text | $raw %] - [% SET disc_av_category_code = AuthorisedValues.GetAuthValueDropbox(disclaimer.av_cat) %] - [% IF disc_av_category_code.count %] -
- - [% END %] + Check out details +
    +
  1. + + [% INCLUDE 'patron-title.inc' patron = whole.value.patron %] +
  2. +
  3. + + [% whole.value.check_out.date_due | $KohaDates as_due_date => 1 %] +
  4. +
- [% FOREACH key IN whole.keys %] - [% value = whole.$key %] - [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] - - [% END %] - [% END %] - [% custom_keys = whole.custom_key.split('\0') %] - [% custom_values = whole.custom_value.split('\0') %] - [% i = 0 %] - [% FOREACH custom_key IN custom_keys %] - - - [% i = i + 1 %] - [% END %] - - - - - Cancel + Return to request
-
-
- [% ELSIF op == 'historycheck' %] - -

Request history check

-
-
- [% INCLUDE 'csrf-token.inc' %] -

You are attempting to place the following request:

- - [% FOREACH param IN sorted_params %] - [% key = param.keys.0 %] - [% value = param.$key %] - [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' && value %] - - - [% IF key == 'branchcode' %] - - [% ELSE %] - - [% END %] - - [% END %] - [% END %] -
[% key_mapping(key) || key | ucfirst | html %][% Branches.GetName(value) | html %][% value | html %]
-   - [% IF matching_requests_for_patron.size %] -

This request has already been placed by patron [%- INCLUDE 'patron-title.inc' patron => request_patron_obj hide_patron_infos_if_needed => 1 -%]:

-
    - [% FOREACH matching_request_for_patron IN matching_requests_for_patron %] - [% SET matching_req_status = matching_request_for_patron.status %] + [% END %] + [% ELSIF op == 'generic_confirm' %] +

    Place request with partner libraries

    + [% IF error %] + [% IF error == 'no_target_email' %] +
    No target email addresses found. Either select at least one partner or check your ILL partner library records.
    + [% ELSIF error == 'no_library_email' %] +
    Your library has no usable email address. Please set it.
    + [% ELSIF error == 'unkown_error' %] +
    Unknown error processing your request. Contact your administrator.
    + [% END %] + [% END %] + + [% IF whole.value.partners %] + [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?op=illview&illrequest_id=" _ request.illrequest_id %] + + [% INCLUDE 'csrf-token.inc' %] +
    + Interlibrary loan request details +
    1. - Request [% matching_request_for_patron.id_prefix | html %][% matching_request_for_patron.illrequest_id | html %] - ([% matching_request_for_patron.capabilities.$matching_req_status.name | html %]) on [% matching_request_for_patron.placed | $KohaDates %]Filter partner libraries: + +
    2. +
    3. + + + [% IF Koha.Preference('ILLCheckAvailability') %] +
      Partners available for searching: none
      + + [% END %] +
    4. +
    5. + + +
    6. +
    7. + + +
    8. +
    + + + +
    +
    + + Cancel +
    + + [% IF Koha.Preference('ILLCheckAvailability') %] + + [% END %] + [% ELSE %] +
    + Interlibrary loan request details +

    No partners have been defined yet. Please create appropriate patron records (by default IL category).

    +

    Be sure to provide email addresses for these patrons.

    +

    Cancel

    +
    + [% END %] + + [% ELSIF op == 'edit_action' %] +
    + [% INCLUDE 'csrf-token.inc' %] +
    + Request details +
      + [% type = request.get_type %] +
    1. + + +
    2. + [% PROCESS select_manager_form manager => request.manager required_permission => CAN_user_ill %] +
    3. + + +
    4. +
    5. + + +
    6. +
    7. + + [% stat = request.status %] + [% current_alias = request.status_alias %] + +
    8. + [% IF batches.count > 0 %] +
    9. + +
    10. [% END %] -
- [% END %] +
  • + + [% request.updated | $KohaDates with_hours => 1 %] +
  • +
  • + + [% IF type %][% type | html %][% ELSE %]N/A[% END %] +
  • +
  • + + [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A[% END %] +
  • +
  • + + +
  • +
  • + + [% request.id_prefix _ request.illrequest_id | html %] +
  • +
  • + + +
  • +
  • + + +
  • + [% IF stat == 'UNAUTH' %] +

    Unauthenticated request details

    + [% INCLUDE unauthenticated_details %] + [% END %] + +
    + + + + + Cancel +
    + + [% ELSIF op == 'delete_confirm' %] +
    +

    Are you sure you wish to delete this request?

    +
    + [% INCLUDE 'csrf-token.inc' %] + + + + +
    + No, do not delete +
    + [% ELSIF op == 'illview' %] + [% IF whole.template.length > 0 %] + [% PROCESS $whole.template %] + [% END %] + [% req_status = request.status %] + + [% IF error %] + [% IF error == 'migrate_target' %] +
    The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
    + [% END %] + [% END %] + + [% IF tran_success %] + [% succ_methods = [] %] + [% IF tran_success.match('email') %] + [% succ_methods.push('email') %] + [% END %] + [% IF tran_success.match('sms') %] + [% succ_methods.push('SMS') %] + [% END %] +
    The requested notice was queued for delivery by [% succ_methods.join(', ') | html %]
    + [% END %] + [% IF tran_fail %] + [% fail_methods = [] %] + [% IF tran_fail.match('email') %] + [% fail_methods.push('email') %] + [% END %] + [% IF tran_fail.match('sms') %] + [% fail_methods.push('SMS') %] + [% END %] +
    The requested notice was NOT queued for delivery by [% fail_methods.join(', ') | html %]
    + [% END %] + +

    Manage ILL request [% request.id_prefix _ request.illrequest_id | html %]

    +
    + [% FOREACH action IN request.available_actions %] + [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %] + [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %] + [% needs_all = action.needs_all.size ? action.needs_all : [] %] + [% has_prefs_count = 0 %] + [% has_perms_count = 0 %] + [% has_all_count = 0 %] + [% FOREACH pref IN needs_prefs %] + [% IF Koha.Preference(pref) %] + [% has_prefs_count = has_prefs_count + 1 %] + [% END %] + [% END %] + [% FOREACH perm IN needs_perms %] + [% perm_name = 'CAN_' _ perm %] + [% IF ($perm_name) %] + [% has_perms_count = has_perms_count + 1 %] + [% END %] + [% END %] + [% FOREACH func IN needs_all %] + [% IF func(request) %] + [% has_all_count = has_all_count + 1 %] + [% END %] + [% END %] + [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %] + [% IF action.method == 'migrate' %] + [% IF Koha.Preference('AutoILLBackendPriority') && backends.size > 1 %] + + + [% action.ui_method_name | html %] + + [% ELSIF backends.size > 2 %] + + [% ELSIF backends.size == 2 %] + [% FOREACH backend IN backends %] + [% IF backend != request.backend %] + + + [% action.ui_method_name | html %] + + [% END %] + [% END %] + [% END %] + [% ELSIF action.method != 0 %] + + + [% action.ui_method_name | html %] + + [% END %] + [% END %] + + + Edit request + + [% IF request.borrowernumber %] + + [% END %] + + + Display supplier metadata + + + + ILL request log + +
    +
    +

    Request details

    +

    Details from library

    + [% IF request.get_copyright_clearance_confirmed %] +
    Patron has confirmed copyright clearance for this request
    + [% END %] +
    +
      + [% IF request.orderid %] +
    1. + Order ID: + [% request.orderid | html %] +
    2. + [% END %] + [% IF request.borrowernumber %] +
    3. + Patron: + [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %] + [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] +
    4. + [% END %] + [% PROCESS select_manager_show manager => request.manager display => "fieldset" %] + [% IF request.biblio_id %] +
    5. + Bibliographic record ID: + [% request.biblio_id | html %] +
    6. + [% END %] +
    7. + Library: + [% Branches.GetName(request.branchcode) | html %] +
    8. +
    9. + Status: + [% IF request.statusalias %] + [% request.statusalias.lib | html %] + [% ELSE %] + [% request.capabilities.$req_status.name | html %] + [% IF request.requested_partners %] + ([% request.requested_partners | html %]) + [% END %] + [% END %] +
    10. + [% IF request.ill_batch > 0 %] +
    11. + Batch: + [% request.ill_batch.name | html %] +
    12. + [% END %] +
    13. + Last updated: + [% request.updated | $KohaDates with_hours => 1 %] +
    14. + [% type = request.get_type %] + [% IF type %] +
    15. + Request type: + [% type | html %] +
    16. + [% END %] + [% IF request.accessurl %] +
    17. + Access URL: + View document +
    18. + [% END %] + [% historycheck_requests = request.get_history_check_requests %] + [% IF historycheck_requests.count %] +
    19. + History check requests: + [% FOREACH historycheck_request IN historycheck_requests %] + [% SET status = historycheck_request.status %] + Request [% historycheck_request.id_prefix | html %][% historycheck_request.illrequest_id | html %] + ([% historycheck_request.capabilities.$status.name | html %]) on [% historycheck_request.placed | $KohaDates %] + [% END %] +
    20. + [% END %] + [% type_disclaimer_value = request.get_type_disclaimer_value %] + [% IF type_disclaimer_value %] +
    21. + Type disclaimer value: + [% type_disclaimer_value | html %] +
    22. + [% END %] + [% type_disclaimer_date = request.get_type_disclaimer_date %] + [% IF type_disclaimer_date %] +
    23. + Type disclaimer date: + [% type_disclaimer_date | $KohaDates with_hours => 1 %] +
    24. + [% END %] + [% IF request.cost %] +
    25. + Cost: + [% request.cost | $Price %] +
    26. + [% END %] + [% IF request.price_paid %] +
    27. + Price paid: + [% request.price_paid | $Price %] +
    28. + [% END %] + [% IF request.notesstaff %] +
    29. + Staff notes: +
      [% request.notesstaff | $raw %]
      +
    30. + [% END %] + [% IF request.notesopac %] +
    31. + Notes: +

      [% request.notesopac | html %]

      +
    32. + [% END %] +
    +
    + [% IF req_status == 'UNAUTH' %] +
    +

    Unauthenticated request details

    +
      + [% INCLUDE unauthenticated_details %] +
    +
    + [% END %] +
    +

    Details from supplier ([% request.backend | html %])

    +
      + [% FOREACH meta IN request.metadata %] + [% IF meta.value.defined && meta.value.length %] +
    1. + [% meta.key.replace('_',' ') | html %]: + [% meta.value | html %] +
    2. + [% END %] + [% END %] +
    +
    +
    + + + + + +
    +

    [% request.illcomments.count | html %] comments

    + [% IF request.illcomments.count && request.illcomments.count > 0 %] + [% FOREACH comment IN request.illcomments %] +
    +
    Comment by: + [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %] + [% comment.timestamp | $KohaDates with_hours => 1 %]
    +

    [% comment.comment | html %]

    +
    + [% END %] + [% END %] +
    +

    Add comment

    +
    +
    + + [% INCLUDE 'csrf-token.inc' %] + +
    +
      +
    1. + + + Required +
    2. +
    +
    +
    + +
    +
    +
    +
    +
    + [% ELSIF op == 'illlist' %] + +

    + [% IF !batch %] + View ILL requests + [% ELSIF batch %] + View ILL requests for batch "[% batch.name | html %]" + [% END %] +

    +
    + [% WRAPPER tabs id= "ill-list-tabs" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "ill-list-tab-all" bt_active= 1 %] + All + [% END %] + [% FOREACH illreq_tab IN illreq_tabs %] + [% WRAPPER tab_item tabname= "ill-list-tab-${loop.index}" %] + [% illreq_tab.name | html %] + [% END %] + [% END %] + [% END # /WRAPPER tabs_nav %] + [% END %] +

    Details for all requests

    + [% INCLUDE 'ill-list-table.inc' %] +
    + + [% ELSIF op == 'availability' %] + +

    Availability

    +
    +

    Displaying availability results

    +
    + [% INCLUDE 'csrf-token.inc' %] [% FOREACH key IN whole.keys %] [% value = whole.$key %] [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] @@ -1011,58 +906,40 @@ [% END %] - - - Cancel - -
    -
    - [% ELSIF op == 'confirmautoill' %] - - [% IF(auto_migrate) %] -

    Confirm switch provider

    - [% ELSE %] -

    Confirm request

    - [% END %] -
    -
    - [% INCLUDE 'csrf-token.inc' %] - [% FOREACH key IN whole.keys %] - [% value = whole.$key %] - [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] - - [% END %] + +
    + If you can't find what you are looking for, you can + or + cancel your request +
    +
    + [% FOR service IN services %] +

    [% service.name | html %]

    + [% INCLUDE 'ill-availability-table.inc' service=service %] [% END %] - [% custom_keys = whole.custom_key.split('\0') %] - [% custom_values = whole.custom_value.split('\0') %] - [% i = 0 %] - [% FOREACH custom_key IN custom_keys %] - - - [% i = i + 1 %] - [% END %] - - - [% IF auto_migrate %] - Return to request - [% ELSE %] - - [% END %] - -
    - [% INCLUDE 'csrf-token.inc' %] -
    -
    -

    -
    -
    - [% IF auto_migrate %] - Confirm - Cancel - [% ELSE %] +
    + [% ELSIF op == 'typedisclaimer' %] + +

    Request type disclaimer

    +
    + + [% INCLUDE 'csrf-token.inc' %] +
    + [% disclaimer.text | $raw %] + [% SET disc_av_category_code = AuthorisedValues.GetAuthValueDropbox(disclaimer.av_cat) %] + [% IF disc_av_category_code.count %] +
    + + [% END %] +
    +
    [% FOREACH key IN whole.keys %] [% value = whole.$key %] - [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] + [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] [% END %] [% END %] @@ -1076,130 +953,257 @@ [% END %] - - + + Cancel +
    + +
    + [% ELSIF op == 'historycheck' %] + +

    Request history check

    +
    +
    + [% INCLUDE 'csrf-token.inc' %] +

    You are attempting to place the following request:

    + + [% FOREACH param IN sorted_params %] + [% key = param.keys.0 %] + [% value = param.$key %] + [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' && value %] + + + [% IF key == 'branchcode' %] + + [% ELSE %] + + [% END %] + + [% END %] + [% END %] +
    [% key_mapping(key) || key | ucfirst | html %][% Branches.GetName(value) | html %][% value | html %]
    +   + [% IF matching_requests_for_patron.size %] +

    This request has already been placed by patron [%- INCLUDE 'patron-title.inc' patron => request_patron_obj hide_patron_infos_if_needed => 1 -%]:

    + [% END %] - -
    -
    - [% ELSIF op == 'batch_list' %] - [% INCLUDE 'ill-batch.inc' %] - [% ELSE %] - - [% PROCESS $whole.template %] +
    + [% FOREACH key IN whole.keys %] + [% value = whole.$key %] + [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] + + [% END %] + [% END %] + [% custom_keys = whole.custom_key.split('\0') %] + [% custom_values = whole.custom_value.split('\0') %] + [% i = 0 %] + [% FOREACH custom_key IN custom_keys %] + + + [% i = i + 1 %] + [% END %] + + + + + Cancel +
    + +
    + [% ELSIF op == 'confirmautoill' %] + + [% IF(auto_migrate) %] +

    Confirm switch provider

    + [% ELSE %] +

    Confirm request

    + [% END %] +
    +
    + [% INCLUDE 'csrf-token.inc' %] + [% FOREACH key IN whole.keys %] + [% value = whole.$key %] + [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] + + [% END %] + [% END %] + [% custom_keys = whole.custom_key.split('\0') %] + [% custom_values = whole.custom_value.split('\0') %] + [% i = 0 %] + [% FOREACH custom_key IN custom_keys %] + + + [% i = i + 1 %] + [% END %] + + + [% IF auto_migrate %] + Return to request + [% ELSE %] + + [% END %] +
    +
    + [% INCLUDE 'csrf-token.inc' %] +
    +
    +

    +
    +
    + [% IF auto_migrate %] + Confirm + Cancel + [% ELSE %] + [% FOREACH key IN whole.keys %] + [% value = whole.$key %] + [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] + + [% END %] + [% END %] + [% custom_keys = whole.custom_key.split('\0') %] + [% custom_values = whole.custom_value.split('\0') %] + [% i = 0 %] + [% FOREACH custom_key IN custom_keys %] + + + [% i = i + 1 %] + [% END %] + + + + + Cancel + [% END %] +
    +
    +
    + [% ELSIF op == 'batch_list' %] + [% INCLUDE 'ill-batch.inc' %] + [% ELSE %] + + [% PROCESS $whole.template %] + [% END %] [% END %] +
    + + [% END %] + + [% BLOCK unauthenticated_details %] + [% unauthenticated_first_name = request.extended_attributes.find({'type'=>'unauthenticated_first_name'}).value %] + [% IF unauthenticated_first_name %] +
  • + First name: + [% unauthenticated_first_name | html %] +
  • [% END %] -
    - -[% END %] + [% unauthenticated_last_name = request.extended_attributes.find({'type'=>'unauthenticated_last_name'}).value %] + [% IF unauthenticated_last_name %] +
  • + Last name: + [% unauthenticated_last_name | html %] +
  • + [% END %] + [% unauthenticated_email = request.extended_attributes.find({'type'=>'unauthenticated_email'}).value %] + [% IF unauthenticated_email %] +
  • + Email: + [% unauthenticated_email | html %] +
  • + [% END %] + [% END %] -[% BLOCK unauthenticated_details %] - [% unauthenticated_first_name = request.extended_attributes.find({'type'=>'unauthenticated_first_name'}).value %] - [% IF unauthenticated_first_name %] -
  • - First name: - [% unauthenticated_first_name | html %] -
  • - [% END %] - [% unauthenticated_last_name = request.extended_attributes.find({'type'=>'unauthenticated_last_name'}).value %] - [% IF unauthenticated_last_name %] -
  • - Last name: - [% unauthenticated_last_name | html %] -
  • - [% END %] - [% unauthenticated_email = request.extended_attributes.find({'type'=>'unauthenticated_email'}).value %] - [% IF unauthenticated_email %] -
  • - Email: - [% unauthenticated_email | html %] -
  • - [% END %] -[% END %] + [% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'js-biblio-format.inc' %] + [% INCLUDE 'calendar.inc' %] + [% INCLUDE 'select2.inc' %] + [% IF op == 'edit_action' %] + [% INCLUDE 'select_manager.inc' add_modal => 1, manager => request.manager, filter => 'ill_users' %] + [% END %] + [% IF metadata_enrichment_services %] + + + [% END %] + - - [% END %] - - - [% INCLUDE 'ill-list-table-strings.inc' %] - [% INCLUDE 'ill-batch-table-strings.inc' %] - [% INCLUDE 'ill-batch-modal-strings.inc' %] - [% Asset.js("js/ill-list-table.js") | $raw %] - [% Asset.js("js/ill-batch.js") | $raw %] - [% Asset.js("js/ill-batch-table.js") | $raw %] - [% Asset.js("js/ill-batch-modal.js") | $raw %] - [% IF (op == 'availability' || op == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %] - [% Asset.js("js/ill-availability.js") | $raw %] - [% END %] - [% IF (op == 'confirmautoill' && Koha.Preference('AutoILLBackendPriority')) %] - [% Asset.js("js/ill-autobackend.js") | $raw %] - [% END %] - [% IF op == 'availability' && Koha.Preference('ILLCheckAvailability') %] - - [% END %] - [% IF op == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %] - [% Asset.js("js/ill-availability-partner.js") | $raw %] - [% END %] - [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] + [% INCLUDE 'ill-list-table-strings.inc' %] + [% INCLUDE 'ill-batch-table-strings.inc' %] + [% INCLUDE 'ill-batch-modal-strings.inc' %] + [% Asset.js("js/ill-list-table.js") | $raw %] + [% Asset.js("js/ill-batch.js") | $raw %] + [% Asset.js("js/ill-batch-table.js") | $raw %] + [% Asset.js("js/ill-batch-modal.js") | $raw %] + [% IF (op == 'availability' || op == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %] + [% Asset.js("js/ill-availability.js") | $raw %] + [% END %] + [% IF (op == 'confirmautoill' && Koha.Preference('AutoILLBackendPriority')) %] + [% Asset.js("js/ill-autobackend.js") | $raw %] + [% END %] + [% IF op == 'availability' && Koha.Preference('ILLCheckAvailability') %] + + [% END %] + [% IF op == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %] + [% Asset.js("js/ill-availability-partner.js") | $raw %] + [% END %] + [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] + [% END # UNLESS blocking_error %] [% END %] [% TRY %]