Comment 1 for bug 1266879

Revision history for this message
Tim Spindler (tspindler-cwmars) wrote :

Kathy,

I think I would make a modification to this based on Dan Pearl's script. Christine's has an aggressive approach so that if you use a brackets as part of your note it would remove those also. We have notes that read

Pages [44-55] missing from the book [ts @ …

and the [44-55] could get stripped. Here is a suggested modification.

        [% IF copy_info.notes; %]
             [% FOREACH note IN copy_info.notes; %]
                 <tr><td>&nbsp;</td><td class="copy_note" colspan="4"><strong>[% note.title | html %]:</strong> [% note.value.replace('\[.*@.*\]\s*', '') | html %]</td></tr>
             [% END %]
         [% END %]

By using @ symbol, it is less aggressive.