Export Patron Stat Cats via SIP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Bill Erickson |
Bug Description
The attached patch adds support for exporting patron statistical categories via SIP2.
By default I am not defining any field identifiers for export, and have not created an interface for defining fields. Direct DB queries to insert into actor.stat_
Once one or more fields are defined they can be assigned with the normal stat cat editor, and the SIPServer code (with the extra patch it needs for extra fields support) will be able to load information from the stat cats.
Each stat cat also has a sip format string. That string can be a simple string or can use %s to include the actual stat cat value.
Use case, for us, is "Library wants SIP to provide information on members of friends group". Make a stat cat for the friends group with a SIP field identifier and the library name as the format string. Then instruct the library to put the date in the stat cat. SIP responses should then include the new field with the library name for members of the friends group. This can then be matched by the SIP requester and used to identify a friends group member.
Signed-off-by: Thomas Berezansky <email address hidden>
For those who want to use git to pull my git branch:
To add my remote using id "tsbere" (only needs to be done once):
git remote add tsbere git://git.
If you don't use tsbere as the identifier here all of the below commands referring to tsbere will need to be adjusted.
Don't forget to fetch/update the remote:
git fetch tsbere
OR
git fetch --all
This branch will be tsbere/sip_statcats
To check out the branch:
git checkout -b tsbere_sip_statcats tsbere/sip_statcats
To merge into your current branch (change branches first!):
git merge tsbere/sip_statcats
To merge changes you made to your checked out version into the current branch (change branches first!):
git merge tsbere_sip_statcats
Changed in evergreen: | |
assignee: | nobody → Bill Erickson (erickson-esilibrary) |
Changed in evergreen: | |
milestone: | none → 2.2.0 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Updated with a new git branch to include copy stat cats as well.
New branch is sip_statcats2
Also on git.evergreen- ils.org, repo working/ Evergreen. git, branch <email address hidden> /sip_statcats2