From: Joseph Lewis Date: Thu, 7 Jul 2011 21:55:40 +0000 (-0600) Subject: Cleaned up seed values. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c710049eaf13aa419d1932cc1198e8ca96e8805f;p=evergreen%2Fjoelewis.git Cleaned up seed values. Signed-off-by: Joseph Lewis --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 0808080464..535c47b550 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -9427,609 +9427,6 @@ INSERT INTO config.settings_group (name, label) VALUES ('serial', oils_i18n_gettext('config.settings_group.serial', 'Serials', 'coust', 'label')), ('recall', oils_i18n_gettext('config.settings_group.recall', 'Recalls', 'coust', 'label')); -Dear [% user.family_name %], [% user.first_given_name %] -The following holds were cancelled because no items were found to fullfil the hold. - -[% FOR hold IN target %] - Title: [% hold.bib_rec.bib_record.simple_record.title %] - Author: [% hold.bib_rec.bib_record.simple_record.author %] - Library: [% hold.pickup_lib.name %] - Request Date: [% date.format(helpers.format_date(hold.rrequest_time), '%Y-%m-%d') %] -[% END %] - -$$); - -INSERT INTO action_trigger.environment (event_def, path) VALUES - (38, 'usr'), - (38, 'pickup_lib'), - (38, 'bib_rec.bib_record.simple_record'); - - -INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES ( - 'circ.lost.generate_overdue_on_checkin', - oils_i18n_gettext( - 'circ.lost.generate_overdue_on_checkin', - 'Circ: Lost Checkin Generates New Overdues', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'circ.lost.generate_overdue_on_checkin', - 'Enabling this setting causes retroactive creation of not-yet-existing overdue fines on lost item checkin, up to the point of checkin time (or max fines is reached). This is different than "restore overdue on lost", because it only creates new overdue fines. Use both settings together to get the full complement of overdue fines for a lost item', - 'coust', - 'label' - ), - 'bool' -); - ----------------------------------------------------------------- --- Seed data for queued record/item exports ----------------------------------------------------------------- - -INSERT INTO action_trigger.hook (key,core_type,description,passive) VALUES ( - 'vandelay.queued_bib_record.print', - 'vqbr', - oils_i18n_gettext( - 'vandelay.queued_bib_record.print', - 'Print output has been requested for records in an Importer Bib Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.queued_bib_record.csv', - 'vqbr', - oils_i18n_gettext( - 'vandelay.queued_bib_record.csv', - 'CSV output has been requested for records in an Importer Bib Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.queued_bib_record.email', - 'vqbr', - oils_i18n_gettext( - 'vandelay.queued_bib_record.email', - 'An email has been requested for records in an Importer Bib Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.queued_auth_record.print', - 'vqar', - oils_i18n_gettext( - 'vandelay.queued_auth_record.print', - 'Print output has been requested for records in an Importer Authority Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.queued_auth_record.csv', - 'vqar', - oils_i18n_gettext( - 'vandelay.queued_auth_record.csv', - 'CSV output has been requested for records in an Importer Authority Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.queued_auth_record.email', - 'vqar', - oils_i18n_gettext( - 'vandelay.queued_auth_record.email', - 'An email has been requested for records in an Importer Authority Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.import_items.print', - 'vii', - oils_i18n_gettext( - 'vandelay.import_items.print', - 'Print output has been requested for Import Items from records in an Importer Bib Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.import_items.csv', - 'vii', - oils_i18n_gettext( - 'vandelay.import_items.csv', - 'CSV output has been requested for Import Items from records in an Importer Bib Queue.', - 'ath', - 'description' - ), - FALSE - ) - ,( - 'vandelay.import_items.email', - 'vii', - oils_i18n_gettext( - 'vandelay.import_items.email', - 'An email has been requested for Import Items from records in an Importer Bib Queue.', - 'ath', - 'description' - ), - FALSE - ) -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 39, - TRUE, - 1, - 'Print Output for Queued Bib Records', - 'vandelay.queued_bib_record.print', - 'NOOP_True', - 'ProcessTemplate', - 'queue.owner', - 'print-on-demand', -$$ -[%- USE date -%] -
-Queue ID: [% target.0.queue.id %]
-Queue Name: [% target.0.queue.name %]
-Queue Type: [% target.0.queue.queue_type %]
-Complete? [% target.0.queue.complete %]
-
-    [% FOR vqbr IN target %]
-=-=-=
- Title of work    | [% helpers.get_queued_bib_attr('title',vqbr.attributes) %]
- Author of work   | [% helpers.get_queued_bib_attr('author',vqbr.attributes) %]
- Language of work | [% helpers.get_queued_bib_attr('language',vqbr.attributes) %]
- Pagination       | [% helpers.get_queued_bib_attr('pagination',vqbr.attributes) %]
- ISBN             | [% helpers.get_queued_bib_attr('isbn',vqbr.attributes) %]
- ISSN             | [% helpers.get_queued_bib_attr('issn',vqbr.attributes) %]
- Price            | [% helpers.get_queued_bib_attr('price',vqbr.attributes) %]
- Accession Number | [% helpers.get_queued_bib_attr('rec_identifier',vqbr.attributes) %]
- TCN Value        | [% helpers.get_queued_bib_attr('eg_tcn',vqbr.attributes) %]
- TCN Source       | [% helpers.get_queued_bib_attr('eg_tcn_source',vqbr.attributes) %]
- Internal ID      | [% helpers.get_queued_bib_attr('eg_identifier',vqbr.attributes) %]
- Publisher        | [% helpers.get_queued_bib_attr('publisher',vqbr.attributes) %]
- Publication Date | [% helpers.get_queued_bib_attr('pubdate',vqbr.attributes) %]
- Edition          | [% helpers.get_queued_bib_attr('edition',vqbr.attributes) %]
- Item Barcode     | [% helpers.get_queued_bib_attr('item_barcode',vqbr.attributes) %]
-
-    [% END %]
-
-$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 39, 'attributes') - ,( 39, 'queue') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 40, - TRUE, - 1, - 'CSV Output for Queued Bib Records', - 'vandelay.queued_bib_record.csv', - 'NOOP_True', - 'ProcessTemplate', - 'queue.owner', - 'print-on-demand', -$$ -[%- USE date -%] -"Title of work","Author of work","Language of work","Pagination","ISBN","ISSN","Price","Accession Number","TCN Value","TCN Source","Internal ID","Publisher","Publication Date","Edition","Item Barcode" -[% FOR vqbr IN target %]"[% helpers.get_queued_bib_attr('title',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('author',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('language',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('pagination',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('isbn',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('issn',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('price',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('rec_identifier',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('eg_tcn',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('eg_tcn_source',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('eg_identifier',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('publisher',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('pubdate',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('edition',vqbr.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('item_barcode',vqbr.attributes) | replace('"', '""') %]" -[% END %] -$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 40, 'attributes') - ,( 40, 'queue') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 41, - TRUE, - 1, - 'Email Output for Queued Bib Records', - 'vandelay.queued_bib_record.email', - 'NOOP_True', - 'SendEmail', - 'queue.owner', - NULL, -$$ -[%- USE date -%] -[%- SET user = target.0.queue.owner -%] -To: [%- params.recipient_email || user.email || 'root@localhost' %] -From: [%- params.sender_email || default_sender %] -Subject: Bibs from Import Queue - -Queue ID: [% target.0.queue.id %] -Queue Name: [% target.0.queue.name %] -Queue Type: [% target.0.queue.queue_type %] -Complete? [% target.0.queue.complete %] - - [% FOR vqbr IN target %] -=-=-= - Title of work | [% helpers.get_queued_bib_attr('title',vqbr.attributes) %] - Author of work | [% helpers.get_queued_bib_attr('author',vqbr.attributes) %] - Language of work | [% helpers.get_queued_bib_attr('language',vqbr.attributes) %] - Pagination | [% helpers.get_queued_bib_attr('pagination',vqbr.attributes) %] - ISBN | [% helpers.get_queued_bib_attr('isbn',vqbr.attributes) %] - ISSN | [% helpers.get_queued_bib_attr('issn',vqbr.attributes) %] - Price | [% helpers.get_queued_bib_attr('price',vqbr.attributes) %] - Accession Number | [% helpers.get_queued_bib_attr('rec_identifier',vqbr.attributes) %] - TCN Value | [% helpers.get_queued_bib_attr('eg_tcn',vqbr.attributes) %] - TCN Source | [% helpers.get_queued_bib_attr('eg_tcn_source',vqbr.attributes) %] - Internal ID | [% helpers.get_queued_bib_attr('eg_identifier',vqbr.attributes) %] - Publisher | [% helpers.get_queued_bib_attr('publisher',vqbr.attributes) %] - Publication Date | [% helpers.get_queued_bib_attr('pubdate',vqbr.attributes) %] - Edition | [% helpers.get_queued_bib_attr('edition',vqbr.attributes) %] - Item Barcode | [% helpers.get_queued_bib_attr('item_barcode',vqbr.attributes) %] - - [% END %] - -$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 41, 'attributes') - ,( 41, 'queue') - ,( 41, 'queue.owner') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 42, - TRUE, - 1, - 'Print Output for Queued Authority Records', - 'vandelay.queued_auth_record.print', - 'NOOP_True', - 'ProcessTemplate', - 'queue.owner', - 'print-on-demand', -$$ -[%- USE date -%] -
-Queue ID: [% target.0.queue.id %]
-Queue Name: [% target.0.queue.name %]
-Queue Type: [% target.0.queue.queue_type %]
-Complete? [% target.0.queue.complete %]
-
-    [% FOR vqar IN target %]
-=-=-=
- Record Identifier | [% helpers.get_queued_auth_attr('rec_identifier',vqar.attributes) %]
-
-    [% END %]
-
-$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 42, 'attributes') - ,( 42, 'queue') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 43, - TRUE, - 1, - 'CSV Output for Queued Authority Records', - 'vandelay.queued_auth_record.csv', - 'NOOP_True', - 'ProcessTemplate', - 'queue.owner', - 'print-on-demand', -$$ -[%- USE date -%] -"Record Identifier" -[% FOR vqar IN target %]"[% helpers.get_queued_auth_attr('rec_identifier',vqar.attributes) | replace('"', '""') %]" -[% END %] -$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 43, 'attributes') - ,( 43, 'queue') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 44, - TRUE, - 1, - 'Email Output for Queued Authority Records', - 'vandelay.queued_auth_record.email', - 'NOOP_True', - 'SendEmail', - 'queue.owner', - NULL, -$$ -[%- USE date -%] -[%- SET user = target.0.queue.owner -%] -To: [%- params.recipient_email || user.email || 'root@localhost' %] -From: [%- params.sender_email || default_sender %] -Subject: Authorities from Import Queue - -Queue ID: [% target.0.queue.id %] -Queue Name: [% target.0.queue.name %] -Queue Type: [% target.0.queue.queue_type %] -Complete? [% target.0.queue.complete %] - - [% FOR vqar IN target %] -=-=-= - Record Identifier | [% helpers.get_queued_auth_attr('rec_identifier',vqar.attributes) %] - - [% END %] - -$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 44, 'attributes') - ,( 44, 'queue') - ,( 44, 'queue.owner') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 45, - TRUE, - 1, - 'Print Output for Import Items from Queued Bib Records', - 'vandelay.import_items.print', - 'NOOP_True', - 'ProcessTemplate', - 'record.queue.owner', - 'print-on-demand', -$$ -[%- USE date -%] -
-Queue ID: [% target.0.record.queue.id %]
-Queue Name: [% target.0.record.queue.name %]
-Queue Type: [% target.0.record.queue.queue_type %]
-Complete? [% target.0.record.queue.complete %]
-
-    [% FOR vii IN target %]
-=-=-=
- Import Item ID         | [% vii.id %]
- Title of work          | [% helpers.get_queued_bib_attr('title',vii.record.attributes) %]
- ISBN                   | [% helpers.get_queued_bib_attr('isbn',vii.record.attributes) %]
- Attribute Definition   | [% vii.definition %]
- Import Error           | [% vii.import_error %]
- Import Error Detail    | [% vii.error_detail %]
- Owning Library         | [% vii.owning_lib %]
- Circulating Library    | [% vii.circ_lib %]
- Call Number            | [% vii.call_number %]
- Copy Number            | [% vii.copy_number %]
- Status                 | [% vii.status.name %]
- Shelving Location      | [% vii.location.name %]
- Circulate              | [% vii.circulate %]
- Deposit                | [% vii.deposit %]
- Deposit Amount         | [% vii.deposit_amount %]
- Reference              | [% vii.ref %]
- Holdable               | [% vii.holdable %]
- Price                  | [% vii.price %]
- Barcode                | [% vii.barcode %]
- Circulation Modifier   | [% vii.circ_modifier %]
- Circulate As MARC Type | [% vii.circ_as_type %]
- Alert Message          | [% vii.alert_message %]
- Public Note            | [% vii.pub_note %]
- Private Note           | [% vii.priv_note %]
- OPAC Visible           | [% vii.opac_visible %]
-
-    [% END %]
-
-$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 45, 'record') - ,( 45, 'record.attributes') - ,( 45, 'record.queue') - ,( 45, 'record.queue.owner') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 46, - TRUE, - 1, - 'CSV Output for Import Items from Queued Bib Records', - 'vandelay.import_items.csv', - 'NOOP_True', - 'ProcessTemplate', - 'record.queue.owner', - 'print-on-demand', -$$ -[%- USE date -%] -"Import Item ID","Title of work","ISBN","Attribute Definition","Import Error","Import Error Detail","Owning Library","Circulating Library","Call Number","Copy Number","Status","Shelving Location","Circulate","Deposit","Deposit Amount","Reference","Holdable","Price","Barcode","Circulation Modifier","Circulate As MARC Type","Alert Message","Public Note","Private Note","OPAC Visible" -[% FOR vii IN target %]"[% vii.id | replace('"', '""') %]","[% helpers.get_queued_bib_attr('title',vii.record.attributes) | replace('"', '""') %]","[% helpers.get_queued_bib_attr('isbn',vii.record.attributes) | replace('"', '""') %]","[% vii.definition | replace('"', '""') %]","[% vii.import_error | replace('"', '""') %]","[% vii.error_detail | replace('"', '""') %]","[% vii.owning_lib | replace('"', '""') %]","[% vii.circ_lib | replace('"', '""') %]","[% vii.call_number | replace('"', '""') %]","[% vii.copy_number | replace('"', '""') %]","[% vii.status.name | replace('"', '""') %]","[% vii.location.name | replace('"', '""') %]","[% vii.circulate | replace('"', '""') %]","[% vii.deposit | replace('"', '""') %]","[% vii.deposit_amount | replace('"', '""') %]","[% vii.ref | replace('"', '""') %]","[% vii.holdable | replace('"', '""') %]","[% vii.price | replace('"', '""') %]","[% vii.barcode | replace('"', '""') %]","[% vii.circ_modifier | replace('"', '""') %]","[% vii.circ_as_type | replace('"', '""') %]","[% vii.alert_message | replace('"', '""') %]","[% vii.pub_note | replace('"', '""') %]","[% vii.priv_note | replace('"', '""') %]","[% vii.opac_visible | replace('"', '""') %]" -[% END %] -$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 46, 'record') - ,( 46, 'record.attributes') - ,( 46, 'record.queue') - ,( 46, 'record.queue.owner') -; - -INSERT INTO action_trigger.event_definition ( - id, - active, - owner, - name, - hook, - validator, - reactor, - group_field, - granularity, - template - ) VALUES ( - 47, - TRUE, - 1, - 'Email Output for Import Items from Queued Bib Records', - 'vandelay.import_items.email', - 'NOOP_True', - 'SendEmail', - 'record.queue.owner', - NULL, -$$ -[%- USE date -%] -[%- SET user = target.0.record.queue.owner -%] -To: [%- params.recipient_email || user.email || 'root@localhost' %] -From: [%- params.sender_email || default_sender %] -Subject: Import Items from Import Queue - -Queue ID: [% target.0.record.queue.id %] -Queue Name: [% target.0.record.queue.name %] -Queue Type: [% target.0.record.queue.queue_type %] -Complete? [% target.0.record.queue.complete %] - - [% FOR vii IN target %] -=-=-= - Import Item ID | [% vii.id %] - Title of work | [% helpers.get_queued_bib_attr('title',vii.record.attributes) %] - ISBN | [% helpers.get_queued_bib_attr('isbn',vii.record.attributes) %] - Attribute Definition | [% vii.definition %] - Import Error | [% vii.import_error %] - Import Error Detail | [% vii.error_detail %] - Owning Library | [% vii.owning_lib %] - Circulating Library | [% vii.circ_lib %] - Call Number | [% vii.call_number %] - Copy Number | [% vii.copy_number %] - Status | [% vii.status.name %] - Shelving Location | [% vii.location.name %] - Circulate | [% vii.circulate %] - Deposit | [% vii.deposit %] - Deposit Amount | [% vii.deposit_amount %] - Reference | [% vii.ref %] - Holdable | [% vii.holdable %] - Price | [% vii.price %] - Barcode | [% vii.barcode %] - Circulation Modifier | [% vii.circ_modifier %] - Circulate As MARC Type | [% vii.circ_as_type %] - Alert Message | [% vii.alert_message %] - Public Note | [% vii.pub_note %] - Private Note | [% vii.priv_note %] - OPAC Visible | [% vii.opac_visible %] - - [% END %] -$$ - ) -; - -INSERT INTO action_trigger.environment ( event_def, path) VALUES ( - 47, 'record') - ,( 47, 'record.attributes') - ,( 47, 'record.queue') - ,( 47, 'record.queue.owner') -; -- Set up all of the config.org_unit_setting_type[s] with a proper group. UPDATE config.org_unit_setting_type SET grp = 'cat' WHERE name = 'cat.bib.delete_on_no_copy_via_acq_lineitem_cancel'; @@ -10226,4 +9623,3 @@ UPDATE config.org_unit_setting_type SET grp = 'self' WHERE name = 'circ.selfchec UPDATE config.org_unit_setting_type SET grp = 'self' WHERE name = 'circ.selfcheck.workstation_required'; UPDATE config.org_unit_setting_type SET grp = 'serial' WHERE name = 'serial.prev_issuance_copy_location'; -