Aug 13, 2013
I’ve just checked in a bunch of improvements to the SharePoint Taxonomy related bundle in Barista.
- Taxonomy is now a bundle unto itself – you can still get a taxonomy instance from spSite.getTaxonomySession(), however, you can also do the following:
b. You can supply a SPSite instance, a Guid instance or a url as the argument.
- The TaxonomySession has a “static” function to sync the taxonomy hidden list on a site. (Technically a function on the prototype)
b. This is similar to the ResyncHiddenList on the TermStore prototype, but according to the SP docs – “The method enumerates through every item in the hidden list to ensure it is up to date.”
- TermSets are now surfaced
b. Note that the functions on the taxonomy session object now return collection objects. If you need to get all the term sets as an array, you can use the function as above, or, use one of the getters.
- I’ve also added additional overloads to retrieve termsets, and termstores, that it looks like I missed on the first pass.
a. getTermsWithCustomProperty, offlineTermStoreNames, termStores
Hope this helps, back to the Content Deployment Bundle..