If you do not have a pubdate, it is better etter to have nothing follow
the format label than "()".
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
[% attrs.format_label; %]
[%- END %]
[%- UNLESS CGI.param('detail_record_view')
- OR (show_more_details.default == 'true'
- OR show_more_details.default == 'hide')
- %] ([% attrs.pubdate | html %])
- [%- END -%]
+ OR (show_more_details.default == 'true'
+ OR show_more_details.default == 'hide');
+ IF attrs.pubdate;
+ pubdate_clean = attrs.pubdate | html;
+ l(" ([_1])", pubdate_clean);
+ END;
+ END
+ -%]
</div>
<span name="googleBooksLink" class="hide_me">
<a style='padding-left: 8px;'