@@ -, +, @@ --- Koha/Schema/Result/SearchField.pm | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) --- a/Koha/Schema/Result/SearchField.pm +++ a/Koha/Schema/Result/SearchField.pm @@ -48,11 +48,17 @@ the human readable name of the field, for display =head2 type data_type: 'enum' - extra: {list => ["","string","date","number","boolean","sum"]} + extra: {list => ["","string","date","number","boolean","sum","isbn","stdno"]} is_nullable: 0 what type of data this holds, relevant when storing it in the search engine +=head2 weight + + data_type: 'decimal' + is_nullable: 1 + size: [5,2] + =cut __PACKAGE__->add_columns( @@ -65,9 +71,13 @@ __PACKAGE__->add_columns( "type", { data_type => "enum", - extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, + extra => { + list => ["", "string", "date", "number", "boolean", "sum", "isbn", "stdno"], + }, is_nullable => 0, }, + "weight", + { data_type => "decimal", is_nullable => 1, size => [5, 2] }, ); =head1 PRIMARY KEY @@ -114,8 +124,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 13:30:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1IenQWmCO16tJ/nIFTFYug +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-23 13:34:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wB00F2omQ2QadnIxg8keIQ __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); --