Main Koha release repository https://koha-community.org
Find a file
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 5337: EAN management : Adds ean for various searches 2012-06-09 18:26:34 +02:00
admin Talking Tech Support - Phase I - Followup - Fix Messaging Preferences 2012-06-10 17:46:58 +02:00
authorities Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
basket
C4 Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
catalogue Bug 5337: EAN management : Adds ean for various searches 2012-06-09 18:26:34 +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
debian Bug 7411: Remove diacritics from generated userid 2012-06-11 16:43:39 +02:00
docs Adding Shari Perkins as contributor 2012-06-10 13:56:26 +02:00
errors
etc Bug 7586 - Search: Language restriction does NOT show expected results (no items shown) 2012-06-10 11:00:14 +02:00
install_misc Bug 7411: Remove diacritics from generated userid 2012-06-11 16:43:39 +02:00
installer Bug 4246 Follow-up updatedatabase 2012-06-10 18:16:33 +02:00
Koha Merge remote-tracking branch 'origin/new/bug_8092' 2012-06-14 17:57:09 +02:00
koha-tmpl Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
labels Bug 8140 - [SIGNED-OFF] Error when exporting label xml 2012-05-28 18:15:31 +02:00
members Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
misc Bug 8136 Changes the expected lenght of 100$a in rebuild_zebra.pl 2012-06-20 09:39:27 +02:00
offline_circ Bug 4976 - Status of item returned with process_koc.pl is empty in Intranet 2012-03-19 16:23:10 +01:00
opac Bug 7943: Authority search results are untranslatable 2012-06-20 10:07:30 +02:00
patroncards Bug 7318: Fixes category display in patroncards Patron Search results. 2012-02-27 18:01:00 +01:00
reports Bug 4330 : Fixing FSF address and copyright headers 2012-05-28 17:53:40 +02:00
reserve Bug 7815 : Order pickup libraries list by name rather than by code 2012-06-10 13:09:00 +02:00
reviews
rotating_collections
selenium
serials Bug 5337: EAN management : Adds ean for various searches 2012-06-09 18:26:34 +02:00
services Bug 7178: Acquisition item creation improvement 2012-03-26 11:07:23 +02:00
skel
sms
suggestion Bug 7871: prevents crash when suggestion linked to erased budget 2012-04-10 13:41:16 +02:00
svc Bug 7248 follow-up (alternative) 2012-05-15 18:05:58 +02:00
t Merge remote-tracking branch 'origin/new/bug_7952' 2012-06-14 15:56:29 +02:00
tags Bug 6933 follow-up, perltyding new script list.pl 2012-02-02 10:17:43 +01:00
test
tmp/modified_authorities
tools Bug 7961 - Local cover images should support CSV link files 2012-06-20 09:42:25 +02:00
virtualshelves Bug 7788: [SIGNED-OFF] Followup: GetShelf call in addbybiblio script corrected 2012-05-22 12:06:26 +02:00
xt Bug 8022: Permissions test doesn't check all languages 2012-05-14 15:05:16 +02:00
.htaccess
.mailmap 7439 Mailmap for master 2012-01-27 12:27:58 +01:00
about.pl Bug 7164 follow-up history.txt and perlcritic compliance 2011-12-14 15:10:28 +01:00
changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
install-CPAN.pl
INSTALL.debian Bug 8092 follow-up: Add optional dependency on CHI 2012-06-09 13:08:18 +02:00
INSTALL.fedora7 Bug 8092 follow-up: Add optional dependency on CHI 2012-06-09 13:08:18 +02:00
INSTALL.opensuse Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.ubuntu Bug 8092 follow-up: Add optional dependency on CHI 2012-06-09 13:08:18 +02:00
INSTALL.ubuntu.lucid Bug 8092 follow-up: Add optional dependency on CHI 2012-06-09 13:08:18 +02:00
koha_perl_deps.pl
kohaversion.pl Bug 4246 Follow-up updatedatabase 2012-06-10 18:16:33 +02:00
LICENSE
mainpage.pl Bug 6875 cleaning mainpage.pl 2012-02-15 14:58:31 +01:00
Makefile.PL Bug 7818: update installer for biblio DOM indexing 2012-06-09 11:43:56 +02:00
MANIFEST.SKIP
README
README.robots Bug 6411 add another example to README.robots 2011-07-05 14:48:05 +12:00
rewrite-config.PL Bug 7818: update installer for biblio DOM indexing 2012-06-09 11:43:56 +02:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/