Go to file
Jared Camins-Esakov e666a29698 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.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Rebased for 3.8.x on 21 June 2012.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-07-27 08:23:16 +12:00
C4 Bug 7943: Authority search results are untranslatable 2012-07-27 08:23:16 +12:00
Koha Bug 5644 : Fixing dropbox mode calculation 2012-07-17 17:39:16 +12:00
acqui Bug 8439 - Printing basketgroup does not work on plack 2012-07-25 13:32:23 +12:00
admin Bug 3413: Checkboxes for new subfields not saving correctly 2012-05-08 09:42:52 +12:00
authorities Bug 7943: Authority search results are untranslatable 2012-07-27 08:23:16 +12:00
basket Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
catalogue Bug 8255: allow local cover images to be cached 2012-06-26 13:37:25 +12:00
cataloguing Bug 7943: Authority search results are untranslatable 2012-07-27 08:23:16 +12:00
circ Bug 3701 : BugFix - ReturnToShelvingCart 2012-07-25 13:36:29 +12:00
debian Bug 8235 - allow a whitelist of modules that aren't in Debian 2012-07-12 11:07:33 +12:00
docs Bug 7143 : Adding Stacey Walker to the history 2012-07-11 08:45:55 +12:00
errors Housekeeping in errors scripts 2010-05-12 07:29:03 -04:00
etc Bug 7818 Add UNIMARC biblio records zebra DOM def files 2012-06-26 09:21:19 +12:00
install_misc Bug 7818: update miscellaneous installer scripts 2012-06-26 09:14:23 +12:00
installer Bunping db version for release 2012-07-21 09:24:46 +12:00
koha-tmpl Bug 7943: Authority search results are untranslatable 2012-07-27 08:23:16 +12:00
labels Bug 8375 - Patch for Common diacritics not shown correctly when exporting batch label to PDF 2012-07-17 17:33:41 +12:00
members Bug 8392: Avoid having an untranslatable age range 2012-07-25 21:00:58 +12:00
misc 3.8.3 Release notes 2012-07-21 09:25:49 +12:00
offline_circ Bug 8006 - Loading offline circulation does not anonymize 2012-06-23 19:07:11 +12:00
opac Bug 7943: Authority search results are untranslatable 2012-07-27 08:23:16 +12:00
patroncards Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
reports Bug 4330 : Fixing FSF address and copyright headers 2012-05-29 16:49:53 +12:00
reserve Bug 7815 : Order pickup libraries list by name rather than by code 2012-06-14 12:59:07 +12:00
reviews Bug 1623 - Provide view of approved comments 2011-12-27 18:26:50 +01:00
rotating_collections Bug 6553 : Follow up adding license statements 2011-08-13 19:54:38 +12:00
selenium Adding selenium tests for filterMembers 2009-09-30 11:30:37 +02:00
serials Bug 5354 follow-up : dealing with a wrong regexp 2012-03-28 16:17:45 +02:00
services Bug 7178: Acquisition item creation improvement 2012-03-26 11:07:23 +02:00
skel installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
sms Bug 2505 - Add commented use warnings where missing in the sms/ directory 2010-04-21 20:25:08 +12:00
suggestion Bug 8440: Dates do not appear in suggestions management 2012-07-25 15:30:19 +12:00
svc bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
t Bug 5644 : Fixing the test 2012-07-17 17:39:47 +12:00
tags Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
test Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
tmp/modified_authorities changing DO_NOT_REMOVE to README.txt 2007-10-21 19:14:41 -05:00
tools Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
virtualshelves Bug 7788: [SIGNED-OFF] Followup: GetShelf call in addbybiblio script corrected 2012-05-23 16:20:42 +12:00
xt Bug 5327 : Follow up for TTParser test 2012-07-07 11:35:47 +12:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap 7439 Mailmap for master 2012-01-27 12:27:58 +01:00
INSTALL Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.debian Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.fedora7 Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +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 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.ubuntu.lucid Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
LICENSE Update LICENSE with a fresh copy from upstream. This updates the FSF address, and refers to the LGPL with its current name, and changes a few other minor things of the typographical sort. No semantic changes. 2010-03-16 20:17:48 -04:00
MANIFEST.SKIP Bug Fixing : 3334 2009-06-19 06:33:34 -05:00
Makefile.PL Bug 7818: update installer for biblio DOM indexing 2012-06-26 09:08:30 +12:00
README updated links in README 2010-05-24 08:14:16 -04:00
README.robots Bug 6411 add another example to README.robots 2011-07-05 14:48:05 +12:00
about.pl Bug 7143 Followup for timeline 2012-06-26 13:34:32 +12:00
changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
edithelp.pl Bug 7038 Contextual help is always in English 2011-10-18 16:01:25 +13:00
fix-perl-path.PL installer: improvements to fix-path-perl.PL on Win32 2007-12-20 19:20:12 -06:00
help.pl Bug 6628 : Stopping a potential vulnerability 2011-11-28 10:05:58 +01:00
install-CPAN.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
koha_perl_deps.pl Bug 6914 - fixes for the color option of koha_perl_deps.pl 2011-12-03 07:47:38 +01:00
kohaversion.pl Bunping db version for release 2012-07-21 09:24:46 +12:00
mainpage.pl Bug 6875 cleaning mainpage.pl 2012-02-15 14:58:31 +01:00
rewrite-config.PL Bug 7818: update installer for biblio DOM indexing 2012-06-26 09:08:30 +12:00

README

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/