#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::Catalog::Command::DAShow;
use strict;
use warnings;

use lib '/app/tools/rps/lib';
use RPS::Catalog::DAForm;
use RPS::Command;
use RPS::CommandLog;
use base 'RPS::Command';

use lib '/app/tools/common/lib';
use RSApache::Response::XSLT;

sub cmd  { return 'da_show'; }
sub area { return 'catalog'; }

use constant kTemplate => "/app/tools/rps/templates/catalog/index.xsl";

sub execute
{
	my ($self) = @_;

	my $response = $self->SUPER::execute();
	return $response if $response;

	my $albumID = $self->getParam("AlbumID");
	my $form = RPS::Catalog::DAForm->new(albumID => $albumID);

    RPS::CommandLog::Log($self, $albumID);
	$self->{xml}{Form} = $form;

	$response = RSApache::Response::XSLT->new($self->{xml}, kTemplate);
	return $response;
}



1;
