[OPEN-ILS-DEV] Passing parameters to patron search in staff client

Mark Gavillet mark.gavillet at ptfs-europe.com
Fri Sep 23 06:45:39 EDT 2011


Perfect - I'd tried wrapping in js2JSON, but I had 

{ 'doit' : 1, js2JSON('query' : {

rather than

{ 'doit' : 1, 'query' : js2JSON({

Working like a dream now!

Thanks for your help,
Mark

On 23 Sep 2011, at 11:34, Jason Etheridge wrote:

>> Thanks for the reply. I'd tried this format of the search hash, although using window.xulG.set_tab instead of xulG.new_patron_tab. I've just modified the code to match the example you gave, this time using xulG.new_patron_tab, but unfortunately it still returns the same error :(
> 
> Hrmm, okay, the missing piece is js2JSON.  I can do this the
> Javascript shell and it works:
> 
> xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON({
> 'family_name' : { 'value' : 'system', 'group' : 0 } }) });
> 
> -- 
> Jason Etheridge
>  | Equinox Software, Inc. / Your Library's Guide to Open Source
>  | phone:  1-877-OPEN-ILS (673-6457)
>  | email:  jason at esilibrary.com
>  | web:  http://www.esilibrary.com



More information about the Open-ils-dev mailing list