Main Koha release repository
https://koha-community.org
f0e7a120ce
Original patch from Remi Mayrand-Provencher. Amended by Marcel de Rooy (January 2017), part of omnibus bug 17908. EDIT: We cannot remove the ModAuthority call, since the reference record is the result of the merge and should be saved. Variable $overwrite is not used and can be removed. It is not useful to postpone a merge to the cron job here, since the old authority record is deleted. (Note that bug 9988 will address this subject too.) Removing the call to C4::ImportBatch::SetImportRecordStatus: Since $recordid2 is not an import_record_id, this is useless and potentially wrong. Removed the if statement for @errors, since it is not used at this point; putting the result of a comparison into $error is not useful either. Note: there is a lot of code in merge.pl around breeding that is actually unused. Template tools/manage-marc-import.tt contains two unused blocks final_match_link and match_link that contain a (unreachable) call to authorities/merge.pl with parameters: mergereference=breeding&authid=[% record_lis.match_id %]&authid=[% record_lis.import_record_id %] It seems that this would show the records correctly, but would not merge them correctly since that code expects two authority records. Leaving the signoff of Mehdi since he essentially tested the merge call. Test plan: [1] Restart Plack and restart koha-indexer. (I had some problems related to indexing as a result of the marcxml transition.) [2] Go to Authorities. Select two authorities to merge, start with two of the same type. Make sure that both are used in a few biblio records. Select at least one subfield from the authority to be removed for inclusion in the authority to be kept ("reference record"). [3] Click Merge. You come back to the kept authority record. Note: The number of attached records may not yet be updated. This depends on the speed of koha-indexer. If you wait a bit and refresh, you should have the correct number. First check the authority record again for the inserted subfield. Now check a biblio that was ALREADY attached to the reference record. And check a biblio that was FORMERLY attached to the deleted one. Note: See bug 17913 to see how pref AuthorityMergeMode impacts this. [4] Try steps 2 and 3 again for a merge of two authority records that do not have the same authority type noting the remarks below. For instance try to merge from a CORPO_NAME to a PERSO_NAME record. Make a change in say 040$a of the record to be deleted. And select that field later on the merge form. Normally, you would use the PERSO_NAME framework in the merge now. When checking the authority record, look at 040a. When checking the record that was linked to the CORPO_NAME, check if it contains the PERSO_NAME authority in the correct field (say 100, 600, 700). Signed-off-by: mehdi <mehdi@inlibro.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Tested merging PERSO_NAME to PERSO_NAME and PERSO_NAME to CORPO_NAME. Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> |
||
---|---|---|
acqui | ||
admin | ||
api/v1 | ||
authorities | ||
basket | ||
C4 | ||
catalogue | ||
cataloguing | ||
circ | ||
course_reserves | ||
debian | ||
docs | ||
errors | ||
etc | ||
install_misc | ||
installer | ||
Koha | ||
koha-tmpl | ||
labels | ||
members | ||
misc | ||
offline_circ | ||
opac | ||
OpenILS | ||
patron_lists | ||
patroncards | ||
plugins | ||
reports | ||
reserve | ||
reviews | ||
rotating_collections | ||
serials | ||
services | ||
skel | ||
sms | ||
suggestion | ||
svc | ||
t | ||
tags | ||
test | ||
tmp/modified_authorities | ||
tools | ||
virtualshelves | ||
xt | ||
.editorconfig | ||
.htaccess | ||
.mailmap | ||
about.pl | ||
changelanguage.pl | ||
edithelp.pl | ||
fix-perl-path.PL | ||
help.pl | ||
INSTALL | ||
install-CPAN.pl | ||
Koha.pm | ||
koha_perl_deps.pl | ||
kohaversion.pl | ||
LICENSE | ||
mainpage.pl | ||
Makefile.PL | ||
MANIFEST.SKIP | ||
README | ||
README.md | ||
README.robots | ||
rewrite-config.PL |
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-comminity.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