Hi Frances,

I believe there is a setting called <legacy_script_support> in
opensrf.xml which sets whether you wish to use the javascript or the
database rules.    I haven't looked at the database rules extensively,
but I believe that you can only use either the database rules or the
javascripts but not both.

There is some mild documentation of the database rules here:
http://svn.open-ils.org/trac/ILS/browser/trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql

SITKA uses the javascripts extensively, as we have different policies
for each site -- however we would like to switch to the database rules
once a UI is built to give our pilot sites control over their own
policies.

~James Fournie
BC SITKA

On Mon, Mar 16, 2009 at 1:09 PM, Frances Dean McNamara
<[email protected]> wrote:
> Actually, I think I see how to do what I want to do in some earlier example 
> of modifications to circ_duration.js
>
> But that does not seem to use these new matchpoint rules, so I guess my 
> question is can I do it just in the tables!
>
> Frances
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Frances 
> Dean McNamara
> Sent: Monday, March 16, 2009 2:56 PM
> To: Evergreen Development Discussion List
> Subject: [OPEN-ILS-DEV] Dumb question about circ setup
>
> We can circulate in our little test db for 1.4.0.2 and I made my org units 
> and some patron groups.
>
> I'd like to fool around with customizing some of the circ rules.  But I think 
> I'm missing a step.  I see the circ_duration.js  and I also see the tables, 
> where I've a couple of custom rows to
>
> config.rule_circ_duration
>
> and, what the heck in
>
> config.circ_matrix_matchpoint
>
> and config.circ_matrix_ruleset
>
>
> Seems like there's not a UI for the circ rule tables but I just thought I'd 
> try to get a long circ duration for my faculty user, and a shorter duration 
> for my student user by pointing to the duration rows I added.
>
> Do I have to modify .js scripts?  I was hoping my rules in the tables would 
> take effect and the system would fall back to the default rules if those did 
> not apply. I'm still getting the default duration of 14 days for everybody, 
> though.  Can someone point me in the direction of where to make my 
> customizations work?  Thanks.
>
> Frances McNamara
> University of Chicago
>

Reply via email to