Addition of "doctype"/datatype as another possible facet and search element to use

This commit is contained in:
Porras-Bernardez 2024-08-19 15:45:52 +02:00
parent 110c2db8bf
commit 03a55f6a58
7 changed files with 42 additions and 10 deletions

View file

@ -108,7 +108,7 @@ export default class SearchViewComponent extends Vue {
// this.rdrAPI = new DatasetService();
// Trigger search based on provided display and type props
if (this.display != "" && this.type != undefined) {
const enumKey: "Title" | "Author" | "Subject" | null = this.getEnumKeyByEnumValue(SearchType, this.type);
const enumKey: "Title" | "Author" | "Subject" | "Doctype" | null = this.getEnumKeyByEnumValue(SearchType, this.type);
if (enumKey) {
const suggestion = new Suggestion(this.display, "NO-IDEA", SearchType[enumKey]);
// const suggestion = new Suggestion(this.display, "" , SearchType[enumKey]);