Bug 21740: Show @ when editing fixed-length fields on bibliographic frameworks
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 31 Oct 2018 14:50:59 +0000 (11:50 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 5 Nov 2018 14:41:03 +0000 (14:41 +0000)
commite520d699109958712212ead8b8935a63402e5b37
treeea9c6316e3fbec101825c0b672598988dfd24e80
parent5b807fd3d75e059ad8ea48c126b3aaf2b68a26e9
Bug 21740: Show @ when editing fixed-length fields on bibliographic frameworks

This is a consistency issue: we store '@' as the subfield for
fixed-lenght fields, yet on editing '_' is displayed (on the form and
the tab). This was probably done to avoid URI encoding problems in the
past.

This patch restores the '@' everywhere.

To test:
- Open the MARC structure for any bibliographic MARC framework
- Choose Actions > Subfields on any fixed-length field
=> ERROR: Notice the tab has an underscore (_) and the subfield code is '_' as well.
- Cancel
=> SUCCESS: '@' is displayed on the list
- Apply this patch
- Restart all the things:
  $ restart_all
- Choose Actions > Subfields on any fixed-length field
=> SUCCESS: '@' is displayed in the tab title, and on the 'Subfield
code' form field.
- Save some changes
=> SUCCESS: Things work correctly.
- Sign off :-D

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>

Signed-off-by: Devinim <kohadevinim@devinim.com.tr>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
admin/marc_subfields_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt