Bug 21469 - Account for 'MarcOrgCode' preference in 'Enhanced Analytics Workflow'
Summary: Account for 'MarcOrgCode' preference in 'Enhanced Analytics Workflow'
Status: Patch doesn't apply
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Martin Renvoize
QA Contact: Testopia
URL: https://wiki.koha-community.org/wiki/...
Keywords:
Depends on: 28830
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-02 09:22 UTC by Martin Renvoize
Modified: 2023-07-05 21:13 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 21469: Add 003 into 773$w when required (1.42 KB, patch)
2021-09-02 11:12 UTC, Martin Renvoize
Details | Diff | Splinter Review
Bug 21469: Add 003 into 773$w when required (1.86 KB, patch)
2021-09-02 11:20 UTC, Martin Renvoize
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize 2018-10-02 09:22:13 UTC
Whilst working through bug 11175 I was reminded of our inconsistent use of useControlNumber and it's lack of accounting for 003 fields.
Comment 1 Martin Renvoize 2021-08-06 06:44:27 UTC
With the introduction of the ability to search using 003 as part of the query for analytics, we should account for this in the cataloguing workflow.

We should check for the presence of 'MarcOrgCode' being defined (at library or system level) and if it is being used we should copy the value of the 003 of the parent record into the constructed 773.
Comment 2 Katrin Fischer 2021-08-07 14:01:33 UTC
This makes sense, but I think we need a depends on for the bug adding the 003 index?
Comment 3 Martin Renvoize 2021-09-02 11:12:00 UTC
Created attachment 124426 [details] [review]
Bug 21469: Add 003 into 773$w when required

This patch looks at the MarcOrgCode preference and if present it will
prepend the host 003 data in brackets to the 773$w link field in the
child record.
Comment 4 Martin Renvoize 2021-09-02 11:20:41 UTC
Created attachment 124427 [details] [review]
Bug 21469: Add 003 into 773$w when required

This patch looks at the MarcOrgCode preference and if present it will
prepend the host 003 data in brackets to the 773$w link field in the
child record.
Comment 5 Martin Renvoize 2021-09-02 11:23:16 UTC
I'd love your help with writing a test plan for this Katrin..

I think it should work as expected, but I'm not even actually sure if we need to bind it on the presence of MARCOrgCodes being defined.. we might actually be OK just always prepending 003 if/when it's present in the host record.