Bug 40005: Add accessurl to manage ILL request page

Test plan:
1) Enable ILLModule
2) Create a new ILL request, visit:
   <staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard
3) Add 'type', cardnumber '42' and any library. Click 'Create'.
4) You are now on the ILL manage request page.
5) Some backends may use the accessurl to store the URL of a document, run the following SQL:
   UPDATE illrequests SET accessurl = 'https://koha-community.org/';
6) Refresh the page from 4) or visit the ILL manage request page for that request.
7) Verify the accessurl is now shown.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2025-05-27 14:10:26 +00:00 committed by Lucas Gass
parent f6da181636
commit 1eddff89a0
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 6 additions and 0 deletions

View File

@ -680,6 +680,12 @@
[% type | html %]
</li>
[% END %]
[% IF request.accessurl %]
<li class="accessurl">
<span class="label accessurl">Access URL:</span>
<a href="[% request.accessurl | url %]" target="_blank" title="[% request.accessurl | html %]"><i class="fa-solid fa-arrow-up-right-from-square"></i> View document</a>
</li>
[% END %]
[% historycheck_requests = request.get_history_check_requests %]
[% IF historycheck_requests.count %]
<li class="historycheck_requests_value">