From: senator Date: Mon, 25 Apr 2011 20:15:51 +0000 (-0400) Subject: one more minor thing when showing fines on reservations X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6767b36f345f7b92c675df9ca335c467f9b70b89;p=evergreen%2Fequinox.git one more minor thing when showing fines on reservations if there's not a record associated with the xact (like in the case of a reservation against a non-cataloged resource), don't try to show a link --- diff --git a/Open-ILS/web/templates/default/opac/myopac/main.tt2 b/Open-ILS/web/templates/default/opac/myopac/main.tt2 index a99cc2d1cb..03347fb73c 100644 --- a/Open-ILS/web/templates/default/opac/myopac/main.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/main.tt2 @@ -40,7 +40,12 @@ END %] - [% attrs.title %] + [% recid = f.xact.circulation.target_copy.call_number.record.id || f.xact.reservation.target_resource_type.record.id; + IF recid; %] + [% attrs.title %] + [% ELSE %] + [% attrs.title %] + [% END %] [% attrs.author %]