2 package Koha::Schema::Result::MarcModificationTemplateAction;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::MarcModificationTemplateAction
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<marc_modification_template_actions>
22 __PACKAGE__->table("marc_modification_template_actions");
46 extra: {list => ["delete_field","update_field","move_field","copy_field","copy_and_replace_field"]}
85 =head2 to_regex_search
90 =head2 to_regex_replace
95 =head2 to_regex_modifiers
98 default_value: (empty string)
105 extra: {list => ["if","unless"]}
108 =head2 conditional_field
114 =head2 conditional_subfield
120 =head2 conditional_comparison
123 extra: {list => ["exists","not_exists","equals","not_equals"]}
126 =head2 conditional_value
131 =head2 conditional_regex
144 __PACKAGE__->add_columns(
146 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
148 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
150 { data_type => "integer", is_nullable => 0 },
160 "copy_and_replace_field",
166 { data_type => "smallint", default_value => 0, is_nullable => 0 },
168 { data_type => "varchar", is_nullable => 0, size => 3 },
170 { data_type => "varchar", is_nullable => 1, size => 1 },
172 { data_type => "varchar", is_nullable => 1, size => 100 },
174 { data_type => "varchar", is_nullable => 1, size => 3 },
176 { data_type => "varchar", is_nullable => 1, size => 1 },
178 { data_type => "text", is_nullable => 1 },
180 { data_type => "text", is_nullable => 1 },
181 "to_regex_modifiers",
182 { data_type => "varchar", default_value => "", is_nullable => 1, size => 8 },
186 extra => { list => ["if", "unless"] },
190 { data_type => "varchar", is_nullable => 1, size => 3 },
191 "conditional_subfield",
192 { data_type => "varchar", is_nullable => 1, size => 1 },
193 "conditional_comparison",
196 extra => { list => ["exists", "not_exists", "equals", "not_equals"] },
200 { data_type => "text", is_nullable => 1 },
202 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
204 { data_type => "text", is_nullable => 1 },
217 __PACKAGE__->set_primary_key("mmta_id");
225 Related object: L<Koha::Schema::Result::MarcModificationTemplate>
229 __PACKAGE__->belongs_to(
231 "Koha::Schema::Result::MarcModificationTemplate",
232 { template_id => "template_id" },
233 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
237 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-11-05 10:39:28
238 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mIif3RU6QvUc0xJepUQZjw
241 # You can replace this text with custom code or comments, and it will be preserved on regeneration