Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[mb-commits] r9185 - mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin: msg#00004

audio.musicbrainz.cvs

Subject: [mb-commits] r9185 - mb_server/branches/RELEASE_20070401-BRANCH/cgi-bin

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>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation