Use pp2's facet names ("xtargets", "subject", "author") instead of
authorMike Taylor <mike@indexdata.com>
Thu, 6 Feb 2014 12:26:14 +0000 (12:26 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 6 Feb 2014 12:26:14 +0000 (12:26 +0000)
commit5b6ed3181d9fba4ec3d3fd4692ff16b4484ef1cb
tree3e2652e33e7f3ab8613c75f840e5007d61221135
parentfea28a96754e0b63db268c14368918be298b683b
Use pp2's facet names ("xtargets", "subject", "author") instead of
unnecessary MKWS-specific variants ("sources", "subjects",
"authors").
The pp2 object is now initialised to fetch only the facets that we're
actually going to use, rather than blinding fetching all three
whether they're used or not.
No "onterm" callback function is provided when no facets at all are
required, so that PP2 is never asked for them. This is going
to be a significant optimisation when using multiple Fresco
widgets.
my_onterm() now raises an alert on the "can't happen" condition that
we are invoked when no facets were requested. This defensive
clause can be removed later.
tools/htdocs/mkws.js