Main Koha release repository https://koha-community.org
Find a file
Marcel de Rooy f952067cb2
Bug 21800: Make TransformKohaToMarc aware of non-repeatable subfields
If a kohafield (in Koha to MARC mappings) contains a pipe char (say A | B),
we split it up into two subfields A and B in MARC.
We will only do that for repeatable subfields now. If the field is not
repeatable, the value will just be 'A | B'.

Note 1: As bug 10306 and its friends (19096) made the Default framework
authoritative, we do no longer have the frameworkcode in this routine.
Formally, we should check the corresponding framework.

Note 2: Does this impact the reverse operation in TransformMarcToKoha?
No, the check on repeatable subfields is done in the interface and not
in TransformMarcToKoha. This routine simply translates two instances of the
same subfield, say A and B, into the value 'A | B' for a kohafield. Not
allowing two instances of a non-repeatable subfield is not in the scope of
this report.

Test plan:
[1] Mark an item field as repeatable in the Default framework.
    Edit an item. Insert A|B in this field and another not-repeatable
    field. Save and reopen. Verify that the repeatable field is duplicated
    and the other one contains the pipe character in the text box.
[2] Look for a repeatable subfield in MARC like e.g. 260$c.
    Go to the cataloguing editor and add A|B in this field.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-24 10:54:46 +00:00
acqui Bug 24672: (bug 24430 follow-up) Do not get active orders on deleted biblio record 2020-03-24 09:31:34 +00:00
admin Bug 20443: Fix add/edit for checkboxes 2020-03-23 13:49:23 +00:00
api/v1
authorities
basket
C4 Bug 21800: Make TransformKohaToMarc aware of non-repeatable subfields 2020-03-24 10:54:46 +00:00
catalogue Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
cataloguing Bug 23463: (follow-up) Remove DelItemCheck and ItemSafeToDelete 2020-03-23 09:26:33 +00:00
circ Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
clubs
course_reserves
debian Bug 24052: Add koha_xslt_security to koha-conf.xml 2020-03-24 10:42:23 +00:00
docs
errors
etc Bug 24052: Add koha_xslt_security to koha-conf.xml 2020-03-24 10:42:23 +00:00
ill
installer Bug 24759: DBRev 19.12.00.051 2020-03-24 10:54:45 +00:00
Koha Bug 24759: Rename renewalbranch to renewal_branchcode 2020-03-24 10:48:41 +00:00
koha-tmpl Bug 24759: CleanUp OpacRenewalBranch values 2020-03-24 10:48:00 +00:00
labels
members Bug 20443: Fix creation of new patron with attributes 2020-03-23 13:49:23 +00:00
misc Bug 15214: bulkmarcimport should log if an authority has been updated 2020-03-24 10:54:46 +00:00
offline_circ Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
opac Bug 24759: Move OpacRenewalBranch code to Koha::Item 2020-03-24 10:47:49 +00:00
patron_lists
patroncards
plugins
pos
reports Bug 20443: Use search_with_library_limits for attribute types 2020-03-23 13:49:22 +00:00
reserve
reviews
rotating_collections
serials Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
services
skel
suggestion
svc Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
t Bug 21800: Add tests for repeatable subfields 2020-03-24 10:54:46 +00:00
tags
tmp/modified_authorities
tools Bug 20443: Use search_with_library_limits for attribute types 2020-03-23 13:49:22 +00:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.scss-lint.yml
about.pl
changelanguage.pl
cpanfile
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 24759: DBRev 19.12.00.051 2020-03-24 10:54:45 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo