diff options
author | Yorhel <git@yorhel.nl> | 2019-07-08 15:25:29 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-07-08 15:25:31 +0200 |
commit | ab05632cd6d2c1edfb5791711614b1633f72b194 (patch) | |
tree | 84e1335c1d3ee940cfd5a013ba541411c967f815 /lib/VNDB/Handler/Tags.pm | |
parent | 37f6528e6ac44e9a036e6c4ea8a9ba7837c907f7 (diff) |
Add Producer/Staff/Seiyuu filters to Release/VN/Char filters
This also abstracts and changes the tag/trait filter selection interface
a little bit. Non-searchable tags/traits are now simply not listed
anymore in the dropdown search.
Diffstat (limited to 'lib/VNDB/Handler/Tags.pm')
-rw-r--r-- | lib/VNDB/Handler/Tags.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm index 954ea279..90b3e726 100644 --- a/lib/VNDB/Handler/Tags.pm +++ b/lib/VNDB/Handler/Tags.pm @@ -769,6 +769,7 @@ sub tagxml { my $f = $self->formValidate( { get => 'q', required => 0, maxlength => 500 }, { get => 'id', required => 0, multi => 1, template => 'id' }, + { get => 'searchable', required => 0, default => 0 }, ); return $self->resNotFound if $f->{_err} || (!$f->{q} && !$f->{id} && !$f->{id}[0]); @@ -777,6 +778,7 @@ sub tagxml { $f->{id} && $f->{id}[0] ? (id => $f->{id}) : (), results => 15, page => 1, + $f->{searchable} ? (state => 2, searchable => 1) : (), ); $self->resHeader('Content-type' => 'text/xml; charset=UTF-8'); |