From 055a05ea4d7ec0956a36e18bc79d46aa54b2ab9c Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 31 May 2009 09:40:36 +0200 Subject: Ignore doujin flag for patch release types --- data/docs/3 | 2 +- lib/VNDB/Handler/Releases.pm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/docs/3 b/data/docs/3 index 215ac74f..6ec7bb14 100644 --- a/data/docs/3 +++ b/data/docs/3 @@ -33,7 +33,7 @@ Check if this box if the game is downloadable (or otherwise distributed) at no cost.
Doujin
Published by a doujin circle, amateur group or individual, as opposed to a legal - entity such as a company. + entity such as a company. This field is ignored when the release type is set to patch.
Title (romaji)
The name of the release, in the Latin character set (using Romanisation or translation)
Original title
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index 1f2b2ac6..3933217a 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -134,7 +134,7 @@ sub _infotable { Tr ++$i % 2 ? (class => 'odd') : (); td 'Publication'; - td ''.($r->{freeware} ? 'Freeware' : 'Non-free').', '.($r->{doujin} ? 'doujin' : 'commercial'); + td join ', ', $r->{freeware} ? 'Freeware' : 'Non-free', $r->{patch} ? () : $r->{doujin} ? 'doujin' : 'commercial'; end; if(@{$r->{platforms}}) { @@ -322,6 +322,7 @@ sub edit { my $new_vn = [ map { /^([0-9]+)/ ? $1 : () } split /\|\|\|/, $frm->{vn} ]; $frm->{platforms} = [ grep $_, @{$frm->{platforms}} ]; $frm->{$_} = $frm->{$_} ? 1 : 0 for (qw|patch freeware doujin|); + $frm->{doujin} = 0 if $frm->{patch}; return $self->resRedirect("/r$rid", 'post') if $rid && -- cgit v1.2.3