[Archivesspace_Users_Group] Modifying Search Results from API

Smith, Steelsen steelsen.smith at yale.edu
Mon Jan 23 18:21:39 EST 2017

Hi All,

I'm hoping someone has run into this before - I couldn't find anything in the list history. I'm working with the API and trying to get a list of top containers associated with a given series.

Since top containers aren't easily linked from information in the tree or small_tree I'm using the search function to fetch a container based on either barcode or a combination of resource and series URIs. However, the search function returns massive amounts of data ( > 4mb for a large collection) which seems unnecessary. I tracked it down to the _resolved property in the linked_records property of the rights_restriction jsonmodel which is included in the  active_restrictions property of the jsonmodel of the top container.  It seems like there is way more information returned here then is every actually required from a search so I'm wondering if there's any way to change the properties returned by search endpoints without tweaking the jsonmodels or writing a plugin? Or to just return the URI in the ref property which seems to be the more typical behavior anyway? It seems like ASpace isn't totally consistent with returning recursive properties for every request (e.g., Children are not returned past one level in the tree when a node is provided despite being in the model) so I'm assuming that there's some flexibility here.

Thanks in advance for any help,

Steelsen Smith
Fulfillment Systems Specialist
Enterprise Systems Group
Yale Library IT

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170123/0485f3c6/attachment.html>

More information about the Archivesspace_Users_Group mailing list