It would be nice if Koha could highlight the search term in the title notes tab of a OPAC biblio detail page.
Created attachment 158101 [details] [review] Bug 35192: Highlight search terms in the OPAC Title notes tab Test plan: 1. Create a biblio record with the word 'Fish' in the title (245$a) and the summary (520$a) 2. Set 'OpacHighlightedWords' system preference to 'Highlight' 3. Submit an OPAC search with the search term of 'Fish'. Click on the biblio created in #1 4. Notice 'Fish' in the title is highlighted, as is the Summary. Scroll down to the Holdings table. Click on 'Title notes' and notice 'Fish' is not highlighted in the 'Title notes' 5. Apply patch and restart services 6. Refresh the biblio page. Click on the 'Title notes' tab again 7. Notice 'Fish' is highlighted in the 'Title notes' tab 8. Right click, click 'Inspect element'. Confirm there are no JavaScript errors in the console. Sponsored-by: Catalyst IT, New Zealand
From my testing, words in the title notes tab are not highlighted. The only JS error in the console is about downloadable fonts - there is a bug for this (Bug 34973).
Created attachment 189918 [details] [review] Bug 35192: Highlight search terms in the OPAC Title notes tab Test plan: 1. Create a biblio record with the word 'Fish' in the title (245$a) and the summary (520$a) 2. Set 'OpacHighlightedWords' system preference to 'Highlight' 3. Submit an OPAC search with the search term of 'Fish'. Click on the biblio created in #1 4. Notice 'Fish' in the title is highlighted, as is the Summary. Scroll down to the Holdings table. Click on 'Title notes' and notice 'Fish' is not highlighted in the 'Title notes' 5. Apply patch and restart services 6. Refresh the biblio page. Click on the 'Title notes' tab again 7. Notice 'Fish' is highlighted in the 'Title notes' tab 8. Right click, click 'Inspect element'. Confirm there are no JavaScript errors in the console. Sponsored-by: Catalyst IT, New Zealand
Created attachment 189919 [details] The search term 'fish' is highighted in the OPAC title notes tab in Google Chrome
(In reply to David Nind from comment #2) > From my testing, words in the title notes tab are not highlighted. > > The only JS error in the console is about downloadable fonts - there is a > bug for this (Bug 34973). Hi David, It was lovely to see you last week at Kohacon!! I've reworked this fix and have tested on main in Google Chrome and Mozilla Firefox. Could you please re-test when you have a moment and let me know if the test problems you found in comment #2 are now resolved? Many thanks, Alex
Created attachment 190001 [details] [review] Bug 35192: Highlight search terms in the OPAC Title notes tab Test plan: 1. Create a biblio record with the word 'Fish' in the title (245$a) and the summary (520$a) 2. Set 'OpacHighlightedWords' system preference to 'Highlight' 3. Submit an OPAC search with the search term of 'Fish'. Click on the biblio created in #1 4. Notice 'Fish' in the title is highlighted, as is the Summary. Scroll down to the Holdings table. Click on 'Title notes' and notice 'Fish' is not highlighted in the 'Title notes' 5. Apply patch and restart services 6. Refresh the biblio page. Click on the 'Title notes' tab again 7. Notice 'Fish' is highlighted in the 'Title notes' tab 8. Right click, click 'Inspect element'. Confirm there are no JavaScript errors in the console. Sponsored-by: Catalyst IT, New Zealand Signed-off-by: David Nind <david@davidnind.com>