Koha/C4
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
..
AuthoritiesMarc Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Barcodes Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ClassSortRoutine Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Creators Bug 7952 - PDF::Reuse under plack writes to console STDOUT instead to browser 2012-06-11 18:21:57 +02:00
External Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Form Talking Tech Support - Phase I - Followup - Fix Messaging Preferences 2012-06-10 17:46:58 +02:00
Heading Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ILSDI Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Installer Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Labels Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Linker signed off Bug 7284: Authority matching improvements 2012-03-07 17:34:11 +01:00
Members Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
OAI Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
Output
Patroncards Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Reports Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Search
SIP Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Utils Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
VirtualShelves Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Accounts.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Acquisition.pm Bug 8247 - adding basket doesn't save basket name, internal or vendor note 2012-06-20 09:16:45 +02:00
Auth.pm Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
Auth_cas_servers.yaml.orig
Auth_with_cas.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Auth_with_ldap.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
AuthoritiesMarc.pm Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
BackgroundJob.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Barcodes.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Biblio.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Bookseller.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Boolean.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Branch.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Breeding.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Budgets.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Calendar.pm Bug 7477: Followup: Fix perlcritic issues 2012-03-19 18:16:40 +01:00
Category.pm Bug 4330 : Adding copyright headers and fixing FSF addresses 2012-05-28 17:54:25 +02:00
Charset.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Circulation.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ClassSortRoutine.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ClassSource.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Context.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Contract.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Creators.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Csv.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Dates.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Debug.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Heading.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Images.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ImportBatch.pm Bug 7329 [Followup] : when reverting an import, keep matching biblionumber in batch table, if items are not deleted because they are issued. 2012-06-20 09:38:01 +02:00
ImportExportFramework.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Input.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Installer.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ItemCirculationAlertPreference.pm Bug 4330 : Adding copyright headers and fixing FSF addresses 2012-05-28 17:54:25 +02:00
Items.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
ItemType.pm Bug 4330 : Adding copyright headers and fixing FSF addresses 2012-05-28 17:54:25 +02:00
Koha.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Labels.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Languages.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Letters.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Linker.pm Bug 7284: Fix unit test broken by erroneous POD 2012-03-08 15:24:18 +01:00
Log.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Maintainance.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Matcher.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Members.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Message.pm Bug 4330 : Adding copyright headers and fixing FSF addresses 2012-05-28 17:54:25 +02:00
NewsChannels.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Output.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Overdues.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Patroncards.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Print.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Ratings.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Record.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Reports.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Reserves.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Review.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Ris.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
RotatingCollections.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Scheduler.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Scrubber.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Search.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Serials.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Service.pm
ShelfBrowser.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
SMS.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
SocialData.pm bug 7470 follow-up, fix POD doc 2012-03-26 17:53:28 +02:00
SQLHelper.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Stats.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Suggestions.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Tags.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Templates.pm Bug 8019 - Preserve language choice between Browser sessions 2012-05-14 18:37:56 +02:00
TmplToken.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
TmplTokenType.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
TTParser.pm Bug 4330 : Adding copyright headers and fixing FSF addresses 2012-05-28 17:54:25 +02:00
UploadedFile.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Utils.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
VirtualShelves.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
XISBN.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
XSLT.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00
Z3950.pm Bug 7941 : Fix version numbers in modules 2012-06-11 17:29:38 +02:00