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.
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' } = { lowercase' ,
granularity => {
'=' => {
transform => 'evergreen.
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.