3aaaf2f2e4
The HTML for authority search results was previously generated in C4::AuthoritiesMarc::BuildSummary, which meant that it couldn't be translated. This patch moves the HTML generation into the templates by introducing a new authorities-search-results.inc include file for both the OPAC and the Intranet which contains a Template::Toolkit BLOCK for rendering the authority results. Fixes the authority autocomplete by removing the untranslatable strings, and returning only data from the database. To test: 1. Apply patch. 2. Test authority searching in the authority module in the staff client 3. Test authority searching in the authority control plugin in the cataloguing module (and the plugin for UNIMARC field 210$c, if you can figure out how) 4. Test authority searching in the OPAC Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Tested with MARC21 data. 1) Applies cleanly on current HEAD. 2) Authority search in staff Patch works wonderfully, only some small notes found while testing that have not been changed by this patch: ENH note: Search terms show up nowhere. So if I want to change the sorting, I have to repeat typing in my search term. Even if the form does not keep the term, it should be visible somewhere on the screen what I searched for. ENH note: The pagination on top and at the bottom of the result list are formatted differently. Maybe some missing CSS? ENH note: Also the authority type is not shown at all in the result list. 3) Cataloguing and authority plugins The autocomplete function works nicely. ENH note: There is only one small enhancement I could imagine. If I start my search from 100 it will limit the search to 'persons' but the autocomplete will also suggest other authorities. It would be a bit cleaner, if the autocomplete could limit by the appropriate authority type too. Very nice feature. Plugins overall work nicely. Created links include the authority numbers and work correctly. 4) Authority search in OPAC Works nicely. Display is consistent, but translatability greatly improved. ENH note: In staff we use 'Details' in OPAC we use 'View full heading' - I wonder if maybe 'details' would be better understandable for users? Note: Code reveals a system preference 'AuthDisplayHierarchy' that is not available in the system preference editor. I talked to Jared and he will work on this feature later on. For now it's no regression, as the preference has never been visible. |
||
---|---|---|
.. | ||
virtualshelves/merge | ||
acquisitions-add-to-basket.inc | ||
acquisitions-menu.inc | ||
acquisitions-search.inc | ||
acquisitions-toolbar.inc | ||
additem-menu.inc | ||
additem.js.inc | ||
admin-menu.inc | ||
auth-finder-search.inc | ||
authorities-search-results.inc | ||
authorities-search.inc | ||
authorities-toolbar.inc | ||
biblio-default-view.inc | ||
biblio-view-menu.inc | ||
budgetperiods-admin.inc | ||
budgets-active-currency.inc | ||
budgets-admin-search.inc | ||
budgets-admin-toolbar.inc | ||
calendar.inc | ||
cat-menu.inc | ||
cat-search.inc | ||
cat-toolbar.inc | ||
cataloging-search.inc | ||
cataloging-toolbar.inc | ||
checkin-search.inc | ||
checkouts-table-footer.inc | ||
circ-menu.inc | ||
circ-menu.tt | ||
circ-search.inc | ||
circ-toolbar.inc | ||
cities-admin-search.inc | ||
contracts-admin-search.inc | ||
currencies-admin-search.inc | ||
datatables-strings.inc | ||
date-format.inc | ||
dictionary-toolbar.inc | ||
doc-head-close-receipt.inc | ||
doc-head-close.inc | ||
doc-head-open.inc | ||
error-messages.inc | ||
facets.inc | ||
favicon.ico | ||
file-upload.inc | ||
greybox.inc | ||
guided-reports-view.inc | ||
header.inc | ||
help-bottom.inc | ||
help-top.inc | ||
hold-menu.inc | ||
home-search.inc | ||
installer-doc-head-close.inc | ||
intranet-bottom.inc | ||
labels-batches-toolbar.inc | ||
labels-menu.inc | ||
labels-new-toolbar.inc | ||
labels-toolbar.inc | ||
letters-search.inc | ||
mainmenu.inc | ||
members-menu.inc | ||
members-toolbar.inc | ||
messaging-preference-form.inc | ||
page-numbers.inc | ||
patron-search-box.inc | ||
patron-search.inc | ||
patron-title.inc | ||
patron-toolbar.inc | ||
patroncards-batches-toolbar.inc | ||
patroncards-menu.inc | ||
patroncards-toolbar.inc | ||
patrons-admin-search.inc | ||
popup-bottom.inc | ||
prefs-admin-search.inc | ||
prefs-menu.inc | ||
printers-admin-search.inc | ||
quotes-toolbar.inc | ||
quotes-upload-toolbar.inc | ||
reports-menu.inc | ||
reports-toolbar.inc | ||
resort_form.inc | ||
roadtype-admin-search.inc | ||
search_indexes.inc | ||
serials-menu.inc | ||
serials-search.inc | ||
serials-toolbar.inc | ||
stopwords-admin-search.inc | ||
subtypes_unimarc.inc | ||
suggestions-add-search.inc | ||
sysprefs-admin-search.inc | ||
table-pager.inc | ||
tools-item-action.inc | ||
tools-menu.inc | ||
tools-nomatch-action.inc | ||
tools-overlay-action.inc | ||
virtualshelves-toolbar.inc | ||
z3950-admin-search.inc |