Added comments

This commit is contained in:
Porras-Bernardez 2024-09-16 13:31:51 +02:00
parent 5eaf505669
commit de0ccdfcac
2 changed files with 1 additions and 15 deletions

View File

@ -34,7 +34,7 @@
</li>
<li class="navbar-item">
<!-- <a class="navbar-link is-arrowless" href="#">SEARCH</a> -->
<router-link class="navbar-link is-arrowless" to="/search">OPENSEARCH</router-link>
<router-link class="navbar-link is-arrowless" to="/search">SEARCH</router-link>
</li>
<li class="navbar-item">
<!-- <a class="navbar-link is-arrowless" href="#">SERVICES</a> -->

View File

@ -61,24 +61,15 @@ export default class SearchViewComponent extends Vue {
// Define settings for the OpenSearch API (core and host information)
private open: OpenSettings = {
<<<<<<< HEAD
core: OPEN_CORE,
host: OPEN_HOST, //"https://catalog.geosphere.at",
=======
core: OPEN_CORE, //
host: OPEN_HOST, //
>>>>>>> 6f1b9f4c5f6ed9600c40865df6ea6e3b365ad129
};
private error = "";
// Computed property to get search term as string
<<<<<<< HEAD
get stringSearchTerm(): string {
=======
get stringSearchTerm(): string {
// If searchTerm is a string, return it directly
>>>>>>> 6f1b9f4c5f6ed9600c40865df6ea6e3b365ad129
if (typeof this.searchTerm === "string") {
return this.searchTerm;
// If searchTerm is a Suggestion, return its value and type alias
@ -129,11 +120,6 @@ export default class SearchViewComponent extends Vue {
// Lifecycle hook: executed before the component is mounted
beforeMount(): void {
<<<<<<< HEAD
=======
// console.log("beforeMount!");
>>>>>>> 6f1b9f4c5f6ed9600c40865df6ea6e3b365ad129
// Trigger search based on provided display and type props
if (this.display != "" && this.type != undefined) {
const enumKey: "Title" | "Author" | "Subject" | "Doctype" | null = this.getEnumKeyByEnumValue(SearchType, this.type);