Author: robert
Date: 2006-10-16 21:07:45 +0000 (Mon, 16 Oct 2006)
New Revision: 8533
Added:
mb_server/trunk/cgi-bin/MusicBrainz/Server/Moderation/MOD_SET_RELEASE_DURATIONS.pm
mb_server/trunk/htdocs/comp/moderation/MOD_SET_RELEASE_DURATIONS
mb_server/trunk/htdocs/edit/album/setdurations.html
Modified:
mb_server/trunk/cgi-bin/ModDefs.pm
mb_server/trunk/cgi-bin/Moderation.pm
mb_server/trunk/htdocs/show/cdtoc/index.html
Log:
Implemented a new moderation to set the durations of an album from a CDTOC.
Fixes #629
Modified: mb_server/trunk/cgi-bin/ModDefs.pm
===================================================================
--- mb_server/trunk/cgi-bin/ModDefs.pm 2006-10-12 23:51:35 UTC (rev 8532)
+++ mb_server/trunk/cgi-bin/ModDefs.pm 2006-10-16 21:07:45 UTC (rev 8533)
@@ -122,8 +122,9 @@
use constant MOD_EDIT_RELEASEEVENTS => 50;
use constant MOD_REMOVE_RELEASEEVENTS => 51;
use constant MOD_CHANGE_RELEASE_LOCK => 52;
+use constant MOD_SET_RELEASE_DURATIONS => 53;
-use constant MOD_LAST => 52;
+use constant MOD_LAST => 53;
# The constants below define the state a moderation can have:
Modified: mb_server/trunk/cgi-bin/Moderation.pm
===================================================================
--- mb_server/trunk/cgi-bin/Moderation.pm 2006-10-12 23:51:35 UTC (rev
8532)
+++ mb_server/trunk/cgi-bin/Moderation.pm 2006-10-16 21:07:45 UTC (rev
8533)
@@ -88,6 +88,7 @@
require MusicBrainz::Server::Moderation::MOD_ADD_RELEASEEVENTS;
require MusicBrainz::Server::Moderation::MOD_EDIT_RELEASEEVENTS;
require MusicBrainz::Server::Moderation::MOD_REMOVE_RELEASEEVENTS;
+require MusicBrainz::Server::Moderation::MOD_SET_RELEASE_DURATIONS;
use constant SEARCHRESULT_SUCCESS => 1;
use constant SEARCHRESULT_NOQUERY => 2;
Added:
mb_server/trunk/cgi-bin/MusicBrainz/Server/Moderation/MOD_SET_RELEASE_DURATIONS.pm
Added: mb_server/trunk/htdocs/comp/moderation/MOD_SET_RELEASE_DURATIONS
Added: mb_server/trunk/htdocs/edit/album/setdurations.html
Modified: mb_server/trunk/htdocs/show/cdtoc/index.html
===================================================================
--- mb_server/trunk/htdocs/show/cdtoc/index.html 2006-10-12 23:51:35 UTC
(rev 8532)
+++ mb_server/trunk/htdocs/show/cdtoc/index.html 2006-10-16 21:07:45 UTC
(rev 8533)
@@ -46,16 +46,23 @@
<& /comp/sidebar-notitle, pagetitle => "CD TOC Details" &>
+ <& /comp/cdtocinfo, cdtoc => $cdtoc &>
+
+ <& /comp/tablebegin, title => "Releases linked to this CD TOC" &>
+
% my $alcdtocs = $cdtoc->GetAlbumCDTOCs;
% if (@$alcdtocs)
% {
-% # TODO sort albums
+
+ <p>This CD TOC is linked to the following releases:</p>
+
% for my $alcdtoc (@$alcdtocs)
% {
% my $release = $alcdtoc->GetAlbum;
-
- <& /comp/albuminfo, release => $release, short => 1 &>
-
+% my $artist = $m->comp("/comp/loadartist", $mb,
$release->GetArtist);
+ <& /comp/album, album => $release, artist => $artist,
showmodlinks => 0, showlinks => 0 &>
+ <p style="text-align: center"><a
href="/edit/album/setdurations.html?cdtocid=<% $cdtocid %>&releaseid=<%
$release->GetId %>">Set track durations for the above release based on this CD
TOC</a></p>
+ <hr>
% }
% }
% else
@@ -67,8 +74,9 @@
% }
- <& /comp/cdtocinfo, cdtoc => $cdtoc &>
+ <& /comp/tableend &>
+
<& /comp/footer &>
%# vi: set ts=4 sw=4 ft=mason :
|