Bug 40014

Summary: Preservation module does not support authorized value ETAT
Product: Koha Reporter: Marion Durand <marion.durand>
Component: PreservationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Marion Durand 2025-05-28 09:55:33 UTC
Many UNIMARC installation uses the authorized value "ETAT" (present in default Koha but not used by default) instead of "NOT_LOAN". This is not taken into account in the preservation module.

This can lead to invalid value when field 995$o (status or not for loan) is filled by Koha with a value in the authorized value "NOT_LOAN" that is not present in the authorized value "ETAT" that is mapped to the 995$o.

To reproduce :

O- On a UNIMARC Koha
1- Add some values in the authorized value ETAT
2- Make sure the authorized value NOT_LOAN contains at least a value that is not in ETAT.
3- Update the Default bibliographic framework field 995, subfield o to use the authorized value ETAT.
4- Activate the preservation Module with the system preference PreservationModule.
5- Select a value that is in NOT_LOAN but not in ETAT in system preferences PreservationNotForLoanDefaultTrainIn and PreservationNotForLoanWaitingListIn.
6- Go in the preservation module
7- Pick an item with an emtpy 995$o and add this item to the waiting list
8- Modify the item, check that the 995$o now contains an invalid value in field 995$o, the value in the field is followed by "(Not an authorised value")