[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] unset or overwrite triggers



No easily, the idiot* who designed that part of the system didn't put IDs into the triggers, it just makes a list of each trigger function reference for each priority.

https://github.com/eprints/eprints/blob/2d42b2be54004bf3db6881a6d893d39c7a7f909f/perl_lib/EPrints/RepositoryConfig.pm#L96<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F2d42b2be54004bf3db6881a6d893d39c7a7f909f%2Fperl_lib%2FEPrints%2FRepositoryConfig.pm%23L96&data=01%7C01%7C%7C89c5153452604778e2d708d6926bb5f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=Hua%2BG2eXJCngAiSyJIq%2BEzJnYVP1EWngQBlhjcIM5i4%3D&reserved=0>

All I can suggest is, near the end of the cfg.d files (they load alphabetically) remove ALL the triggers from a priority, and reapply just the ones you want. It's a fragile solution.


*I was that idiot, sorry about that.



On 14/02/2019 10:40, Alan.Stiles via Eprints-tech wrote:
Is it possible in a local cfg.d script to replace or disable an existing trigger?

I?ve realised that, due to non-standard field usage, there are functions that never get triggered for us, so I?d like to replace the existing trigger without hacking the existing plugin module.

Thanks,
Alan

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking.


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7C89c5153452604778e2d708d6926bb5f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=zR0qJac2Ksy9SWd3s5Jic5MmYrqR1zPixbcu%2FaA2BJw%3D&reserved=0>
*** EPrints community wiki: http://wiki.eprints.org/<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7C89c5153452604778e2d708d6926bb5f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=PHARKuXRrcDltH0UpmZtehXoAisFYX%2BjLnzlQpSEqBc%3D&reserved=0>
*** EPrints developers Forum: http://forum.eprints.org/<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7C89c5153452604778e2d708d6926bb5f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=HYpxLJam7ulaBfN7XatJt9eaqV59KZM5lAFhN95%2BrGA%3D&reserved=0>


--
Christopher Gutteridge <totl at soton.ac.uk><mailto:totl at soton.ac.uk>
You should read our team blog at http://blog.soton.ac.uk/webteam/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190214/e160b785/attachment-0001.html