Sip Statcats - Actor/Asset Statcats via SIP2
authorThomas Berezansky <tsbere@mvlc.org>
Sun, 29 May 2011 01:44:35 +0000 (21:44 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Sun, 29 May 2011 01:44:35 +0000 (21:44 -0400)
commit22379c5ca626321f11d12c0551802de2309d0e4e
treea565ed3415518d3cc313c46ff6d871eb0444f8d2
parent81818c81a1df25ded485329195c9a40b960c05bd
Sip Statcats - Actor/Asset Statcats via SIP2

Stat cats can now have a sip_field and sip_format.
sip_field is the field identifier code, sip_format is one of the following:

1 - Null/Empty, places stat cat value in as-is
2 - A plain string, placed in value as-is when stat cat has value
3 - A plain string with a %s, 1 and 2 combined, where the stat cat value replaces the %s
4 - A regular expression surrounded by | characters (ex, |([0-9]*) -|):
    If the regular expression does not match the value, nothing
    If the regular expression matches and has a capture group, the captured group
    If the regular expression matches and does not have a capture group, the entire match

The | was used because it would otherwise be stripped from the final result anyway.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
14 files changed:
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/asset.pm
Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/040.schema.asset.sql
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/web/templates/default/conify/global/config/actor_sip_fields.tt2 [new file with mode: 0644]
Open-ILS/web/templates/default/conify/global/config/asset_sip_fields.tt2 [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js
Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml