Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
admin Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
authorities Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
basket Bug 7940 - Placing a hold on a single item from the staff cart causes errors 2012-04-12 17:58:49 +02:00
batch Bug 7760: Add ids and classes to every staff page to help with customizaton (batch, error) 2012-03-22 18:12:24 +01:00
catalogue Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
cataloguing Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
circ Bug 7444: Update circ/circulation.pl to use KohaDates TT Plugin 2012-06-11 18:02:26 +02:00
errors Bug 2780 - Capitalize strings consistently (Error pages) 2012-04-10 10:03:32 +02:00
help Merge remote-tracking branch 'origin/new/bug_7936' 2012-06-10 10:41:34 +02:00
installer Bug 2780 - Capitalize strings consistently (Installer) 2012-04-10 10:03:33 +02:00
labels [SIGNED-OFF]Bug 2780: Capitalize strings consistently 2012-04-10 10:13:20 +02:00
members Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
offline_circ bug 6372: moved background-job.inc to background-job-progressbar.js 2012-05-07 23:00:34 +02:00
patroncards Bug 5184 - Upgrade jQuery to the latest version (staff client) 2012-05-11 11:05:19 +02:00
reports Bug 8124 - Hide option to download results of items with no checkouts report 2012-05-24 17:58:12 +02:00
reserve Bug 7951 - Suspending holds needs a system preference 2012-06-09 18:45:57 +02:00
reviews Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
rotating_collections Bug 2780 - Capitalize strings consistently (reserve, review, rotating collections) 2012-04-10 10:04:13 +02:00
serials Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
services Bug 7178: Acquisition item creation improvement 2012-03-26 11:07:23 +02:00
sms Bug 2780 - Capitalize strings consistently - various 2012-04-10 10:04:16 +02:00
suggestion Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
tags Bug 2780 - Capitalize strings consistently - various 2012-04-10 10:04:16 +02:00
test bug 6372: moved background-job.inc to background-job-progressbar.js 2012-05-07 23:00:34 +02:00
tools Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
virtualshelves Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
z3950 Bug 2780 - Capitalize strings consistently - various 2012-04-10 10:04:16 +02:00
about.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
auth.tt Bug 2780 - Capitalize strings consistently (home, about, login) 2012-04-10 11:10:02 +02:00
intranet-main.tt Bug 8160 - Link to cataloging appears for users without cataloging permission 2012-06-05 16:01:42 +02:00