[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #86 from Marcel de Rooy--- Mason: Looks good to me. Sent you a pm. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #85 from Marcel de Rooy--- (In reply to Mason James from comment #83) > (In reply to Marcel de Rooy from comment #82) > > ping mtj mason > > hi Marcel > > i get a compile error after applying the 16.5.x patch > > -- > $ perl -c C4/AuthoritiesMarc.pm > Global symbol "$authtypecodefrom" requires explicit package name at > C4/AuthoritiesMarc.pm line 1462. > Global symbol "$authtypecodeto" requires explicit package name at > C4/AuthoritiesMarc.pm line 1464. > Global symbol "$authtypecodefrom" requires explicit package name at > C4/AuthoritiesMarc.pm line 1464. > Global symbol "$authtypecodeto" requires explicit package name at > C4/AuthoritiesMarc.pm line 1465. > C4/AuthoritiesMarc.pm had compilation errors. > -- > > any ideas folks? Seems that you indeed miss the patch from Josef here. Will test it tomorrow on a 16.05 tweak install. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #84 from Katrin Fischer--- Hi Mason, mabe you will need something similar to the 16.11.x follow-up Joseph did for me? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #83 from Mason James--- (In reply to Marcel de Rooy from comment #82) > ping mtj mason hi Marcel i get a compile error after applying the 16.5.x patch -- $ perl -c C4/AuthoritiesMarc.pm Global symbol "$authtypecodefrom" requires explicit package name at C4/AuthoritiesMarc.pm line 1462. Global symbol "$authtypecodeto" requires explicit package name at C4/AuthoritiesMarc.pm line 1464. Global symbol "$authtypecodefrom" requires explicit package name at C4/AuthoritiesMarc.pm line 1464. Global symbol "$authtypecodeto" requires explicit package name at C4/AuthoritiesMarc.pm line 1465. C4/AuthoritiesMarc.pm had compilation errors. -- any ideas folks? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #82 from Marcel de Rooy--- ping mtj mason -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #81 from Julian Maurice--- Thanks for the squashed patch :-) Pushed to 3.22.x for 3.22.17 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #80 from Katrin Fischer--- I have pushed the last follow-up for sysprefs.sql to 16.11.x, will be in 16.11.04. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Mason Jameschanged: What|Removed |Added CC||m...@kohaaloha.com -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #79 from Marcel de Rooy--- (In reply to Marcel de Rooy from comment #77) > Created attachment 60342 [details] [review] > Bug 17913: [16.11.x] Add syspref to sysprefs.sql > > See comment 69. And comment 71. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #78 from Marcel de Rooy--- (In reply to Katrin Fischer from comment #75) > Thx a lot Josef for retesting this on 16.11 specifically. > I have pushed Marcel's patch and Josef's follow-up up to 16.11.x for > 16.11.04 now. > > Marcel, could you take a look maybe too? Tested it on a clean 16.11. Had no problems with the merge. Small struggle with Zebra, not related to this patch.. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #60341|0 |1 is obsolete|| --- Comment #77 from Marcel de Rooy --- Created attachment 60342 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60342=edit Bug 17913: [16.11.x] Add syspref to sysprefs.sql See comment 69. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #76 from Marcel de Rooy--- Created attachment 60341 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60341=edit Bug 17913: Add syspref to sysprefs.sql See comment 69. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Katrin Fischerchanged: What|Removed |Added Status|Pushed to Master|Pushed to Stable --- Comment #75 from Katrin Fischer --- Thx a lot Josef for retesting this on 16.11 specifically. I have pushed Marcel's patch and Josef's follow-up up to 16.11.x for 16.11.04 now. Marcel, could you take a look maybe too? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #74 from Josef Moravec--- Created attachment 60043 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60043=edit [SIGNED-OFF] Bug 17913: [16.11.x] followup Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Josef Moravecchanged: What|Removed |Added Attachment #59411|0 |1 is obsolete|| --- Comment #73 from Josef Moravec --- Created attachment 60042 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60042=edit [SIGNED-OFF] Bug 17913: [16.11.x] Authority merge fix [PUSHED_17.05] Squashed into one patch for 16.11.x Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added CC||j...@bywatersolutions.com --- Comment #72 from Marcel de Rooy --- *** Bug 14026 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #71 from Marcel de Rooy--- Katrin: Better add the syspref.sql addition too in the dbrev, although it technically speaking is not a must.. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #70 from Marcel de Rooy--- And obviously, please push 17909 to 3.22/16.05 before trying the above. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #69 from Marcel de Rooy--- NOTE FOR RELEASE MAINTAINERS: I backported the master version to my own 3.22.x branch. Have tested it on 3.22.x. Will start using it in production soon. Have rebased it afterwards on 16.05 and 16.11 WITHOUT testing it. It still needs a DBREV that adds the pref. You can copy that from the first master patch here. Please verify the patch by 1) using the Merge.t and 2) following the test plan on the "Run perltidy" master patch. Note: The patches for housekeeping and perltidy have not been applied to the AuthoritiesMarc.pm code. Hope this is helpful. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #68 from Marcel de Rooy--- Created attachment 59413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59413=edit Bug 17913: [3.22.x] Authority merge fix [PUSHED_17.05] Squashed into one patch for 3.22.x. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #67 from Marcel de Rooy--- Created attachment 59412 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59412=edit Bug 17913: [16.05.x] Authority merge fix [PUSHED_17.05] Squashed into one patch for 16.05.x -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #66 from Marcel de Rooy--- Created attachment 59411 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59411=edit Bug 17913: [16.11.x] Authority merge fix [PUSHED_17.05] Squashed into one patch for 16.11.x -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #65 from Marcel de Rooy--- *** Bug 11700 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added CC||fcapovi...@live.ca --- Comment #64 from Marcel de Rooy --- *** Bug 11315 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added CC||janus...@gmail.com --- Comment #63 from Marcel de Rooy --- *** Bug 5572 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #62 from Marcel de Rooy--- Makes sense not to push it one day before release. But apart from the new syspref, it might well be a patch set to consider for backporting. Solves several authority merge errors. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Katrin Fischerchanged: What|Removed |Added CC||katrin.fisc...@bsz-bw.de --- Comment #61 from Katrin Fischer --- This adds a new system preference, but is marked as a bug (not enh). I think too dangerous now to push right before release as I lack time for properly testing this myself. Please find me and let's talk about what this patch set does fix, if you want it included in 16.11.x -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Kyle M Hallchanged: What|Removed |Added Status|Passed QA |Pushed to Master CC||k...@bywatersolutions.com --- Comment #60 from Kyle M Hall --- Pushed to master for 17.05, thanks Frederic, Maxime, Marcel! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #59 from Marcel de Rooy--- (In reply to Julian Maurice from comment #58) > Everything looks good. Tested strict and loose mode. > Passed QA Thanks, Julian ! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Status|Signed Off |Passed QA CC||julian.maur...@biblibre.com --- Comment #58 from Julian Maurice --- Everything looks good. Tested strict and loose mode. Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59331|0 |1 is obsolete|| --- Comment #53 from Julian Maurice --- Created attachment 59366 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59366=edit Bug 17913: Remove possible duplicates in strict merge mode Since strict mode does not allow additional subfields that would make identical fields linked to the same authority different, there is no need to keep them while merging. We achieve this goal by simply: [1] Count the number of same fields linked to mergefrom in strict mode to eliminate duplicates. [2] Replaces the if-statement on auth_number by a next. (Tidy follows.) Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59352|0 |1 is obsolete|| --- Comment #56 from Julian Maurice --- Created attachment 59369 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59369=edit Bug 17913: [Follow-up] Another small fix for UNIMARC Adding another delete for field 100. Will mock GetMarcBiblio on a new report. Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59358|0 |1 is obsolete|| --- Comment #57 from Julian Maurice --- Created attachment 59370 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59370=edit Bug 17913: [Follow-up] Fix duplicate $9s after merging in loose mode We need to add $9 to the skip_subfields hash too. Formerly, it was added to $exclude as well. Thanks, Julian, for catching this one. Signed-off-by: Marcel de Rooy Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59333|0 |1 is obsolete|| --- Comment #55 from Julian Maurice --- Created attachment 59368 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59368=edit Bug 17913: Run perltidy on the inner foreach loop Kept the same number of lines. You could verify with diff -w. Test plan: [1] Run t/db_dependent/Authorities/Merge.t [2] As the last patch in this series, also test the interface: Set AuthorityMergeMode to loose. Set dontmerge to Do. Modify an authority record attached to multiple biblios. Edit a subfield, clear a subfield and add a subfield. Save. Wait a bit for the merge and Zebra update. Verify that the changes are merged properly into biblio records. [3] Repeat step 2 with AuthorityMergeMode to strict. Remember that this affects the extra subfields in biblio records. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59329|0 |1 is obsolete|| --- Comment #51 from Julian Maurice --- Created attachment 59364 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59364=edit Bug 17913: Fix the new field tag in merge when changing type Originally aimed for 9988, adjusted for this report. Old behavior was: pick the first tag. This is definitely wrong. If you (would) merge 610 to 611, you don't want to get a 111. This patch resolves the problem by determining the new tag in a small helper routine _merge_newtag, and corrects the position of the new field in the MARC record with append_fields_ordered. Too bad that MARC::Record does not have such a function; it looks like insert_fields_ordered, but it is different in case of multiple fields with the same tag. Note: These two small helper functions are not tested separately, since they should not be called outside of merge. They are implicitly tested by the adjusted tests in Merge.t. Note: In adding tests for this fix, I chose to simplify compare_field_count (no need for the pass parameter), and replace the pass parameter of sub compare_field_order by an exclude parameter, a hash of fields to exclude in counting fields. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59332|0 |1 is obsolete|| --- Comment #54 from Julian Maurice --- Created attachment 59367 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59367=edit Bug 17913: We always need some housekeeping Remove some commented warnings Remove the commented old code at the end of sub merge Explicitly set merge mode in the first subtest Move the return to loose mode from the second subtest to the third Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59327|0 |1 is obsolete|| --- Comment #49 from Julian Maurice --- Created attachment 59362 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59362=edit Bug 17913: Use AuthorityMergeMode pref in sub merge Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: If you set mode to loose, the test will still pass. If you set mode to strict, one test will fail. (Fixed later.) Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59328|0 |1 is obsolete|| --- Comment #50 from Julian Maurice --- Created attachment 59363 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59363=edit Bug 17913: Adjust merge test for AuthorityMergeMode Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: Run t/db_dependent/Authorities/Merge.t in both loose and strict mode. Should no longer make a difference. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59330|0 |1 is obsolete|| --- Comment #52 from Julian Maurice --- Created attachment 59365 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59365=edit Bug 17913: Do not keep a cleared subfield in loose merge mode If you modify an authority and clear a specific subfield, you expect that merge respects your edit and clears this subfield too in the biblio records. It does in the new strict mode, but it does not yet in the default loose mode. This patch fixes that by adjusting the code around $exclude so that it uses a new hash skip_subfields, built from the reporting tags from the old and the new authority record. This is supported again by some changes in the unit test. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59325|0 |1 is obsolete|| --- Comment #47 from Julian Maurice --- Created attachment 59360 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59360=edit Bug 17913: Add AuthorityMergeMode preference Original patch from bug 5572, dating back to 2011! Amended by Marcel de Rooy January 2017. Renamed the pref. The fix on this report is based on this preference. Depending on the pref, subfields will be deleted or kept. Test plan: Run the dbrev. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Julian Mauricechanged: What|Removed |Added Attachment #59326|0 |1 is obsolete|| --- Comment #48 from Julian Maurice --- Created attachment 59361 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59361=edit Bug 17913: Use replace_with instead of insert_grouped_field Original fix from a patch on bug 5572. Amended by Marcel de Rooy January 2017. Note: This does not yet resolve the field order when merging to another auth type, but is a good start. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #46 from Marcel de Rooy--- Created attachment 59358 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59358=edit Bug 17913: [Follow-up] Fix duplicate $9s after merging in loose mode We need to add $9 to the skip_subfields hash too. Formerly, it was added to $exclude as well. Thanks, Julian, for catching this one. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #45 from Marcel de Rooy--- Created attachment 59352 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59352=edit Bug 17913: [Follow-up] Another small fix for UNIMARC Adding another delete for field 100. Will mock GetMarcBiblio on a new report. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59103|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59102|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59109|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59108|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59107|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59110|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59105|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59106|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added CC||m.de.r...@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59104|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #41 from Marcel de Rooy--- Created attachment 59331 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59331=edit Bug 17913: Remove possible duplicates in strict merge mode Since strict mode does not allow additional subfields that would make identical fields linked to the same authority different, there is no need to keep them while merging. We achieve this goal by simply: [1] Count the number of same fields linked to mergefrom in strict mode to eliminate duplicates. [2] Replaces the if-statement on auth_number by a next. (Tidy follows.) Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #39 from Marcel de Rooy--- Created attachment 59329 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59329=edit Bug 17913: Fix the new field tag in merge when changing type Originally aimed for 9988, adjusted for this report. Old behavior was: pick the first tag. This is definitely wrong. If you (would) merge 610 to 611, you don't want to get a 111. This patch resolves the problem by determining the new tag in a small helper routine _merge_newtag, and corrects the position of the new field in the MARC record with append_fields_ordered. Too bad that MARC::Record does not have such a function; it looks like insert_fields_ordered, but it is different in case of multiple fields with the same tag. Note: These two small helper functions are not tested separately, since they should not be called outside of merge. They are implicitly tested by the adjusted tests in Merge.t. Note: In adding tests for this fix, I chose to simplify compare_field_count (no need for the pass parameter), and replace the pass parameter of sub compare_field_order by an exclude parameter, a hash of fields to exclude in counting fields. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #42 from Marcel de Rooy--- Created attachment 59332 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59332=edit Bug 17913: We always need some housekeeping Remove some commented warnings Remove the commented old code at the end of sub merge Explicitly set merge mode in the first subtest Move the return to loose mode from the second subtest to the third Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #40 from Marcel de Rooy--- Created attachment 59330 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59330=edit Bug 17913: Do not keep a cleared subfield in loose merge mode If you modify an authority and clear a specific subfield, you expect that merge respects your edit and clears this subfield too in the biblio records. It does in the new strict mode, but it does not yet in the default loose mode. This patch fixes that by adjusting the code around $exclude so that it uses a new hash skip_subfields, built from the reporting tags from the old and the new authority record. This is supported again by some changes in the unit test. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #44 from Marcel de Rooy--- Rebased on top of the UNIMARC fix on 17909 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #43 from Marcel de Rooy--- Created attachment 59333 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59333=edit Bug 17913: Run perltidy on the inner foreach loop Kept the same number of lines. You could verify with diff -w. Test plan: [1] Run t/db_dependent/Authorities/Merge.t [2] As the last patch in this series, also test the interface: Set AuthorityMergeMode to loose. Set dontmerge to Do. Modify an authority record attached to multiple biblios. Edit a subfield, clear a subfield and add a subfield. Save. Wait a bit for the merge and Zebra update. Verify that the changes are merged properly into biblio records. [3] Repeat step 2 with AuthorityMergeMode to strict. Remember that this affects the extra subfields in biblio records. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #38 from Marcel de Rooy--- Created attachment 59328 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59328=edit Bug 17913: Adjust merge test for AuthorityMergeMode Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: Run t/db_dependent/Authorities/Merge.t in both loose and strict mode. Should no longer make a difference. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #35 from Marcel de Rooy--- Created attachment 59325 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59325=edit Bug 17913: Add AuthorityMergeMode preference Original patch from bug 5572, dating back to 2011! Amended by Marcel de Rooy January 2017. Renamed the pref. The fix on this report is based on this preference. Depending on the pref, subfields will be deleted or kept. Test plan: Run the dbrev. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #37 from Marcel de Rooy--- Created attachment 59327 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59327=edit Bug 17913: Use AuthorityMergeMode pref in sub merge Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: If you set mode to loose, the test will still pass. If you set mode to strict, one test will fail. (Fixed later.) Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #36 from Marcel de Rooy--- Created attachment 59326 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59326=edit Bug 17913: Use replace_with instead of insert_grouped_field Original fix from a patch on bug 5572. Amended by Marcel de Rooy January 2017. Note: This does not yet resolve the field order when merging to another auth type, but is a good start. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #34 from Marcel de Rooy--- (In reply to Josef Moravec from comment #33) > Signed-off-by: Josef Moravec Great! Thanks -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #29 from Josef Moravec--- Created attachment 59106 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59106=edit [SIGNED-OFF] Bug 17913: Fix the new field tag in merge when changing type Originally aimed for 9988, adjusted for this report. Old behavior was: pick the first tag. This is definitely wrong. If you (would) merge 610 to 611, you don't want to get a 111. This patch resolves the problem by determining the new tag in a small helper routine _merge_newtag, and corrects the position of the new field in the MARC record with append_fields_ordered. Too bad that MARC::Record does not have such a function; it looks like insert_fields_ordered, but it is different in case of multiple fields with the same tag. Note: These two small helper functions are not tested separately, since they should not be called outside of merge. They are implicitly tested by the adjusted tests in Merge.t. Note: In adding tests for this fix, I chose to simplify compare_field_count (no need for the pass parameter), and replace the pass parameter of sub compare_field_order by an exclude parameter, a hash of fields to exclude in counting fields. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #32 from Josef Moravec--- Created attachment 59109 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59109=edit [SIGNED-OFF] Bug 17913: We always need some housekeeping Remove some commented warnings Remove the commented old code at the end of sub merge Explicitly set merge mode in the first subtest Move the return to loose mode from the second subtest to the third Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #33 from Josef Moravec--- Created attachment 59110 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59110=edit [SIGNED-OFF] Bug 17913: Run perltidy on the inner foreach loop Kept the same number of lines. You could verify with diff -w. Test plan: [1] Run t/db_dependent/Authorities/Merge.t [2] As the last patch in this series, also test the interface: Set AuthorityMergeMode to loose. Set dontmerge to Do. Modify an authority record attached to multiple biblios. Edit a subfield, clear a subfield and add a subfield. Save. Wait a bit for the merge and Zebra update. Verify that the changes are merged properly into biblio records. [3] Repeat step 2 with AuthorityMergeMode to strict. Remember that this affects the extra subfields in biblio records. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #31 from Josef Moravec--- Created attachment 59108 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59108=edit [SIGNED-OFF] Bug 17913: Remove possible duplicates in strict merge mode Since strict mode does not allow additional subfields that would make identical fields linked to the same authority different, there is no need to keep them while merging. We achieve this goal by simply: [1] Count the number of same fields linked to mergefrom in strict mode to eliminate duplicates. [2] Replaces the if-statement on auth_number by a next. (Tidy follows.) Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #30 from Josef Moravec--- Created attachment 59107 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59107=edit [SIGNED-OFF] Bug 17913: Do not keep a cleared subfield in loose merge mode If you modify an authority and clear a specific subfield, you expect that merge respects your edit and clears this subfield too in the biblio records. It does in the new strict mode, but it does not yet in the default loose mode. This patch fixes that by adjusting the code around $exclude so that it uses a new hash skip_subfields, built from the reporting tags from the old and the new authority record. This is supported again by some changes in the unit test. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #28 from Josef Moravec--- Created attachment 59105 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59105=edit [SIGNED-OFF] Bug 17913: Adjust merge test for AuthorityMergeMode Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: Run t/db_dependent/Authorities/Merge.t in both loose and strict mode. Should no longer make a difference. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Josef Moravecchanged: What|Removed |Added Attachment #59078|0 |1 is obsolete|| --- Comment #25 from Josef Moravec --- Created attachment 59102 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59102=edit [SIGNED-OFF] Bug 17913: Add AuthorityMergeMode preference Original patch from bug 5572, dating back to 2011! Amended by Marcel de Rooy January 2017. Renamed the pref. The fix on this report is based on this preference. Depending on the pref, subfields will be deleted or kept. Test plan: Run the dbrev. Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #27 from Josef Moravec--- Created attachment 59104 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59104=edit [SIGNED-OFF] Bug 17913: Use AuthorityMergeMode pref in sub merge Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: If you set mode to loose, the test will still pass. If you set mode to strict, one test will fail. (Fixed later.) Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Josef Moravecchanged: What|Removed |Added Attachment #59079|0 |1 is obsolete|| Attachment #59080|0 |1 is obsolete|| Attachment #59081|0 |1 is obsolete|| Attachment #59082|0 |1 is obsolete|| Attachment #59083|0 |1 is obsolete|| Attachment #59084|0 |1 is obsolete|| Attachment #59089|0 |1 is obsolete|| Attachment #59090|0 |1 is obsolete|| --- Comment #26 from Josef Moravec --- Created attachment 59103 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59103=edit [SIGNED-OFF] Bug 17913: Use replace_with instead of insert_grouped_field Original fix from a patch on bug 5572. Amended by Marcel de Rooy January 2017. Note: This does not yet resolve the field order when merging to another auth type, but is a good start. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy Signed-off-by: Josef Moravec -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Josef Moravecchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #24 from Marcel de Rooy--- OK It seems that I forgot the housekeeping patch (patch 8) Please have another try -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59085|0 |1 is obsolete|| --- Comment #23 from Marcel de Rooy --- Created attachment 59090 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59090=edit Bug 17913: Run perltidy on the inner foreach loop Kept the same number of lines. You could verify with diff -w. Test plan: [1] Run t/db_dependent/Authorities/Merge.t [2] As the last patch in this series, also test the interface: Set AuthorityMergeMode to loose. Set dontmerge to Do. Modify an authority record attached to multiple biblios. Edit a subfield, clear a subfield and add a subfield. Save. Wait a bit for the merge and Zebra update. Verify that the changes are merged properly into biblio records. [3] Repeat step 2 with AuthorityMergeMode to strict. Remember that this affects the extra subfields in biblio records. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #22 from Marcel de Rooy--- Created attachment 59089 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59089=edit Bug 17913: We always need some housekeeping Remove some commented warnings Remove the commented old code at the end of sub merge Explicitly set merge mode in the first subtest Move the return to loose mode from the second subtest to the third Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #21 from Marcel de Rooy--- (In reply to Josef Moravec from comment #19) > I am sorry, I got "fatal: sha1 information is lacking or useless > (C4/AuthoritiesMarc.pm)." on the last patch (perltidy on the inner loop)... > > Applying on top of 17909 Yes, I somehow messing something up between patch 8 and patch 9. Please wait.. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #20 from Marcel de Rooy--- (In reply to Josef Moravec from comment #19) > I am sorry, I got "fatal: sha1 information is lacking or useless > (C4/AuthoritiesMarc.pm)." on the last patch (perltidy on the inner loop)... > > Applying on top of 17909 Taking a look -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Josef Moravecchanged: What|Removed |Added Status|Needs Signoff |Patch doesn't apply CC||josef.mora...@gmail.com --- Comment #19 from Josef Moravec --- I am sorry, I got "fatal: sha1 information is lacking or useless (C4/AuthoritiesMarc.pm)." on the last patch (perltidy on the inner loop)... Applying on top of 17909 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Depends on||17909 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17909 [Bug 17909] Add unit tests for authority merge -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #18 from Marcel de Rooy--- When testing, run the db revision (from the first patch) and look at the test plan of the last patch. Only if you are interested in following each individual fix (like in QA), you can run the merge test while applying patches individually. Thanks ! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #17 from Marcel de Rooy--- Created attachment 59085 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59085=edit Bug 17913: Run perltidy on the inner foreach loop Kept the same number of lines. You could verify with diff -w. Test plan: [1] Run t/db_dependent/Authorities/Merge.t [2] As the last patch in this series, also test the interface: Set AuthorityMergeMode to loose. Set dontmerge to Do. Modify an authority record attached to multiple biblios. Edit a subfield, clear a subfield and add a subfield. Save. Wait a bit for the merge and Zebra update. Verify that the changes are merged properly into biblio records. [3] Repeat step 2 with AuthorityMergeMode to strict. Remember that this affects the extra subfields in biblio records. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #16 from Marcel de Rooy--- Created attachment 59084 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59084=edit Bug 17913: Remove possible duplicates in strict merge mode Since strict mode does not allow additional subfields that would make identical fields linked to the same authority different, there is no need to keep them while merging. We achieve this goal by simply: [1] Count the number of same fields linked to mergefrom in strict mode to eliminate duplicates. [2] Replaces the if-statement on auth_number by a next. (Tidy follows.) Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #15 from Marcel de Rooy--- Rebased on top of three small typos :) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59073|0 |1 is obsolete|| --- Comment #14 from Marcel de Rooy --- Created attachment 59083 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59083=edit Bug 17913: Do not keep a cleared subfield in loose merge mode If you modify an authority and clear a specific subfield, you expect that merge respects your edit and clears this subfield too in the biblio records. It does in the new strict mode, but it does not yet in the default loose mode. This patch fixes that by adjusting the code around $exclude so that it uses a new hash skip_subfields, built from the reporting tags from the old and the new authority record. This is supported again by some changes in the unit test. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59066|0 |1 is obsolete|| --- Comment #13 from Marcel de Rooy --- Created attachment 59082 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59082=edit Bug 17913: Fix the new field tag in merge when changing type Originally aimed for 9988, adjusted for this report. Old behavior was: pick the first tag. This is definitely wrong. If you (would) merge 610 to 611, you don't want to get a 111. This patch resolves the problem by determining the new tag in a small helper routine _merge_newtag, and corrects the position of the new field in the MARC record with append_fields_ordered. Too bad that MARC::Record does not have such a function; it looks like insert_fields_ordered, but it is different in case of multiple fields with the same tag. Note: These two small helper functions are not tested separately, since they should not be called outside of merge. They are implicitly tested by the adjusted tests in Merge.t. Note: In adding tests for this fix, I chose to simplify compare_field_count (no need for the pass parameter), and replace the pass parameter of sub compare_field_order by an exclude parameter, a hash of fields to exclude in counting fields. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59009|0 |1 is obsolete|| --- Comment #9 from Marcel de Rooy --- Created attachment 59078 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59078=edit Bug 17913: Add AuthorityMergeMode preference Original patch from bug 5572, dating back to 2011! Amended by Marcel de Rooy January 2017. Renamed the pref. The fix on this report is based on this preference. Depending on the pref, subfields will be deleted or kept. Test plan: Run the dbrev. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59010|0 |1 is obsolete|| --- Comment #10 from Marcel de Rooy --- Created attachment 59079 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59079=edit Bug 17913: Use replace_with instead of insert_grouped_field Original fix from a patch on bug 5572. Amended by Marcel de Rooy January 2017. Note: This does not yet resolve the field order when merging to another auth type, but is a good start. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59017|0 |1 is obsolete|| --- Comment #12 from Marcel de Rooy --- Created attachment 59081 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59081=edit Bug 17913: Adjust merge test for AuthorityMergeMode Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: Run t/db_dependent/Authorities/Merge.t in both loose and strict mode. Should no longer make a difference. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59016|0 |1 is obsolete|| --- Comment #11 from Marcel de Rooy --- Created attachment 59080 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59080=edit Bug 17913: Use AuthorityMergeMode pref in sub merge Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: If you set mode to loose, the test will still pass. If you set mode to strict, one test will fail. (Fixed later.) Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #8 from Marcel de Rooy--- Created attachment 59073 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59073=edit Bug 17913: Do not keep a cleared subfield in loose merge mode If you modify an authority and clear a specific subfield, you expect that merge respects your edit and clears this subfield too in the biblio records. It does in the new strict mode, but it does not yet in the default loose mode. This patch fixes that by adjusting the code around $exclude so that it uses a new hash skip_subfields, built from the reporting tags from the old and the new authority record. This is supported again by some changes in the unit test. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 Marcel de Rooychanged: What|Removed |Added Attachment #59065|0 |1 is obsolete|| --- Comment #7 from Marcel de Rooy --- Created attachment 59066 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59066=edit Bug 17913: Fix the new field tag in merge when changing type Originally aimed for 9988, adjusted for this report. Old behavior was: pick the first tag. This is definitely wrong. If you (would) merge 610 to 611, you don't want to get a 111. This patch resolves the problem by determining the new tag in a small helper routine _merge_newtag, and corrects the position of the new field in the MARC record with append_fields_ordered. Too bad that MARC::Record does not have such a function; it looks like insert_fields_ordered, but it is different in case of multiple fields with the same tag. Note: These two small helper functions are not tested separately, since they should not be called outside of merge. They are implicitly tested by the adjusted tests in Merge.t. Note: In adding tests for this fix, I chose to simplify compare_field_count (no need for the pass parameter), and replace the pass parameter of sub compare_field_order by an exclude parameter, a hash of fields to exclude in counting fields. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #6 from Marcel de Rooy--- Created attachment 59065 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59065=edit Bug 17913: Fix the new field tag in merge when changing type Originally aimed for 9988, adjusted for this report. Old behavior was: pick the first tag. This is definitely wrong. If you (would) merge 610 to 611, you don't want to get a 111. This patch resolves the problem by determining the new tag in a small helper routine _merge_newtag, and corrects the position of the new field in the MARC record with append_fields_ordered. Too bad that MARC::Record does not have such a function; it looks like insert_fields_ordered, but it is different in case of multiple fields with the same tag. Note: These two small helper functions are not tested separately, since they should not be called outside of merge. They are implicitly tested by the adjusted tests in Merge.t. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #5 from Marcel de Rooy--- Work in progress: few follow-ups coming later this week. Please wait. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #4 from Marcel de Rooy--- Created attachment 59017 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59017=edit Bug 17913: Adjust merge test for AuthorityMergeMode Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #3 from Marcel de Rooy--- Created attachment 59016 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59016=edit Bug 17913: Use AuthorityMergeMode pref in sub merge Original fix from a patch on bug 11315. Amended by Marcel de Rooy January 2017. Test plan: If you set mode to loose, the test will still pass. If you set mode to strict, one test will fail. (Fixed later.) Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17913] Merge three authority merge fixes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17913 --- Comment #2 from Marcel de Rooy--- Created attachment 59010 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59010=edit Bug 17913: Use replace_with instead of insert_grouped_field Original fix from a patch on bug 5572. Amended by Marcel de Rooy January 2017. Note: This does not yet resolve the field order when merging to another auth type, but is a good start. Test plan: Run t/db_dependent/Authorities/Merge.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/