From: Terran McCanna <tmccanna@georgialibraries.org> Date: Mon, 4 Jan 2021 19:32:40 +0000 (-0500) Subject: LP1910138 Display Precat Info in Circ History X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=17836cfd67e989e195a7995b286f6fb058718d13;p=evergreen%2Fpines.git LP1910138 Display Precat Info in Circ History This adds the precat title and author to the circ history table in My Account in the Bootstrap OPAC. Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> Signed-off-by: Garry Collum <gcollum@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org> --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 index 0ad3f8a122..6b994a2b5b 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2 @@ -130,19 +130,26 @@ <input type="checkbox" name="circ_id" value="[% circ.circ.id %]" aria-label="Select Item"/> </td> <td> + [% IF circ.circ.target_copy.call_number.id == -1 %] + [% circ.circ.target_copy.dummy_title | html %] + [% ELSIF circ.ATTRS.title %] <a href="[% mkurl(ctx.opac_root _ '/record/' _ circ.circ.target_copy.call_number.record.id, {}, 1) %]"> <span[%- deemphasize_class -%]> [%- circ.ATTRS.title.substr(0,circ.ATTRS.nonfiling_characters) | html %]</span> [%- circ.ATTRS.title.substr(circ.ATTRS.nonfiling_characters) | html %]</a> + [% END %] </td> <td> - [% IF circ.ATTRS.author %] - <a href="[% mkurl(ctx.opac_root _ '/results', - {qtype => 'author', query => circ.ATTRS.author.replace('[,\.:;]', '')}, - 1 - ) %]">[% circ.ATTRS.author | html %]</a> - [%END; %] + [% IF circ.circ.target_copy.call_number.id == -1 %] + <span class="sr-only">Author</span> + [% circ.circ.target_copy.dummy_author | html %] + [% ELSIF circ.ATTRS.author %] + <a href="[% mkurl(ctx.opac_root _ '/results', + {qtype => 'author', query => circ.ATTRS.author.replace('[,\.:;]', '')}, + 1 + ) %]">[% circ.ATTRS.author | html %]</a> + [% END; %] </td> <td>[% circ.circ.target_copy.call_number.label | html %]</td> <td>