Koha/Koha/Authority
Marcel de Rooy 32fc3f9ed1 Bug 14769: (QA follow-up) Remove global var $cached_indicators
As requested by RM, this patch replaces using the global $cached_indicators
by saving state temporarily during the (limited) lifetime of the object.

Essentially this affects two places in code:
[1] blinddetail-biblio-search.pl (loading auth record in editor)
[2] AuthoritiesMarc::merge (merging authority into biblios)

Concurrent runs of [1] and/or [2] together with a simultaneous pref change
just in between could cause slight (hypothetical) side-effects.
The current approach of keeping state in the object makes that a series of
controlled_indicators calls during an immediate merge of one specific
authority is not affected by a simultaneous pref change. So the same rules
are applied to the set of attached biblio record for that authority.
Note also that the cron job ignores a simultaneous pref change, since
it reads from the unchanged L1 cache (yes, also hypothetical).

Test plan:
[1] Run t/Koha/Authority/ControlledIndicators.t
[2] Run t/db_dependent/Authority/Merge.t
[3] Run t/db_dependent/Koha/Authorities.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-12 10:50:36 -03:00
..
ControlledIndicators.pm Bug 14769: (QA follow-up) Remove global var $cached_indicators 2018-04-12 10:50:36 -03:00
MergeRequest.pm Bug 9988: [QA Follow-up] Satisfy QA issues 2017-04-13 08:53:47 -04:00
MergeRequests.pm Bug 9988: [QA Follow-up] Satisfy QA issues 2017-04-13 08:53:47 -04:00
Subfield.pm Bug 18811: Add Koha Objects for authority tags and subfields 2017-09-12 11:30:40 -03:00
Subfields.pm Bug 18811: [QA Follow-up] Resolved POD warnings 2017-09-12 11:30:40 -03:00
Tag.pm Bug 18811: Add Koha Objects for authority tags and subfields 2017-09-12 11:30:40 -03:00
Tags.pm Bug 18811: [QA Follow-up] Resolved POD warnings 2017-09-12 11:30:40 -03:00
Type.pm
Types.pm