Bug 15214

Summary: Add logging of authority updates to bulkmarcimport
Product: Koha Reporter: Matthias Meusburger <matthias.meusburger>
Component: Command-line UtilitiesAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: 1joynelson, fridolin.somers, martin.renvoize, robin
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.05.00
Attachments: Bug 15214: bulkmarcimport should log if an authority has been updated
Bug 15214: bulkmarcimport should log if an authority has been updated
Bug 15214: bulkmarcimport should log if an authority has been updated

Description Matthias Meusburger 2015-11-19 08:51:25 UTC
When importing with bulkmarcimport, authorities may or may not be updated based on which authority is newer (005 are compared).

It could be useful to keep track of which authority has been updated or not in the result yaml file.

This patch does that.

Test plan:
1) Import an authority file with -yaml. The resulting yaml file looks like this:
---
027226794:
  authid: 41759
  subfields:
    - France
02722709X:
  authid: 44782
  subfields:
    - Femmes
    - Travail
[...]

2) Apply the patch.

3) Import an authority file with -yaml. The resulting yaml file should look like this:
---
027226794:
  authid: 41759
  subfields:
    - France
  updated: 1
02722709X:
  authid: 44782
  subfields:
    - Femmes
    - Travail
  updated: 0
[...]
Comment 1 Matthias Meusburger 2015-11-19 08:58:13 UTC
Created attachment 44979 [details] [review]
Bug 15214: bulkmarcimport should log if an authority has been updated
Comment 2 Jon Knight 2020-03-11 17:34:13 UTC
Created attachment 100591 [details] [review]
Bug 15214: bulkmarcimport should log if an authority has been updated

When importing with bulkmarcimport, authorities may or may not be updated based on which authority is newer (005 are compared).
This patch allows to keep track in the result yaml file if an authority has been updated or not:

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>
Comment 3 Kyle M Hall 2020-03-20 16:39:44 UTC
Created attachment 101301 [details] [review]
Bug 15214: bulkmarcimport should log if an authority has been updated

When importing with bulkmarcimport, authorities may or may not be updated based on which authority is newer (005 are compared).
This patch allows to keep track in the result yaml file if an authority has been updated or not:

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Martin Renvoize 2020-03-24 11:05:00 UTC
Nice work everyone!

Pushed to master for 20.05
Comment 5 Joy Nelson 2020-04-03 21:38:46 UTC
enhancement not backported to 19.11.x