- if (facets[i] == "sources")
- add_single_facet(termlists, "Sources", data.xtargets, SourceMax, null);
- if (facets[i] == "subjects")
- add_single_facet(termlists, "Subjects", data.subject, SubjectMax, "su");
- if (facets[i] == "authors")
- add_single_facet(termlists, "Authors", data.author, AuthorMax, "au");
+ if (facets[i] == "sources") {
+ add_single_facet(acc, "Sources", data.xtargets, SourceMax, null);
+ } else if (facets[i] == "subjects") {
+ add_single_facet(acc, "Subjects", data.subject, SubjectMax, "su");
+ } else if (facets[i] == "authors") {
+ add_single_facet(acc, "Authors", data.author, AuthorMax, "au");
+ } else {
+ alert("bad facet configuration: '" + facets[i] + "'");
+ }