Summary: | Show search term in cataloging search results | ||
---|---|---|---|
Product: | Koha | Reporter: | Jaione <jcortazar> |
Component: | Templates | Assignee: | Owen Leonard <oleonard> |
Status: | Needs Signoff --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | anneli.osterman |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | Small patch | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Attachments: | Bug 37773: Show search term in cataloging search results |
Description
Jaione
2024-08-29 10:49:00 UTC
Created attachment 183279 [details] [review] Bug 37773: Show search term in cataloging search results This patch updates the cataloging search results page so that the search term is shown in the page title, breadcrumb, and headings. To test, apply the patch and go to Cataloging in the staff interface. - Perform searches which will return varying results: - A search which returns records in both the catalog and the reservoir (perform some Z39.50 searches if the reservoir is empty). - A search which returns records in the catalog but not the reservoir. - A search which returns records in the reservoir but not the catalog. - A search which returns no results at all. - In all cases, check the page title, breadcrumbs, and headings. Your search term should appear as expected. - Test that the correct strings are translatable. In this example I'm testing fr-FR: - Update a translation: > gulp po:update > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the strings pulled from the template e.g. misc/translator/po/fr-FR-messages.po - Locate strings pulled from addbooks.tt for translation, e.g.: #: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt:93 #: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt:207 #, fuzzy, perl-brace-format msgid "No catalog search results for '{query}'" msgstr "Résultats de recherche pour '{query}'" - Delete the line starting with "#, fuzzy" - Edit the "msgstr" string however you want (it's just for testing) - Install the updated translation: > perl translate install fr-FR - Switch to your updated translation in the staff interface and perform the same tests as above. The translations should appear as expected. Sponsored-by: Athens County Public Libraries I could not test the translation part but the search part worked as expected in a sandbox. |