|
|
Choosing A Webhost: |
[mb-commits] r9185 - mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin: msg#00004audio.musicbrainz.cvs
Author: luks Date: 2007-06-17 16:04:42 +0000 (Sun, 17 Jun 2007) New Revision: 9185 Modified: mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin/Label.pm Log: Add 'Publisher' label type. Modified: mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin/Label.pm =================================================================== --- mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin/Label.pm 2007-06-17 15:46:00 UTC (rev 9184) +++ mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin/Label.pm 2007-06-17 16:04:42 UTC (rev 9185) @@ -47,6 +47,7 @@ use constant LABEL_TYPE_ORIGINAL_PRODUCTION => 4; use constant LABEL_TYPE_BOOTLEG_PRODUCTION => 5; use constant LABEL_TYPE_REISSUE_PRODUCTION => 6; +use constant LABEL_TYPE_PUBLISHER => 7; my %LabelTypeNames = ( 0 => [ 'Unknown', 0 ], @@ -56,12 +57,13 @@ 4 => [ 'Original Production', 1 ], 5 => [ 'Bootleg Production', 1 ], 6 => [ 'Reissue Production', 1 ], + 7 => [ 'Publisher', 0 ], ); sub GetLabelTypes { my @types; - for (my $id = 0; $id <= 6; $id++) + for (my $id = 0; $id <= 7; $id++) { my $type = [$id, $LabelTypeNames{$id}->[0], undef, $LabelTypeNames{$id}->[1]]; push @types, $type; @@ -72,7 +74,7 @@ sub IsValidType { my $type = shift; - return (defined $type and $type ne "" and $type >= 0 and $type <= 6); + return (defined $type and $type ne "" and $type >= 0 and $type <= 7); } # Label specific accessor function. Others are inherted from TableBase
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [mb-commits] r9184 - libdiscid/trunk/src, root |
|---|---|
| Next by Date: | [mb-commits] r9186 - in metabrainz/trunk/htdocs/finances: . reports, root |
| Previous by Thread: | [mb-commits] r9184 - libdiscid/trunk/src, root |
| Next by Thread: | [mb-commits] r9186 - in metabrainz/trunk/htdocs/finances: . reports, root |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |