Koha/misc/maintenance
Katrin Fischer 8cfe35b044
Bug 25082: Make 041 descriptions display, if authorised value list is used
When 041$a or another subfield is linked to an authorised value list,
Koha will replace the codes with the descriptions from the authorised
value in the MARCXML before passing it to the XSLT.

The XSLT was made to translate codes into descriptions - as there is
no code now, this fails and 'unknown language' is shown.

The patch changes the handling so that when the XSLT is handled something
that doesn't match a known code, it displays the subfield without
processing.

To test:
- Create some records with 041.
  Examples: http://www.loc.gov/marc/bibliographic/bd041.html
- Verify this displays nicely in staff and OPAC
- Apply patch
- Verify display is unchanged
- Remove the patch
- Change one of your MARC frameworks (use another framework than
  for your first test records)
  and link the 041 subfields to the LANG authorised value list
- Go to administration and create some entries for LANG with language
  codes and descriptions
- Catalog a 041 using the normal editor (not advanced)
- You can now use a pull down to select the values you want
- Verify the display is now 'Unknown language' for this record
- Apply patch
- Verify all records display the language descriptions now, using
  an authorised value or not
- Run misc/maintenance/generate_MARC21Languages.pl

Verify the output at the end reads like:
<xsl:otherwise>
    <!-- when 041\$a is mapped to an authorised value list, this will show the description -->
    <xsl:value-of select="\$code" />
</xsl:otherwise>

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-05-11 09:46:02 +01:00
..
auth_show_hidden_data.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
borrowers-force-messaging-defaults.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check_sysprefs.sh
cmp_sysprefs.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
compare_es_to_db.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
fix_accountlines_date.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_accountlines_rmdupfines_bug8253.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_mysql_constraints.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_tags_weight.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
generate_MARC21Languages.pl Bug 25082: Make 041 descriptions display, if authorised value list is used 2020-05-11 09:46:02 +01:00
make_zebra_dom_cfg_from_record_abs Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
process_record_through_filter.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
remove_items_from_biblioitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
sanitize_records.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
search_for_data_inconsistencies.pl Bug 23871: data inconsistencies - check title exists 2020-04-14 16:55:13 +01:00
touch_all_biblios.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
touch_all_items.pl Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
UNIMARC_fix_collectiontitle.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
UNIMARC_sync_date_created_with_marc_biblio.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
update_authorities.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00