Remove initials and datestamp from public copy note display user/kmlussier/remove-public-note-initials
authorChristine Morgan <cmorgan@noblenet.org>
Tue, 7 Jan 2014 18:39:49 +0000 (13:39 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 7 Jan 2014 18:39:49 +0000 (13:39 -0500)
The display of initials and datestamp in public copy notes is ugly. This
code from Christine Morgan at NOBLE uses a regex to remove the initials
and datesteamp from the display.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 9c8407b..398dda5 100644 (file)
@@ -194,7 +194,7 @@ END; # FOREACH bib
 
         [% IF copy_info.notes; %]
             [% FOREACH note IN copy_info.notes; %]
-                <tr><td>&nbsp;</td><td class="copy_note" colspan="4" property="description"><strong>[% note.title | html %]:</strong> [% note.value | html %]</td></tr>
+                <tr><td>&nbsp;</td><td class="copy_note" colspan="4" property="description"><strong>[% note.title | html %]:</strong> [% note.value FILTER remove('\[.*\]') | html %]</td></tr>
             [% END %]
         [% END %]