[Koha-bugs] [Bug 10480] Cataloging plugins without redefining
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 19 16:00:44 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10480
M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #19152|0 |1
is obsolete| |
--- Comment #6 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 19154
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19154&action=edit
Bug 10480: New cataloging plugin style without redefining
This reports changes the way we handle cataloging plugins.
Currently, three functions are redefined: plugin_parameters, plugin_javascript
and plugin. In this new proposal, communication between addbiblio and the
plugin goes via a global variable. The plugin script detects that way if we are
building the plugin or executing it.
A example plugin is added just to illustrate the concept.
Plugin marc21_leader.pl is adjusted to the new style (plus some cosmetic
changes: removing tabs etc.)
Test plan:
Run the MARC editor and test your current plugins.
If you use marc21_leader, test it again.
Temporarily connect new_example_plugin to some field and test that.
Check the log for warnings about redefines.
Signed-off-by: Nuno Lopez Ansotegui <nunyo at masmedios.com>
Still amended this patch:
arrayref $building_plugins => hashref $building_plugin
hash entry names: tabno and subfieldid are slightly better
slightly adjusted test on passed hash values
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list