Using Alma APIs for creating Sets
Current Search: Physical Items where Title (Title contains keywords "history") and Holding (Library (Holding) equals "Art Library") and Physical item (Receiving date after "2016-04-02")
However to see the exact syntax which is needed for creating a set using the API, it is recommended to first create a set using the UI, use a GET call to the API to find out what the syntax is, and then use it as a template for creating other similar Logical sets using the API.
In the below sample you can see how a set of Items is defined by a 3 conditions: one from the Bib, one from the Holding and one from the Item. Note that the textual syntax which appears in the UI is included in the ‘desc’ attribute. As in all our APIs the ‘desc’ attributes are ignore when received in POST requests. The actual value of the ‘query’ field will be used. It uses a more technical syntax and the name are more code-like, but comparing to the ‘desc’ attribute should make it understandable.
<set link="/almaws/v1/conf/sets/1622034000000121"> <id>1622034000000121</id> <name>items - history, Art, date</name> <type desc="Logical">LOGICAL</type> <content desc="Physical items">ITEM</content> <private desc="Yes">true</private> <status desc="Active">ACTIVE</status> <status_date>2017-02-22T10:35:41.664Z</status_date> <created_by desc="John Smith">johns</created_by> <created_date>2017-02-22T10:35:41.664Z</created_date> <query desc="Physical Items where Title (Title contains keywords "history") and Holding (Library (Holding) equals "Art Library") and Physical item (Receiving date after "2016-04-02")"> ITEM where BIB_MMS (title CONTAIN "history") AND HOLDING (holding_Library OUTER_EQUAL "ART") AND ITEM (arrivalDate AFTER "2016-04-02")</query> <number_of_members link="/almaws/v1/conf/sets/1622034000000121/members">3</number_of_members> </set>