]> git.koha-community.org Git - koha.git/commit
Bug 28909: Allow illview to use backend template
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Fri, 27 Aug 2021 10:53:00 +0000 (11:53 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 Aug 2022 16:21:39 +0000 (13:21 -0300)
commit80e179edd7a7d6cc70dada6a05a4dad915a38d9a
tree2d2c1868d8e2a0f2d445e1261ee85ba71ff26ab1
parente41cde66f011abdc1a7476ea6842ff04996975d2
Bug 28909: Allow illview to use backend template

This commit allows illview to use an intranet template supplied by the backend, as
per other stages. The template must be named illview.inc

Test plan:
- Apply the patch
- Install FreeForm backend (https://github.com/PTFS-Europe/koha-ill-freeform)
- Create a request
- On the resulting "Manage ILL request" note the display is normal
- Create a new file in the FreeForm backend directory: /intra-includes/illview.inc
  with the following content:

  [% BLOCK backend_jsinclude %]
  <script>(function() { alert("Working!"); })()</script>
  [% END %]

- Restart Plack if enabled
- Reload the page
=> TEST: Observe that the alert specified in the template is displayed

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Illrequest.pm
ill/ill-requests.pl
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
t/db_dependent/Illrequests.t