Enter text in the Template text box if required. These are for email messages. Here is a sample template for sending 90 day overdue notices:
[%- USE date -%] [%- user = target.0.usr -%] To: [%- params.recipient_email || user.email %] From: [%- params.sender_email || default_sender %] Subject: Overdue Items Marked Lost
Dear [% user.family_name %], [% user.first_given_name %] The following items are 90 days overdue and have been marked LOST. [%- params.recipient_email || user.email %][%- params.sender_email || default_sender %] [% FOR circ IN target %] Title: [% circ.target_copy.call_number.record.simple_record.title %] Barcode: [% circ.target_copy.barcode %] Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %] Item Cost: [% helpers.get_copy_price(circ.target_copy) %] Total Owed For Transaction: [% circ.billable_transaction.summary.total_owed %] Library: [% circ.circ_lib.name %] [% END %]
[% FOR circ IN target %] Title: [% circ.target_copy.call_number.record.simple_record.title %] Barcode: [% circ.target_copy.barcode %] Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %] Item Cost: [% helpers.get_copy_price(circ.target_copy) %] Total Owed For Transaction: [% circ.billable_transaction.summary.total_owed %] Library: [% circ.circ_lib.name %] [% END %]
A quick and easy way to create new action triggers is to clone an existing action trigger.
Before deleting an action trigger, you should consider disabling it through the editing form. This way you can keep it for future use or cloning.
Hooks define the Fieldmapper class in the core_type column off of which the rest of the field definitions “hang”.
Field | Description |
Hook Key | A unique name given to the hook. |
Core Type | Used to link the action trigger to the IDL class in fm_IDL.xml |
Description | Text to describe the purpose of the hook. |
Passive | Indicates whether or not an event is created by direct user action or is circumstantial. |
You may also create, edit and delete Hooks but the Core Type must refer to an IDL class in the fm_IDL.xml file.
Reactors link the trigger definition to the action to be carried out.
Field | Description |
Module Name | The name of the Module to run if the action trigger is validated. It must be defined as a subroutine in |
Description | Description of the Action to be carried out. |
You may also create, edit and delete Reactors. Just remember that there must be an associated subroutine or module in the Reactor Perl module.
Validators set the validation test to be preformed to determine whether the action trigger is executed.
Field | Description |
Module Name | The name of the subroutine in |
Description | Description of validation test to run. |
You may also create, edit and delete Validators. Just remember that their must be an associated subroutine in the Reactor.pm Perl module.