Skip to content

PTFS-Europe/koha-ill-backend-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

koha ILL backend plugin

Example ILL backend plugin

Converting old ILL backend into a plugin

Use this project as a guideline:

  • Create your plugin, copy the contents from your old ILL backend into the plugin folder.
  • Copy the code from your old Base.pm file into the plugin file named after the plugin.
  • Rename the old backend 'metadata' method to 'backend_metadata'.
  • Rename the old backend 'new' method to 'new_backend'.
  • Add the required plugin methods (new, install, upgrade, uninstall, including $our metadata)
  • Rename the package, example:
    • package Koha::Illbackends::ReprintsDesk::Base;
    • into
    • package Koha::Plugin::Com::PTFSEurope::ReprintsDesk;
  • Add the use base line, example:
    • use base qw(Koha::Plugins::Base);
  • Add the ill_backend and name methods
  • You should be good to go!