- [% IF !backends_available || !has_branch || ill_deprecated_backend_freeform_is_installed %]
-
- [% ELSE %]
- [% INCLUDE 'ill-toolbar.inc' %]
- [% INCLUDE 'ill-batch-modal.inc' %]
+ [% IF op == 'illlist' %]
+
+ [% END %]
- [% IF whole.error %]
-
- [% SWITCH whole.status %]
- [% CASE 'invalid_patron' %]
-
- [% 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 %]
-
- [% 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 %]
-
- [% 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
-
-
- Checked out to:
- [% INCLUDE 'patron-title.inc' patron = whole.value.patron %]
-
-
- Due date:
- [% whole.value.check_out.date_due | $KohaDates as_due_date => 1 %]
-
-
-
-
- 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 %]
-
- [% IF Koha.Preference('ILLCheckAvailability') %]
-
-
-
-
-
- [% FOR service IN services %]
-
[% service.name | html %]
- [% INCLUDE 'ill-availability-table.inc' service=service %]
- [% END %]
-
-
-
-
-
-
- [% 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 %]
-
- Patron ID:
-
-
- [% PROCESS select_manager_form manager => request.manager required_permission => CAN_user_ill %]
-
- Bibliographic record ID:
-
-
-
- Library:
-
- [% PROCESS options_for_libraries libraries => Branches.all( selected => request.branchcode ) %]
-
-
-
- Status:
- [% stat = request.status %]
- [% current_alias = request.status_alias %]
-
- [% request.capabilities.$stat.name | html %]
- [% FOREACH alias IN AuthorisedValues.Get('ILL_STATUS_ALIAS') %]
- [% alias.lib | html %]
- [% END %]
-
-
- [% IF batches.count > 0 %]
-
- Batch:
-
-
- [% FOREACH batch IN batches %]
- [% batch.name | html %]
- [% END %]
-
-
- [% END %]
-
- Last updated:
- [% request.updated | $KohaDates with_hours => 1 %]
-
-
- Request type:
- [% IF type %][% type | html %][% ELSE %]N/A [% END %]
-
-
- Cost:
- [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A [% END %]
-
-
- Price paid:
-
-
-
- Request ID:
- [% request.id_prefix _ request.illrequest_id | html %]
-
-
- Staff notes:
- [% request.notesstaff | html %]
-
-
- OPAC notes:
- [% request.notesopac | 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' %]
-
-
-
- Yes, delete
-
-
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 %]
+
+
+
+ [% FOREACH alias IN AuthorisedValues.Get('ILL_STATUS_ALIAS') %]
+ [% alias.lib | html %]
[% END %]
+
+
+
+
+
+ Complete request
+ 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 %]
-
-
- [% action.ui_method_name | html %]
-
-
+ [% 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
- [% 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 %]
-
-
- Send notice to patron
-
-
-
- [% 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 %]
-
- Order ID:
- [% request.orderid | html %]
-
- [% END %]
- [% IF request.borrowernumber %]
-
- Patron:
- [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
- [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
-
- [% END %]
- [% PROCESS select_manager_show manager => request.manager display => "fieldset" %]
- [% IF request.biblio_id %]
-
- Bibliographic record ID:
- [% request.biblio_id | html %]
-
- [% END %]
-
- Library:
- [% Branches.GetName(request.branchcode) | html %]
-
-
- 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 %]
-
- [% IF request.ill_batch > 0 %]
-
- Batch:
- [% request.ill_batch.name | html %]
-
- [% END %]
-
- Last updated:
- [% request.updated | $KohaDates with_hours => 1 %]
-
- [% type = request.get_type %]
- [% IF type %]
-
- Request type:
- [% type | html %]
-
- [% END %]
- [% IF request.accessurl %]
-
- Access URL:
- View document
-
- [% END %]
- [% historycheck_requests = request.get_history_check_requests %]
- [% IF historycheck_requests.count %]
-
- 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 %]
-
- [% END %]
- [% type_disclaimer_value = request.get_type_disclaimer_value %]
- [% IF type_disclaimer_value %]
-
- Type disclaimer value:
- [% type_disclaimer_value | html %]
-
- [% END %]
- [% type_disclaimer_date = request.get_type_disclaimer_date %]
- [% IF type_disclaimer_date %]
-
- Type disclaimer date:
- [% type_disclaimer_date | $KohaDates with_hours => 1 %]
-
- [% END %]
- [% IF request.cost %]
-
- Cost:
- [% request.cost | $Price %]
-
- [% END %]
- [% IF request.price_paid %]
-
- Price paid:
- [% request.price_paid | $Price %]
-
- [% END %]
- [% IF request.notesstaff %]
-
- Staff notes:
- [% request.notesstaff | $raw %]
-
- [% END %]
- [% IF request.notesopac %]
-
- Notes:
- [% request.notesopac | html %]
-
- [% 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 %]
-
- [% meta.key.replace('_',' ') | html %]:
- [% meta.value | html %]
-
- [% END %]
- [% END %]
-
-
-
-
-
-
-
-
-
-
- [% FOREACH attr IN request.extended_attributes %]
-
- [% attr.type | html %]:
- [% attr.value | html %]
-
- [% END %]
-
-
-
-
-
-
-
-
-
-
-
-
- [% IF request.logs.size > 0 %]
- [% FOREACH log IN request.logs %]
- [% tpl = log.template %]
- [% INCLUDE $tpl log=log %]
- [% END %]
- [% ELSE %]
- There are no recorded logs for this request
- [% END %]
-
-
-
-
-
-
-
-
[% request.illcomments.count | html %] comments
- [% IF request.illcomments.count && request.illcomments.count > 0 %]
- [% FOREACH comment IN request.illcomments %]
-
- [% END %]
- [% END %]
-
-
-
-
-
- [% 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
-
continue creating your request 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
-
- [% 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 %]
-
- [% key_mapping(key) || key | ucfirst | html %]
- [% IF key == 'branchcode' %]
- [% Branches.GetName(value) | html %]
- [% ELSE %]
- [% value | html %]
- [% END %]
-
- [% END %]
- [% END %]
-
-
- [% 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
+
- 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:
+
+
+
+ Select partner libraries:
+
+ [% FOREACH partner IN whole.value.partners %]
+ [% IF partner.email && partner.email.length > 0 %]
+ [% partner.branchcode _ " - " _ partner.surname %]
+ [% END %]
+ [% END %]
+
+ [% IF Koha.Preference('ILLCheckAvailability') %]
+ Partners available for searching: none
+
+ Search selected partners
+
+ [% END %]
+
+
+ Subject line:
+
+
+
+ Email text:
+ [% whole.value.draft.body | html %]
+
+
+
+
+
+
+
+
+ Cancel
+
+
+ [% IF Koha.Preference('ILLCheckAvailability') %]
+
+
+
+
+
+ [% FOR service IN services %]
+
[% service.name | html %]
+ [% INCLUDE 'ill-availability-table.inc' service=service %]
+ [% END %]
+
+
+
+
+
+
+ [% 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 %]
+
+ Patron ID:
+
+
+ [% PROCESS select_manager_form manager => request.manager required_permission => CAN_user_ill %]
+
+ Bibliographic record ID:
+
+
+
+ Library:
+
+ [% PROCESS options_for_libraries libraries => Branches.all( selected => request.branchcode ) %]
+
+
+
+ Status:
+ [% stat = request.status %]
+ [% current_alias = request.status_alias %]
+
+ [% request.capabilities.$stat.name | html %]
+ [% FOREACH alias IN AuthorisedValues.Get('ILL_STATUS_ALIAS') %]
+ [% alias.lib | html %]
+ [% END %]
+
+
+ [% IF batches.count > 0 %]
+
+ Batch:
+
+
+ [% FOREACH batch IN batches %]
+ [% batch.name | html %]
+ [% END %]
+
[% END %]
-
- [% END %]
+
+ Last updated:
+ [% request.updated | $KohaDates with_hours => 1 %]
+
+
+ Request type:
+ [% IF type %][% type | html %][% ELSE %]N/A [% END %]
+
+
+ Cost:
+ [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A [% END %]
+
+
+ Price paid:
+
+
+
+ Request ID:
+ [% request.id_prefix _ request.illrequest_id | html %]
+
+
+ Staff notes:
+ [% request.notesstaff | html %]
+
+
+ OPAC notes:
+ [% request.notesopac | 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' %]
+
+
+
+ Yes, delete
+
+
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 %]
+
+
+
Request details
+
Details from library
+ [% IF request.get_copyright_clearance_confirmed %]
+
Patron has confirmed copyright clearance for this request
+ [% END %]
+
+
+ [% IF request.orderid %]
+
+ Order ID:
+ [% request.orderid | html %]
+
+ [% END %]
+ [% IF request.borrowernumber %]
+
+ Patron:
+ [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
+ [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
+
+ [% END %]
+ [% PROCESS select_manager_show manager => request.manager display => "fieldset" %]
+ [% IF request.biblio_id %]
+
+ Bibliographic record ID:
+ [% request.biblio_id | html %]
+
+ [% END %]
+
+ Library:
+ [% Branches.GetName(request.branchcode) | html %]
+
+
+ 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 %]
+
+ [% IF request.ill_batch > 0 %]
+
+ Batch:
+ [% request.ill_batch.name | html %]
+
+ [% END %]
+
+ Last updated:
+ [% request.updated | $KohaDates with_hours => 1 %]
+
+ [% type = request.get_type %]
+ [% IF type %]
+
+ Request type:
+ [% type | html %]
+
+ [% END %]
+ [% IF request.accessurl %]
+
+ Access URL:
+ View document
+
+ [% END %]
+ [% historycheck_requests = request.get_history_check_requests %]
+ [% IF historycheck_requests.count %]
+
+ 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 %]
+
+ [% END %]
+ [% type_disclaimer_value = request.get_type_disclaimer_value %]
+ [% IF type_disclaimer_value %]
+
+ Type disclaimer value:
+ [% type_disclaimer_value | html %]
+
+ [% END %]
+ [% type_disclaimer_date = request.get_type_disclaimer_date %]
+ [% IF type_disclaimer_date %]
+
+ Type disclaimer date:
+ [% type_disclaimer_date | $KohaDates with_hours => 1 %]
+
+ [% END %]
+ [% IF request.cost %]
+
+ Cost:
+ [% request.cost | $Price %]
+
+ [% END %]
+ [% IF request.price_paid %]
+
+ Price paid:
+ [% request.price_paid | $Price %]
+
+ [% END %]
+ [% IF request.notesstaff %]
+
+ Staff notes:
+ [% request.notesstaff | $raw %]
+
+ [% END %]
+ [% IF request.notesopac %]
+
+ Notes:
+ [% request.notesopac | html %]
+
+ [% 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 %]
+
+ [% meta.key.replace('_',' ') | html %]:
+ [% meta.value | html %]
+
+ [% END %]
+ [% END %]
+
+
+
+
+
+
+
+
+
+
+ [% FOREACH attr IN request.extended_attributes %]
+
+ [% attr.type | html %]:
+ [% attr.value | html %]
+
+ [% END %]
+
+
+
+
+
+
+
+
+
+
+
+
+ [% IF request.logs.size > 0 %]
+ [% FOREACH log IN request.logs %]
+ [% tpl = log.template %]
+ [% INCLUDE $tpl log=log %]
+ [% END %]
+ [% ELSE %]
+ There are no recorded logs for this request
+ [% END %]
+
+
+
+
+
+
+
+
[% request.illcomments.count | html %] comments
+ [% IF request.illcomments.count && request.illcomments.count > 0 %]
+ [% FOREACH comment IN request.illcomments %]
+
+ [% END %]
+ [% END %]
+
+
+
+
+
+ [% 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
+
continue creating your request 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 %]
-
Return to form
- [% END %]
-
-
- [% INCLUDE 'csrf-token.inc' %]
-
-
-
-
-
- [% IF auto_migrate %]
- Confirm
- Cancel
- [% ELSE %]
+
+ [% ELSIF op == 'typedisclaimer' %]
+
+
Request type disclaimer
+
+ [% 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 %]
+
+ [% key_mapping(key) || key | ucfirst | html %]
+ [% IF key == 'branchcode' %]
+ [% Branches.GetName(value) | html %]
+ [% ELSE %]
+ [% value | html %]
+ [% END %]
+
+ [% END %]
+ [% END %]
+
+
+ [% 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 %]
+ Return to form
+ [% 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 %]
+
+ [% END %]
+ [% unauthenticated_email = request.extended_attributes.find({'type'=>'unauthenticated_email'}).value %]
+ [% IF unauthenticated_email %]
+
+ [% END %]
+ [% END %]
-[% BLOCK unauthenticated_details %]
- [% unauthenticated_first_name = request.extended_attributes.find({'type'=>'unauthenticated_first_name'}).value %]
- [% IF unauthenticated_first_name %]
-
- [% END %]
- [% unauthenticated_last_name = request.extended_attributes.find({'type'=>'unauthenticated_last_name'}).value %]
- [% IF unauthenticated_last_name %]
-
- [% END %]
- [% unauthenticated_email = request.extended_attributes.find({'type'=>'unauthenticated_email'}).value %]
- [% IF unauthenticated_email %]
-
- [% 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 %]
Comment by: - [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %] - [% comment.timestamp | $KohaDates with_hours => 1 %]
-[% comment.comment | html %]
-