__PACKAGE__->register_method(
method => "retrieve_cached_facets",
- api_name => "open-ils.search.facet_cache.retrieve"
+ api_name => "open-ils.search.facet_cache.retrieve",
+ signature => {
+ desc => 'Returns facet data derived from a specific search based on a key '.
+ 'generated by open-ils.search.biblio.multiclass.staged and friends.',
+ params => [
+ {
+ desc => "The facet cache key returned with the initial search as the facet_key hash value",
+ type => 'string',
+ }
+ ],
+ return => {
+ desc => 'Two level hash of facet values. Top level key is the facet id defined on the config.metabib_field table. '.
+ 'Second level key is a string facet value. Datum attached to each facet value is the number of distinct records, '.
+ 'or metarecords for a metarecord search, which use that facet value and are visible to the search at the time of '.
+ 'facet retrieval. These counts are calculated for all superpages that have been checked for visibility.',
+ type => 'object',
+ }
+ }
);