Bug 33977

Summary: Items with 952 using a authorized value display the code not the description on detail.tt
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle.m.hall, m.de.rooy, nick
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lucas Gass (lukeg) 2023-06-09 18:39:05 UTC
To recreate:

1. Set a MARC framework to use an Authorized Value for a 952 field, like publicnote or non-public note.
2. Edit an item in that framework to use that AV.
3. Now look at the display on the item detail page ( detail.tt ), notice the code displays not the description.
4. Look at at the same item on additem.tt. Here it correctly displays the description.
Comment 1 Jonathan Druart 2023-07-13 07:01:00 UTC
Is it a regression?
Comment 2 Marcel de Rooy 2023-07-13 07:09:47 UTC
Can reproduce this too under 21.11
Comment 3 Katrin Fischer 2023-07-13 07:37:35 UTC
I don't think it ever worked. These fields are thought to be text, not AV codes. There is no code in the various templates to check for both options.
Comment 4 Jonathan Druart 2023-07-13 08:01:47 UTC
(In reply to Katrin Fischer from comment #3)
> I don't think it ever worked. These fields are thought to be text, not AV
> codes. There is no code in the various templates to check for both options.

Then if we want to fix that it could be done on top of bug 33568, if I correctly understood the problem... embedding the stringified version of the attributes it seems straightforward.