From: Ben Shum Date: Thu, 14 Mar 2013 21:40:04 +0000 (-0400) Subject: LP1103068 - Show titles and authors for pre-cat items X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95d8fa9cd9c61e395460428a3fa52ea06cb7a189;p=working%2FEvergreen.git LP1103068 - Show titles and authors for pre-cat items As noted in LP1103068, TPAC does not currently show anything when viewing a pre-cataloged item in the my account summary of items checked out. If the call number is -1 (pre-cat), then show the dummy title and dummy author values, which fields are hopefully relevant as long as staff were good to put something meaningful in those during creation of the pre-cat. Also, wrap the title in a check for attrs.title. Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2 index b4f0ea2b75..d5a9f02a48 100644 --- a/Open-ILS/src/templates/opac/myopac/circs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circs.tt2 @@ -78,14 +78,22 @@ value="[% circ.circ.id %]" /> + [% IF attrs.title %] [% attrs.title | html %] + [% END %] + [% IF circ.circ.target_copy.call_number.id == -1 %] + [% circ.circ.target_copy.dummy_title | html %] + [% END %] [% IF attrs.author %] / [% attrs.author | html %] [% END %] + [% IF circ.circ.target_copy.call_number.id == -1 %] / + [% circ.circ.target_copy.dummy_author | html %] + [% END %] [% circ.circ.renewal_remaining %]