Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Jared Camins-Esakov 3aaaf2f2e4 Bug 7943: Authority search results are untranslatable
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.
2012-06-20 10:07:30 +02:00
..
virtualshelves/merge
acquisitions-add-to-basket.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:23 +02:00
acquisitions-menu.inc Bug 8040: bad name in acquisitions-menu 2012-05-24 18:09:46 +02:00
acquisitions-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
acquisitions-toolbar.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:23 +02:00
additem-menu.inc Bug 2780 - Capitalize strings consistently (Cataloging) 2012-04-04 17:54:40 +02:00
additem.js.inc Bug 7178: Acquisition item creation improvement 2012-03-26 11:07:23 +02:00
admin-menu.inc Bug 8195: Selected link must be bold (in admin and tools) 2012-06-09 12:31:12 +02:00
auth-finder-search.inc Bug 7747 - Replace YUI autocomplete with jQueryUI 2012-05-31 18:07:55 +02:00
authorities-search-results.inc Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
authorities-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
authorities-toolbar.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:24 +02:00
biblio-default-view.inc
biblio-view-menu.inc Bug 1633 - Interface revisions for the staff client 2012-01-24 11:16:09 +01:00
budgetperiods-admin.inc Bug 2780 - Capitalize strings consistently (Budgets) 2012-04-04 17:51:27 +02:00
budgets-active-currency.inc
budgets-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
budgets-admin-toolbar.inc Bug 2780 - Capitalize strings consistently (Budgets) 2012-04-04 17:51:27 +02:00
calendar.inc Bug 7261 System Preference to select the first day of week 2012-03-14 14:14:12 +01:00
cat-menu.inc
cat-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
cat-toolbar.inc Bug 7739 follow-up for capital cases 2012-05-11 12:20:14 +02:00
cataloging-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
cataloging-toolbar.inc Bug 2780 - Capitalize strings consistently (Cataloging) 2012-04-04 17:54:40 +02:00
checkin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
checkouts-table-footer.inc
circ-menu.inc Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-04 17:54:07 +02:00
circ-menu.tt Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-04 17:54:07 +02:00
circ-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
circ-toolbar.inc Bug 2733 - Can't print patron account 2012-04-06 18:30:35 +02:00
cities-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
contracts-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
currencies-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
datatables-strings.inc Bug 6836: Add jQuery dataTables plugin 2012-01-27 11:33:11 +01:00
date-format.inc Bug 5543 - Date ISO format wrong separator 2012-01-10 23:28:47 +01:00
dictionary-toolbar.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
doc-head-close-receipt.inc
doc-head-close.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
doc-head-open.inc
error-messages.inc Bug 7731 - Library should be used instead of branch and site 2012-03-20 15:17:08 +01:00
facets.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
favicon.ico Bug 7949 - a different favicon for the staff client 2012-05-07 23:19:56 +02:00
file-upload.inc
greybox.inc
guided-reports-view.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
header.inc Bug 8160 - Link to cataloging appears for users without cataloging permission 2012-06-05 16:01:42 +02:00
help-bottom.inc
help-top.inc
hold-menu.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
home-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
installer-doc-head-close.inc
intranet-bottom.inc Bug 7644 - Invalid markup in staff client language chooser 2012-03-16 11:46:01 +01:00
labels-batches-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-menu.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-new-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
letters-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
mainmenu.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
members-menu.inc Bug 2780 - Capitalize strings consistently (Patrons) 2012-04-04 17:54:37 +02:00
members-toolbar.inc Bug 2733 - Can't print patron account 2012-04-06 18:30:35 +02:00
messaging-preference-form.inc Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
page-numbers.inc
patron-search-box.inc Bug 7747 - Replace YUI autocomplete with jQueryUI 2012-05-31 18:07:55 +02:00
patron-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
patron-title.inc Bug 6303: Display Organisation and Parent Organisation names when viewing a borrower of type organisation 2011-11-24 11:30:08 +01:00
patron-toolbar.inc Bug 2780 - Capitalize strings consistently (Patrons) 2012-04-04 17:54:37 +02:00
patroncards-batches-toolbar.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patroncards-menu.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patroncards-toolbar.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patrons-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
popup-bottom.inc
prefs-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
prefs-menu.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
printers-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
quotes-toolbar.inc Bug 7977: Further UI work on the QOTD editor 2012-05-24 14:14:17 +02:00
quotes-upload-toolbar.inc Bug 7977: Further UI work on the QOTD uploader 2012-05-24 14:14:15 +02:00
reports-menu.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
reports-toolbar.inc Bug 7668 - Improve navigation and toolbar options in guided reports 2012-03-19 18:00:15 +01:00
resort_form.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
roadtype-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
search_indexes.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
serials-menu.inc Bug 7523: Improve checks for routing permissions 2012-02-27 18:22:01 +01:00
serials-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
serials-toolbar.inc Bug 2780 - Capitalize strings consistently (Serials) 2012-04-04 17:54:38 +02:00
stopwords-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
sysprefs-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
table-pager.inc Bug 6842 Alternate fix, Branch transfer limits broken 2012-02-01 22:38:32 +01:00
tools-item-action.inc
tools-menu.inc Bug 8195: Selected link must be bold (in admin and tools) 2012-06-09 12:31:12 +02:00
tools-nomatch-action.inc
tools-overlay-action.inc
virtualshelves-toolbar.inc Bug 7363: allows downloading of lists in CSV format 2012-01-13 12:13:33 +01:00
z3950-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00