feat/#285: Implementing of search in header and navigating to home or search page accordingly
To test it in local, please follow these steps:
1 - Create a .env.local file with variables:
VUE_APP_BASE_URL_API = https://ahikar-dev.sub.uni-goettingen.de/api
VUE_APP_BASE_URL_VIEWER = https://ahikar-dev.sub.uni-goettingen.de
2 - Have to run Tido viewer so that we have the localhost url of it.
3 - Modify the following urls to run it in local(based on the localhost entrypoint value of Tido):
SearchResultList.vue - Line 67:
http://localhost:8080/#/?itemurl=${item.item}&source=external&searchTerm=${item.searchTerm}
Bar.vue - Line 92:
http://localhost:8080/#/?source=external
Test Case:
1 - On the website, in the Bar try navigate to Syriac or Ahikar, we should able to see the HomePage breadcrumb only.
2 - Navigate to search.html and search for حيقار
once the result show click on any of the search result. We will be navigating to the Ahikar-Tido and able to see the search breadcrumb in the header.
3 - Click on this search breadcrumb, we can navigate back to search page with the result previously shown.