Bug 32630: Update send notice to patron button
Only show this action button if the ILL request has a borrowernumber Sponsored-by: UKHSA - UK Health Security Agency Signed-off-by: Jeremy Evans <Jeremy.Evans@ukhsa.gov.uk> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
a0db55fe56
commit
c9817ddc1e
1 changed files with 16 additions and 14 deletions
|
@ -535,20 +535,22 @@
|
|||
</a>
|
||||
[% END %]
|
||||
[% END %]
|
||||
<div class="dropdown btn-group">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="ill-notice-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<i class="fa-solid fa-envelope"></i> Send notice to patron
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="ill-notice-dropdown">
|
||||
[% FOREACH notice IN notices %]
|
||||
<li
|
||||
><a class="dropdown-item" href="/cgi-bin/koha/ill/ill-requests.pl?op=send_notice&illrequest_id=[% request.illrequest_id | uri %]&notice_code=[% notice.code | uri %]"
|
||||
>[% notice.name | html %]</a
|
||||
></li
|
||||
>
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
[% IF request.borrowernumber %]
|
||||
<div class="dropdown btn-group">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="ill-notice-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<i class="fa-solid fa-envelope"></i> Send notice to patron
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="ill-notice-dropdown">
|
||||
[% FOREACH notice IN notices %]
|
||||
<li
|
||||
><a class="dropdown-item" href="/cgi-bin/koha/ill/ill-requests.pl?op=send_notice&illrequest_id=[% request.illrequest_id | uri %]&notice_code=[% notice.code | uri %]"
|
||||
>[% notice.name | html %]</a
|
||||
></li
|
||||
>
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
[% END %]
|
||||
<a title="Display supplier metadata" id="ill-request-display-metadata" class="btn btn-default" href="#">
|
||||
<span class="fa-solid fa-eye"></span>
|
||||
Display supplier metadata
|
||||
|
|
Loading…
Reference in a new issue