[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 14:08:29 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 #19098|0                           |1
        is obsolete|                            |

--- Comment #5 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 19152
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19152&action=edit
Bug 10480: New cataloging plugin style without redefining

This reports adds 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: Nuño López Ansótegui <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