Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Jared Camins-Esakov 83370c519c Bug 8523: Display auth hierarchies w/all marcflavours
This commit adds support for displaying authority hierarchies for all
flavours of MARC, not just UNIMARC. Display now uses the jQuery
jstree plugin, selected with the help of Owen Leonard, resulting in a
much faster experience for users.

Be aware that the jstree file uses tabs rather than 4-space indentation,
which I left as-is so as to make it easier to integrate upstream
releases in the future.

To test:
1) Enable the AuthDisplayHierarchy syspref
2) Create authority records with a hierarchy of see also fields
   (in MARC21/NORMARC, you'll be using 5xx fields for this, with a
   subfield $w=g for broader terms and subfield $w=h for narrower
   terms)
3) View the authorities in the OPAC, noting the hierarchical view at
   the top of the page.

This initial patch does not create bidirection linkages from
unidirectional links in MARC21 authorities. This means that when moving
up the authority hierarchy, lower levels will disappear. This is
intentional, as the first patch is intended merely to ensure that
AuthDisplayHierarchy functions the same for all marcflavours. A future
patch will add a cron job to generate the bidirectional linkages, once
we are sure that the hierarchy functionality for UNIMARC and
MARC21/NORMARC coexists peaceably.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Resolved conflicts in updatedatabase.pl, sysprefs.sql and in one of
the CSS files.

Test plan:

1) Run t/AuthoritiesMarc.t
New tests complete without any errors.

2) Make sure updatedatabase works correctly.
Update works nicely, new system preference is also added to syspref.sql

3) Make sure new terms are translatable.
Created new po files for de-DE and checked for new terms.
All translations appear correctly.

4) Make sure everything works with AuthDisplayHieararchy OFF
- Add authority
- Edit authority
- Delete authority

5) Test feature with AuthDisplayHieararchy ON
- Add authority
- Edit authority
- Delete authority

6) Add a couple of hierarchically linked authorities
Note: links have to be created in both directions

Example:
151 $aGermany
  551 $a Baden-Württemberg $w h

151 $aBaden-Württemberg
  551 $a Konstanz $w h
  551 $a Germany $w g

151 $aKonstanz
  551 $a Baden-Württemberg $w g
  551 $a Fürstenberg $w h
  551 $a Paradies $w h

151 $a Fürstenberg
  551 $a Konstanz $w g

151 $a Paradies
  551 $a Konstanz $w g

Tree shows up nicely above the authority record
- in staff
- in OPAC
  - on the normal view tab
  - on the MARC view tab

7) Checking the logs for warnings
- no Javascript errors or warnings
- no warnings or errors in log files
2012-09-21 14:52:08 +02:00
..
preferences Bug 8523: Display auth hierarchies w/all marcflavours 2012-09-21 14:52:08 +02:00
searchengine/solr Bug 8385: Dirty patch to make tt_valid.t happy 2012-08-03 11:44:59 +02:00
admin-home.tt bug_5911: Transport Cost Matrix 2012-09-12 14:49:25 +02:00
aqbudget_user_search.tt Bug 7304: More permissions for budgets 2012-06-27 16:25:44 +02:00
aqbudgetperiods.tt A follow-up will be added though, because we understood why I had some javascript error and jonathan didn't. It's because I've plack + debug 2012-09-19 17:02:14 +02:00
aqbudgets.tt Bug 7304: More permissions for budgets 2012-06-27 16:25:44 +02:00
aqcontract.tt Bug 8428 - can't save contracts 2012-09-14 17:30:44 +02:00
aqplan.tt Bug 8181 [REVISED] Replace DynArch calendar widget with jQueryUI version 2012-06-25 18:26:26 +02:00
auth_subfields_structure.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
auth_tag_structure.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
authorised_values.tt Bug 8757: longer descriptions for authorised values 2012-09-18 12:22:49 +02:00
authtypes.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
biblio_framework.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
branch_transfer_limits.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
branches.tt Bug 8122 - Followup Add a link to new library group creation from empty groups message 2012-05-28 15:51:15 +02:00
categorie.tt Bug 7628: Escape '+' characters for categorycode 2012-08-03 15:01:03 +02:00
checkmarc.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
cities.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
classsources.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
clone-rules.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
currency.tt Bug 8166 - Adding new currencies & exchange rates 2012-06-10 13:57:19 +02:00
fieldmapping.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
item_circulation_alerts.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
itemtypes.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
koha2marclinks.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
marc_subfields_structure.tt Bug 8229: Tabs in marc subfield structure is not shown correctly 2012-06-20 11:10:13 +02:00
marctagstructure.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
matching-rules.tt Bug 7475: Teach matching rules to handle authorities 2012-09-19 17:15:56 +02:00
oai_set_mappings.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
oai_sets.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
patron-attr-types.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
preferences.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
printers.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
roadtype.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
smart-rules.tt [PATCH] bug_7420: Added overduefinescap to issuingrules 2012-07-25 18:33:20 +02:00
stopwords.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
systempreferences.tt Bug 8261: Cannot search system preferences from Local Use tab 2012-09-05 15:46:38 +02:00
transport-cost-matrix.tt bug_5911: Transport Cost Matrix 2012-09-12 14:49:25 +02:00
z3950servers.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00