Comment 11 for bug 1205072

Revision history for this message
Mike Rylander (mrylander) wrote : Re: Action trigger Granularity strings saving lable not value

Josh,

You can't use the syntax you suggest directly, however you can do what you want. It would be something like:

$query->[0]->{'+atevdef'} = {
  granularity => {
     '=' => {
      transform => 'evergreen.lowercase',
      value => lc($granularity)
    }
  }
};

The has inside the array of the -or branch would need to be changed likewise. See Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm line 837 (in master) for an example.

HTH.