From d560f94f8c2611dedeec62bb67ed644daa0f9fa8 Mon Sep 17 00:00:00 2001 From: Lisette Scheer Date: Thu, 26 Feb 2026 17:38:01 +0000 Subject: [PATCH] Bug 40504: (QA follow-up): Add prettier-ignore to process blocks --- ill/ill-requests.pl | 4 +- .../prog/en/includes/select_manager.inc | 19 +- .../prog/en/modules/ill/ill-requests.tt | 1173 ++++++++--------- .../prog/en/modules/suggestion/suggestion.tt | 32 +- 4 files changed, 603 insertions(+), 625 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index b5d6c9490dc..5d74a75d17e 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -144,12 +144,12 @@ if ($backends_available) { $op = 'historycheck'; $template->param( $history_check->history_check_template_params($params) ) - # ILLCheckAvailability operation + # ILLCheckAvailability operation } elsif ( $availability->show_availability($request) ) { $op = 'availability'; $template->param( $availability->availability_template_params($params) ) - # ILLModuleDisclaimerByType operation + # ILLModuleDisclaimerByType operation } elsif ( $type_disclaimer->show_type_disclaimer($request) ) { $op = 'typedisclaimer'; $template->param( $type_disclaimer->type_disclaimer_template_params($params) ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/select_manager.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/select_manager.inc index a2fe25ea513..301ab0d3a15 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/select_manager.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/select_manager.inc @@ -1,21 +1,12 @@ [% PROCESS 'patron-search.inc' %] + [% IF add_modal %] [% SET columns = ['cardnumber','name','category','branch','action'] %] [% SET filter = filter %] - [% PROCESS patron_search_modal - columns => columns, - modal_title => t("Select manager"), - patron_search_modal_id => 'patron_search_modal_manager', - table_id => 'patron_search_modal_manager_table' - %] - [% PROCESS patron_search_js - columns => columns, - actions => ["select"], - preview_on_name_click => 1, - table_id => 'patron_search_modal_manager_table', - callback => 'select_manager' - empty_table_settings => 1 - %] + [%# prettier-ignore-start %] + [% PROCESS patron_search_modal columns => columns, modal_title => t("Select manager"), table_id => 'patron_search_modal_manager_table' %] + [% PROCESS patron_search_js columns => columns, actions => ["select"], preview_on_name_click => 1, table_id => 'patron_search_modal_manager_table', callback => 'select_manager' empty_table_settings => 1 %] + [%# prettier-ignore-end %] [% END %] - [% END %] +[% IF op == 'illlist' %] + +[% 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 !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.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 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 whole.success %] -

[% whole.success | html %]

- [% END %] + [% 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 -
-
+ [% 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 %] - [% 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.
+ [% 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 whole.value.partners %] - [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?op=illview&illrequest_id=" _ request.illrequest_id %] + [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]
[% INCLUDE 'csrf-token.inc' %]
- Interlibrary loan request details + 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. - - -
  2. -
  3. - - + + [% FOREACH stat IN whole.value.statistical %] + [% IF stat.borrowernumber == params.inhouse %] + + [% ELSE %] + [% END %] [% END %] - [% IF Koha.Preference('ILLCheckAvailability') %] -
    Partners available for searching: none
    - + [% 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
  4. -
  5. - - +
  6. + + [% 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 %] +
  7. + [% IF items.size == 1 %] +
  8. + + [% items.0.barcode | html %] +
  9. + [% END %] +
  10. + + [% 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 %]
  11. -
  12. - - +
  13. + + [% INCLUDE 'date-format.inc' %] +
    If you do not specify a due date, it will be set according to circulation rules
- - -
- - Cancel + + + [% IF items.size == 1 %] + + + [% END %] + + + 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' %] -
+ [% 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 %] + [% 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' %]
- Request details + Interlibrary loan 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. -
  8. - - [% stat = request.status %] - [% current_alias = request.status_alias %] - + [% FOREACH partner IN whole.value.partners %] + [% IF partner.email && partner.email.length > 0 %] + + [% END %] [% END %] + [% IF Koha.Preference('ILLCheckAvailability') %] +
    Partners available for searching: none
    + + [% END %]
  9. - [% IF batches.count > 0 %] -
  10. - - -
  11. - [% END %] -
  12. - - [% request.updated | $KohaDates with_hours => 1 %] -
  13. -
  14. - - [% IF type %][% type | html %][% ELSE %]N/A[% END %] -
  15. -
  16. - - [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A[% END %] -
  17. -
  18. - - -
  19. -
  20. - - [% request.id_prefix _ request.illrequest_id | html %] -
  21. -
  22. - - +
  23. + +
  24. -
  25. - - +
  26. + +
  27. - [% IF stat == 'UNAUTH' %] -

    Unauthenticated request details

    - [% INCLUDE unauthenticated_details %] - [% END %]
+ + +
- - - - - Cancel + + 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 %] + [% IF Koha.Preference('ILLCheckAvailability') %] + [% END %] - [% req_status = request.status %] + [% 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. + [%# prettier-ignore-start %] + [% PROCESS select_manager_form manager => request.manager required_permission => CAN_user_ill %] + [%# prettier-ignore-end %] +
  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 %] + [% 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 %] + [% 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 %]
+ [% IF tran_success %] + [% succ_methods = [] %] + [% IF tran_success.match('email') %] + [% succ_methods.push('email') %] [% 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 %]
+ [% 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 %] +

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 %] - [% FOREACH perm IN needs_perms %] - [% perm_name = 'CAN_' _ perm %] - [% IF ($perm_name) %] - [% has_perms_count = has_perms_count + 1 %] - [% END %] + [% END %] + [% FOREACH perm IN needs_perms %] + [% perm_name = 'CAN_' _ perm %] + [% IF ($perm_name) %] + [% has_perms_count = has_perms_count + 1 %] [% END %] - [% FOREACH func IN needs_all %] - [% IF func(request) %] - [% has_all_count = has_all_count + 1 %] - [% END %] + [% END %] + [% FOREACH func IN needs_all %] + [% IF func(request) %] + [% has_all_count = has_all_count + 1 %] [% 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 %] + [% 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 %] - [% 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 %] + [% 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 %] + [%# prettier-ignore-start %] + [% PROCESS select_manager_show manager => request.manager display => "fieldset" %] + [%# prettier-ignore-start %] [% IF request.biblio_id %]
  5. Bibliographic record ID: @@ -1130,92 +1127,94 @@ [% 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 %] - + [%# prettier-ignore-start %] + [% INCLUDE 'select_manager.inc' add_modal => 1 manager => request.manager filter => 'ill_users' %] + [%# prettier-ignore-end %] +
+ [% 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 auto_backends_json.length > 0 %] - var auto_backends = [% auto_backends_json | $raw %]; - [% ELSE %] - var auto_backends = []; + [% IF (op == 'confirmautoill' && Koha.Preference('AutoILLBackendPriority')) %] + [% Asset.js("js/ill-autobackend.js") | $raw %] [% END %] - [% IF metadata.length > 0 %] - var metadata = "[% metadata | $raw %]"; + [% IF op == 'availability' && Koha.Preference('ILLCheckAvailability') %] + [% 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 %] + [% 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 %] - [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %] -[% END %] - + [% TRY %] [% PROCESS backend_jsinclude %] [% CATCH %] [% END %] -[% INCLUDE 'intranet-bottom.inc' %] + [% INCLUDE 'intranet-bottom.inc' %] +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index fef5e125b42..4f4a22e2cd6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -258,11 +258,9 @@ [% END %] - [% - PROCESS select_manager_show - manager => suggestion.manager - display => "table" - %] + [%# prettier-ignore-start %] + [% PROCESS select_manager_show manager => suggestion.manager display => "table" %] + [%# prettier-ignore-end %] Accepted on: [% suggestion.accepteddate | $KohaDates %] @@ -596,12 +594,7 @@ [% INCLUDE 'date-format.inc' %] - [% - PROCESS select_manager_form - manager => suggestion.manager - notify_option => 1 - required_permission => CAN_user_suggestions_suggestions_manage - %] + [% PROCESS select_manager_form manager => suggestion.manager notify_option => 1 required_permission => CAN_user_suggestions_suggestions_manage %] @@ -881,13 +874,9 @@ [% hash_href_val = "patron_search_modal_manager_" _ suggestion.suggestiontype %] [% id_val = "set_manager_" _ suggestion.suggestiontype %] [% data_tab_val = suggestion.suggestiontype %] - - [% - PROCESS select_manager_button - href = hash_href_val - id = id_val - data_tab = data_tab_val - %] + [%# prettier-ignore-start %] + [% PROCESS select_manager_button href = hash_href_val id = id_val data_tab = data_tab_val %] + [%# prettier-ignore-end %]
@@ -1217,10 +1206,9 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] - [% - INCLUDE 'select_manager.inc' - manager => suggestion.manager - %] + [%# prettier-ignore-start %] + [% INCLUDE 'select_manager.inc' manager => suggestion.manager %] + [%# prettier-ignore-end %]