Bug 34185 - Code mixes OpacItemLocation and OPACItemLocation
Summary: Code mixes OpacItemLocation and OPACItemLocation
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Laura Escamilla
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-01 16:31 UTC by Katrin Fischer
Modified: 2024-11-15 20:38 UTC (History)
3 users (show)

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


Attachments
Bug 34185: Capitalized OPAC in OpacItemLocation syspref (12.53 KB, patch)
2024-08-30 16:58 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 34185: Capitalized OPAC in OpacItemLocation syspref (12.58 KB, patch)
2024-08-30 18:27 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2023-07-01 16:31:13 UTC
We have some OpacItemLocation and some OPACItemLocation in the code. Usually not a great idea. Would be nice to clean that up.
Comment 1 Laura Escamilla 2024-08-30 16:58:52 UTC
Created attachment 170920 [details] [review]
Bug 34185: Capitalized OPAC in OpacItemLocation syspref

To test:
1. In K-T-D git grep for “OpacItemLocation”
    1. Notice that related XSLT / XSL scripts are not coming up. Only .pm, .pl and .sql scripts.
2. Git grep for “OPACItemLocation”. Note that XSLT/XSL files show up but not the .pm, .pl and .sql scripts.
3. Apply the patch. Updatedatabase. Restart_all
4. Git grep for “OPACItemLocation”
    1. Notice that both the XSLT/XSL files in addition to the .sql, .pm and .pl scripts are now showing up.
5. Sign off and have a spectacular day :D
Comment 2 Roman Dolny 2024-08-30 18:27:08 UTC
Created attachment 170925 [details] [review]
Bug 34185: Capitalized OPAC in OpacItemLocation syspref

To test:
1. In K-T-D git grep for “OpacItemLocation”
    1. Notice that related XSLT / XSL scripts are not coming up. Only .pm, .pl and .sql scripts.
2. Git grep for “OPACItemLocation”. Note that XSLT/XSL files show up but not the .pm, .pl and .sql scripts.
3. Apply the patch. Updatedatabase. Restart_all
4. Git grep for “OPACItemLocation”
    1. Notice that both the XSLT/XSL files in addition to the .sql, .pm and .pl scripts are now showing up.
5. Sign off and have a spectacular day :D

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 3 Katrin Fischer 2024-09-02 08:45:40 UTC
Hi Laura, 

I see that you have this step in your test plan:

3. Apply the patch. Updatedatabase. Restart_all

But your patch doesn't include a database update. 

I think it might be nice to update the existing installations with the correct spelling, what do you think?
Comment 4 Katrin Fischer 2024-09-02 10:22:04 UTC
I need to get better about removing tested patches from my branch... could you please provide the database update as a follow-up?
Comment 5 Katrin Fischer 2024-11-14 15:21:45 UTC
(In reply to Katrin Fischer from comment #4)
> I need to get better about removing tested patches from my branch... could
> you please provide the database update as a follow-up?

Dropping this. It can be resolved later, but I believe it does not actually cause issues.