Bug 29317 - value_builder plugins do not result in launcher subroutine running
Summary: value_builder plugins do not result in launcher subroutine running
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 21.05
Hardware: PC Linux
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-25 17:05 UTC by Courtenay Johnson
Modified: 2021-10-26 11:58 UTC (History)
1 user (show)

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


Attachments
Framework example to demonstrate problem (5.29 KB, application/x-perl)
2021-10-26 11:58 UTC, Courtenay Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Courtenay Johnson 2021-10-25 17:05:39 UTC
The plugins in the folder pass the two subroutines as a result, but the plugin_launcher.pl seem to never call the sub loader that was returned as a hashref. The sub builder is called as I expect. For instance in the EXAMPLE.pl file I clone it and put in warning statements in the first line of the two subroutines, the one in the builder sub shows up in the intranet log, but never the same warning in the loader  subroutine. I see evidence that the builder is doing what is expected as a pop up appears and changes in the builder show up in the popup. I changed the default value string).

I have also tried cloning the marc21_leader.pl and it also has the same behaviour, the builder sub is actually called, and the loader sub is not.

I am trying to debug a new plugin to generate accession numbers to suit the way that our library uses accession numbers, and without the plugins working correctly I can't get my plugin to work.

I have enabled the plugins in the koha_config.xml and this does not have any impact on my issue. The global preference that is mentioned in some documentation no longer seems to exist. I don't see anything else to enable. 

Currently, I am stuck and am unable to proceed.

Thanks
Comment 1 Marcel de Rooy 2021-10-26 06:59:13 UTC
Please share your cataloguing plugin code. (Via a patch or just copying into a comment.)
And tell us which Koha version you are on.

When I am reading your comment, I get the impression that you are mixing up two things: we have cataloguing/framework plugins and we have ... plugins containing custom perl code called by predefined plugin hooks for registered plugins.
The cataloguing plugins are not governed by koha-conf.xml but via the framework in Administration. You connect those plugins on specific field/subfield.
Comment 2 Courtenay Johnson 2021-10-26 11:58:59 UTC
Created attachment 126906 [details]
Framework example to demonstrate problem