From: erickson Date: Wed, 9 Jan 2008 21:33:53 +0000 (+0000) Subject: added a comment on json_query building for picklist attr sorting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bbe7bbf005555ebb3da13c8fb47316d8230f026b;p=Evergreen.git added a comment on json_query building for picklist attr sorting git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8375 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm index 11cef02c6d..be9e53c07a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm @@ -176,4 +176,10 @@ sub create_picklist_entry { } +=head EXAMPLE JSON_QUERY +srfsh# request open-ils.cstore open-ils.cstore.json_query.atomic {"select" : { "acqple" : ["id"], "acqplea" : ["attr_value"] }, "from" : { "acqple" : { "acqplea" : { "field" : "picklist_entry", "fkey" : "id" } } }, "where" : { "+acqple" :{ "picklist" : 2 }, "+acqplea" : { "attr_type" : "picklist_marc_attr_definition", "attr_name" : "title" } }, "order_by" : { "acqplea" : { "attr_value" : { "direction" : "asc" } } } } +=cut + + + 1;