LP1910138 Display Precat Info in Circ History
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 4 Jan 2021 19:32:40 +0000 (14:32 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 Feb 2021 15:21:25 +0000 (10:21 -0500)
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>

Open-ILS/src/templates-bootstrap/opac/myopac/circ_history.tt2

index 0ad3f8a..6b994a2 100755 (executable)
                 <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>