From 508a0af14474b1298aacc0f11323aa1d422fbb75 Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Thu, 14 Mar 2013 17:40:04 -0400 Subject: [PATCH 1/1] 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 Signed-off-by: Michael Peters --- Open-ILS/src/templates/opac/myopac/circs.tt2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2 index b4f0ea2b75..60dd2436d5 100644 --- a/Open-ILS/src/templates/opac/myopac/circs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circs.tt2 @@ -78,10 +78,16 @@ value="[% circ.circ.id %]" /> + [% IF circ.circ.target_copy.call_number.id == -1 %] + [% circ.circ.target_copy.dummy_title | html %] + [% ELSIF attrs.title %] [% attrs.title | html %] - [% IF attrs.author %] / + [% END %] + [% IF circ.circ.target_copy.call_number.id == -1 %] / + [% circ.circ.target_copy.dummy_author | html %] + [% ELSIF attrs.author %] / [% attrs.author | html %] -- 2.43.2