X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/6a39e557f114b8cbcc1ab775138fa340e56c322f..2adbaeeb5b5bda3af032bf6504367e139147da6c:/word/edit.plp diff --git a/word/edit.plp b/word/edit.plp index 5957b1a..7ba90fa 100644 --- a/word/edit.plp +++ b/word/edit.plp @@ -90,7 +90,9 @@ my %wordcol = ( prio => [ {-label => 'Level', -select => sub { my ($row) = @_; - my @enum = qw[ essential basic common distinctive optional invisible ]; + my @enum = qw[ + essential ubiquitous basic common distinctive specialised rare invisible + ]; return { ('' => 'parent') x (defined $row->{ref}), map { $_ => $enum[$_] } 0 .. $#enum @@ -216,7 +218,7 @@ elsif (defined $post{form}) {{ $reimage++ if $fields{rethumb}; # force refresh if ($reimage) { eval { - $image->convert($wordcol{convert}->{-src}->($row), $imagecol->{convert}); + $image->generate($wordcol{convert}->{-src}->($row), $imagecol->{convert}); } or do { my ($warn, @details) = ref $@ ? @{$@} : $@; Alert([ "Thumbnail image not generated", $warn ], @details); @@ -226,7 +228,7 @@ elsif (defined $post{form}) {{ else { $row->{lang} //= $user->{editlang}->[0] unless exists $row->{lang}; $row->{$_} = $get{$_} for keys %get; - $row->{prio} = defined $row->{ref} ? undef : 1 unless exists $row->{prio}; + $row->{prio} = defined $row->{ref} ? undef : 4 unless exists $row->{prio}; } eval {