LP1103068 - Show titles and authors for pre-cat items
[working/Evergreen.git] / Open-ILS / src / templates / opac / myopac / circs.tt2
index b4f0ea2..60dd243 100644 (file)
                                 value="[% circ.circ.id %]" />
                         </td>
                         <td name="author">
+                            [% IF circ.circ.target_copy.call_number.id == -1 %]
+                                [% circ.circ.target_copy.dummy_title | html %]
+                            [% ELSIF attrs.title %]
                             <a href="[% mkurl(ctx.opac_root _ '/record/' _ 
                                 circ.circ.target_copy.call_number.record.id) %]"
                                 name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
-                            [% IF attrs.author %] /
+                            [% END %]
+                            [% IF circ.circ.target_copy.call_number.id == -1 %] /
+                                [% circ.circ.target_copy.dummy_author | html %]
+                            [% ELSIF attrs.author %] /
                             <a href="[% mkurl(ctx.opac_root _ '/results',
                                 {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
                             ) %]">[% attrs.author | html %]</a>