Forums

CollectiveAccess Support Forum » Troubleshooting

get subset of objects through web services

(2 posts)
  • Started 2 months ago by svendecabooter
  • Latest reply from stefan

No tags yet.


  1. Hi,

    I am trying to retrieve subset(s) of objects from CollectiveAccess through the available web services.
    This is working fine through the ItemInfo getSetItems() method.

    However I would like to retrieve a list of available sets as well. I don't see any possibilities for this in the web services methods though. Would it be possible to get them with the Search query() method? What would be query for that?

    And to broaden my question a bit: Is the usage of sets the best way to achieve this? What would be the recommended way to create a subset of objects in CollectiveAccess, for thematic presentation externally?

    Thanks in advance
    Sven

    Posted 2 months ago #
  2. stefan
    Developer

    Hi,

    the search service doesn't support queries for sets since we don't have any search facilities in our libraries that support them (yet). You might have noticed that the corresponding UI just dumps all available sets in a table that can be searched using DOM/Javascript methods afterwards. There is no such thing as "Find>Sets".

    I will try to add a "getSets" method to the SearchService that gives you a list of all available sets later this week. That should be enough to get you started, right?

    As for your second question: Yes, I think this is at least a good way to achieve this. An alternative would be to use a vocabulary (ca_lists entry) to tag your objects and then restrict your object search to the related vocabulary term (ca_list_items entry).

    Stefan

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.