Bug 39522

Summary: Add hooks to allow 'Valuebuilder' plugins to be installable
Product: Koha Reporter: Jacob O'Mara <jacob.omara>
Component: Plugin architectureAssignee: Jacob O'Mara <jacob.omara>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: lisette
Version: unspecified   
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:
Attachments: Bug 39522: Allow Valuebuilders to be installable as plugins
Bug 39522: Add filtering to the plugin home page for valuebuilders
Mark Hofstetter will be following up with unit tests as we worked on this together.
Bug 39522: Add filtering to the plugin home page for valuebuilders
Mark Hofstetter will be following up with unit tests as we worked on this together.
Bug 39522: Add filtering to the plugin home page for valuebuilders

Description Jacob O'Mara 2025-04-02 09:35:54 UTC
We should allow the cataloguing or 'valuebuilder' plugins to be installable with the standard plugin architecture.
Comment 1 Jacob O'Mara 2025-04-02 10:12:24 UTC
Created attachment 180283 [details] [review]
Bug 39522: Allow Valuebuilders to be installable as plugins

Unit tests to follow

Test plan:

1. Install the example plugin from https://github.com/Jacobomara901/koha-plugin-value-builder and enable it
2. See that the framework plugin ‘custom_date’ as available to add to a subfield while the installed plugin is enabled and disappears when it is not.
3. Assign custom_date to your preferred Marc subfield (I use 650 subfield 2 ) and navigate to that field on a record of your choice
4. Ensure you are on the correct bib framework. See that the value builder appears while the plugin is enabled and disappears from that field while disabled.
5. Check uninstalling the plugin works correctly
Comment 2 Jacob O'Mara 2025-04-02 10:12:27 UTC
Created attachment 180284 [details] [review]
Bug 39522: Add filtering to the plugin home page for valuebuilders
Comment 3 Jacob O'Mara 2025-04-02 11:46:41 UTC
Created attachment 180301 [details] [review]
Mark Hofstetter will be following up with unit tests as we worked on this together.

Test plan:

1. Install the example plugin from https://github.com/Jacobomara901/koha-plugin-value-builder and enable it
2. See that the framework plugin ‘custom_date’ is available to add to a subfield while the installed plugin is enabled and disappears when it is not.
3. Assign custom_date to your preferred Marc subfield (I use 650 subfield 2 ) and navigate to that field on a record of your choice
4. Ensure you are on the correct bib framework. See that the value builder appears while the plugin is enabled and disappears from that field while disabled.
5. Check uninstalling the plugin works correctly




Bug 39522: Allow Valuebuilders to be installable as plugins

Co-authored-by: Mark Hofstetter <koha@trust-box.at>
Comment 4 Jacob O'Mara 2025-04-02 11:46:44 UTC
Created attachment 180302 [details] [review]
Bug 39522: Add filtering to the plugin home page for valuebuilders

Co-authored-by: Mark Hofstetter <koha@trust-box.at>
Comment 5 Jacob O'Mara 2025-04-02 13:07:26 UTC
Created attachment 180337 [details] [review]
Mark Hofstetter will be following up with unit tests as we worked on this together.

Test plan:

1. Install the example plugin from https://github.com/Jacobomara901/koha-plugin-value-builder and enable it
2. See that the framework plugin ‘custom_date’ is available to add to a subfield while the installed plugin is enabled and disappears when it is not.
3. Assign custom_date to your preferred Marc subfield (I use 650 subfield 2 ) and navigate to that field on a record of your choice
4. Ensure you are on the correct bib framework. See that the value builder appears while the plugin is enabled and disappears from that field while disabled.
5. Check uninstalling the plugin works correctly

Bug 39522: Allow Valuebuilders to be installable as plugins

Co-authored-by: Mark Hofstetter <mark@hofstetter.at>
Comment 6 Jacob O'Mara 2025-04-02 13:07:28 UTC
Created attachment 180338 [details] [review]
Bug 39522: Add filtering to the plugin home page for valuebuilders

Co-authored-by: Mark Hofstetter <mark@hofstetter.at>