[GIT] Evergreen ILS branch main updated. bbf7a9c55a5e3999785a9f7fdaebad5cc1b3895d

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, main has been updated via bbf7a9c55a5e3999785a9f7fdaebad5cc1b3895d (commit) from 620b4ec28636e6bc615901eb3db975586983a00d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit bbf7a9c55a5e3999785a9f7fdaebad5cc1b3895d Author: Stephanie Leary <stephanie.leary@equinoxoli.org> Date: Mon Jun 30 16:08:15 2025 +0000 LP2115662 holds table: individual row actions Adds individual suspend, activate, and cancel buttons for items in the OPAC holds table. Also adds an ID attribute to the title so it can be used with aria-describedby to associate each button with the item it affects. Release-note: Adds individual suspend, activate, and cancel buttons to OPAC holds table rows Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org> Signed-off-by: Garry Collum <gcollum@gmail.com> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/holds.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/holds.tt2 index b2bc7257b4..ee480112e5 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/holds.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/holds.tt2 @@ -174,7 +174,7 @@ END; %] <a href="[% mkurl(ctx.opac_root _ '/record/' _ - hold.hold.bre_id, {}, 1) %]"><span[%- deemphasize_class -%]> + hold.hold.bre_id, {}, 1) %]" id="hold-record-[% row_rec_id %]"><span[%- deemphasize_class -%]> [%- title.substr(0,hold.ATTRS.nonfiling_characters) | html %]</span> [%- title.substr(hold.ATTRS.nonfiling_characters) | html %]</a> </td> @@ -231,11 +231,39 @@ [%- END; END; %] </td> <td role="cell" mobile-title="" class="fullRow"> - <a class="btn btn-confirm btn-sm" href="[% mkurl(ctx.opac_root _ '/myopac/holds/edit', {hid => ahr.id}) %]" - [% html_text_attr('title', l('Edit hold for item [_1]', attrs.title)) %]> + <a class="btn btn-confirm btn-sm nowrap m-1" href="[% mkurl(ctx.opac_root _ '/myopac/holds/edit', {hid => ahr.id}) %]" + aria-describedby="hold-record-[% row_rec_id %]" + [% html_text_attr('title', l('Edit hold for item [_1]', row_title)) %]> <i class="fas fa-edit" aria-hidden="true"></i> [% l('Edit') %] </a> + [% # Don't show the suspend button if it is suspended or fulfilled %] + [% IF hold.hold.status != '7' && hold.hold.status != '9' %] + <a class="btn btn-action btn-sm nowrap m-1" href="[% mkurl('', {action => 'suspend', 'hold_id' => ahr.id }) %]" + aria-describedby="hold-record-[% row_rec_id %]" + [% html_text_attr('title', l('Suspend hold for item [_1]', row_title)) %]> + <i class="fas fa-hand-paper" aria-hidden="true"></i> + [% l('Suspend') %] + </a> + [% END %] + [% # Show the activate button ONLY if it is suspended %] + [% IF hold.hold.status == '7' %] + <a class="btn btn-opac btn-sm nowrap m-1" href="[% mkurl('', {action => 'activate', 'hold_id' => ahr.id }) %]" + aria-describedby="hold-record-[% row_rec_id %]" + [% html_text_attr('title', l('Activate hold for item [_1]', row_title)) %]> + <i class="fas fa-play" aria-hidden="true"></i> + [% l('Activate') %] + </a> + [% END %] + [% # Don't show the cancel button if it is canceled %] + [% IF hold.hold.status != '6' %] + <a class="btn btn-danger btn-sm nowrap m-1" href="[% mkurl('', {action => 'cancel', 'hold_id' => ahr.id }) %]" + aria-describedby="hold-record-[% row_rec_id %]" + [% html_text_attr('title', l('Cancel hold for item [_1]', row_title)) %]> + <i class="fas fa-circle-xmark" aria-hidden="true"></i> + [% l('Cancel') %] + </a> + [% END %] </td> </tr> [% END %] ----------------------------------------------------------------------- Summary of changes: .../src/templates-bootstrap/opac/myopac/holds.tt2 | 34 ++++++++++++++++++++-- 1 file changed, 31 insertions(+), 3 deletions(-) hooks/post-receive -- Evergreen ILS
participants (1)
-
Git User