diff --git a/albums.php b/albums.php
index e5f98f69..ca15f01e 100644
--- a/albums.php
+++ b/albums.php
@@ -212,7 +212,6 @@ switch ($_REQUEST['action']) {
case 'show':
default:
$album = new Album($_REQUEST['album']);
- $album->allow_group_disks = true;
$album->format();
if (!count($album->album_suite)) {
diff --git a/lib/class/album.class.php b/lib/class/album.class.php
index b8dfb617..34bd644c 100644
--- a/lib/class/album.class.php
+++ b/lib/class/album.class.php
@@ -440,17 +440,15 @@ class Album extends database_object
$this->f_link_src = $web_path . '/albums.php?action=show&album=' . scrub_out($this->id);
$this->f_name_link = "f_link_src . "\" title=\"" . scrub_out($this->full_name) . "\">" . scrub_out($this->f_name);
- // Looking to combine disks
+ // Looking if we need to combine or display disks
if ($this->disk && (!$this->allow_group_disks || ($this->allow_group_disks && !AmpConfig::get('album_group')))) {
$this->f_name_link .= " [" . T_('Disk') . " " . $this->disk . "] ";
- } elseif ($this->disk && $this->allow_group_disks && AmpConfig::get('album_group') && count($this->album_suite) > 1) {
- $this->f_name_link .= " [#" . count($this->album_suite) . "] ";
}
$this->f_name_link .=" ";
$this->f_link = $this->f_name_link;
- $this->f_title = $this->full_name; // FIXME: Legacy?
+ $this->f_title = $this->full_name;
if ($this->artist_count == '1') {
$artist = trim(trim($this->artist_prefix) . ' ' . trim($this->artist_name));
$this->f_artist_name = $artist;
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php
index d0ee5ab7..9f4255e7 100644
--- a/lib/class/artist.class.php
+++ b/lib/class/artist.class.php
@@ -148,7 +148,7 @@ class Artist extends database_object
* gets the album ids that this artist is a part
* of
*/
- public function get_albums($catalog = null)
+ public function get_albums($catalog = null, $ignoreAlbumGroups = false)
{
$catalog_where = "";
$catalog_join = "LEFT JOIN `catalog` ON `catalog`.`id` = `song`.`catalog`";
@@ -173,7 +173,11 @@ class Artist extends database_object
$sql_sort = '`album`.`name` DESC';
}
- $sql_group = "COALESCE(`album`.`mbid`, `album`.`id`)";
+ $sql_group_type = '`album`.`id`';
+ if (!$ignoreAlbumGroups && AmpConfig::get('album_group')) {
+ $sql_group_type = '`album`.`mbid`';
+ }
+ $sql_group = "COALESCE($sql_group_type, `album`.`id`)";
$sql = "SELECT `album`.`id` FROM album LEFT JOIN `song` ON `song`.`album`=`album`.`id` $catalog_join " .
"WHERE `song`.`artist`='$this->id' $catalog_where GROUP BY $sql_group ORDER BY $sql_sort";
@@ -477,7 +481,7 @@ class Artist extends database_object
Tag::update_tag_list($tags_comma, 'artist', $current_id);
if ($override_childs) {
- $albums = $this->get_albums();
+ $albums = $this->get_albums(null, true);
foreach ($albums as $album_id) {
$album = new Album($album_id);
$album->update_tags($tags_comma, $override_childs);
diff --git a/lib/javascript/tools.js b/lib/javascript/tools.js
index d2425c9a..2b7d864b 100644
--- a/lib/javascript/tools.js
+++ b/lib/javascript/tools.js
@@ -175,20 +175,25 @@ function showEditDialog(edit_type, edit_id, edit_form_id, edit_title, refresh_ro
type : 'POST',
data : $(parent.editFormId).serializeArray(),
success : function(resp){
- var new_id = $.trim(resp.lastChild.textContent);
$("#editdialog").dialog("close");
- // resp should contain the new identifier, otherwise we take the same as the edited item
- if (new_id == '') {
- new_id = parent.editId;
+ if (parent.refreshAction != '') {
+ var new_id = $.trim(resp.lastChild.textContent);
+
+ // resp should contain the new identifier, otherwise we take the same as the edited item
+ if (new_id == '') {
+ new_id = parent.editId;
+ }
+
+ var url = jsAjaxServer + '/refresh_updated.server.php?action=' + parent.refreshAction + '&id=' + new_id;
+ // Reload only table
+ $('#' + parent.refreshRowPrefix + parent.editId).load(url, function() {
+ // Update the current row identifier with new id
+ $('#' + parent.refreshRowPrefix + parent.editId).attr("id", parent.refreshRowPrefix + new_id);
+ });
+ } else {
+ location.reload(true);
}
-
- var url = jsAjaxServer + '/refresh_updated.server.php?action=' + parent.refreshAction + '&id=' + new_id;
- // Reload only table
- $('#' + parent.refreshRowPrefix + parent.editId).load(url, function() {
- // Update the current row identifier with new id
- $('#' + parent.refreshRowPrefix + parent.editId).attr("id", parent.refreshRowPrefix + new_id);
- });
},
error : function(resp){
$("#editdialog").dialog("close");
diff --git a/server/search.ajax.php b/server/search.ajax.php
index 0e80e97a..35f02a3b 100644
--- a/server/search.ajax.php
+++ b/server/search.ajax.php
@@ -79,10 +79,14 @@ switch ($_REQUEST['action']) {
foreach ($sres as $id) {
$album = new Album($id);
$album->format();
+ $a_title = $album->f_title;
+ if ($album->disk) {
+ $a_title .= " [" . T_('Disk') . " " . $album->disk . "]";
+ }
$results[] = array(
'type' => T_('Albums'),
'link' => $album->f_link_src,
- 'label' => $album->f_title,
+ 'label' => $a_title,
'value' => $album->f_title,
'rels' => $album->f_artist,
);
diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php
index a93c2d0b..27b64e75 100644
--- a/templates/show_album.inc.php
+++ b/templates/show_album.inc.php
@@ -72,23 +72,23 @@ if (AmpConfig::get('show_played_times')) {
- id,'play', T_('Play'),'directplay_full_' . $album->id); ?>
- id, T_('Play'),'directplay_full_text_' . $album->id); ?>
+ get_http_album_query_ids('album_id'),'play', T_('Play'),'directplay_full_' . $album->id); ?>
+ get_http_album_query_ids('album_id'), T_('Play'),'directplay_full_text_' . $album->id); ?>
- id . '&append=true','play_add', T_('Play last'),'addplay_album_' . $album->id); ?>
- id . '&append=true', T_('Play last'),'addplay_album_text_' . $album->id); ?>
+ get_http_album_query_ids('album_id') . '&append=true','play_add', T_('Play last'),'addplay_album_' . $album->id); ?>
+ get_http_album_query_ids('album_id') . '&append=true', T_('Play last'),'addplay_album_text_' . $album->id); ?>
- id,'add', T_('Add to temporary playlist'),'play_full_' . $album->id); ?>
- id, T_('Add to temporary playlist'), 'play_full_text_' . $album->id); ?>
+ get_http_album_query_ids('id'),'add', T_('Add to temporary playlist'),'play_full_' . $album->id); ?>
+ get_http_album_query_ids('id'), T_('Add to temporary playlist'), 'play_full_text_' . $album->id); ?>
- id,'random', T_('Random to temporary playlist'),'play_random_' . $album->id); ?>
- id, T_('Random to temporary playlist'), 'play_random_text_' . $album->id); ?>
+ get_http_album_query_ids('id'),'random', T_('Random to temporary playlist'),'play_random_' . $album->id); ?>
+ get_http_album_query_ids('id'), T_('Random to temporary playlist'), 'play_random_text_' . $album->id); ?>
/share.php?action=show_create&type=album&id=id; ?>">
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/show_album_group_disks.inc.php b/templates/show_album_group_disks.inc.php
index 016968a5..52024ac6 100644
--- a/templates/show_album_group_disks.inc.php
+++ b/templates/show_album_group_disks.inc.php
@@ -70,13 +70,13 @@ $title = scrub_out($album->name) . ' (' . $album->year . ') - ' .
-
-
+
+
-
-
+
+
@@ -114,14 +114,19 @@ $title = scrub_out($album->name) . ' (' . $album->year . ') - ' .
-
+
-
+
+
+
+
+
+
name) . ' (' . $album->year . ') - ' .
$browse->show_objects(null, true); // true argument is set to show the reorder column
$browse->store();
?>
-
+
\ No newline at end of file
diff --git a/templates/show_album_row.inc.php b/templates/show_album_row.inc.php
index 12f309aa..5eb161df 100644
--- a/templates/show_album_row.inc.php
+++ b/templates/show_album_row.inc.php
@@ -62,12 +62,12 @@ if (Art::is_enabled()) {
id, 'album'); ?>
-
+ allow_group_disks || ($album->allow_group_disks && !count($album->album_suite)))) { ?>
-
+ allow_group_disks || ($album->allow_group_disks && !count($album->album_suite)))) { ?>
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php
index 103750fe..92ee4d2f 100644
--- a/templates/show_artist.inc.php
+++ b/templates/show_artist.inc.php
@@ -103,18 +103,26 @@ if (AmpConfig::get('show_played_times')) {
id,'random', T_('Random all to temporary playlist'),'random_' . $artist->id); ?>
id, T_('Random all to temporary playlist'),'random_text_' . $artist->id); ?>
-
+
+
+
+
+
+
+
+
+
/>
id,'')); ?>
diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php
index 7a6b69e6..b5fd0d0f 100644
--- a/templates/show_random_albums.inc.php
+++ b/templates/show_random_albums.inc.php
@@ -43,12 +43,12 @@ if ($albums) {
- id,'play', T_('Play'),'play_album_' . $album->id); ?>
+ get_http_album_query_ids('album_id'),'play', T_('Play'),'play_album_' . $album->id); ?>
- id . '&append=true','play_add', T_('Play last'),'addplay_album_' . $album->id); ?>
+ get_http_album_query_ids('album_id') . '&append=true','play_add', T_('Play last'),'addplay_album_' . $album->id); ?>
- id,'add', T_('Add to temporary playlist'),'play_full_' . $album->id); ?>
+ get_http_album_query_ids('id'),'add', T_('Add to temporary playlist'),'play_full_' . $album->id); ?>
diff --git a/themes/classic/templates/default.css b/themes/classic/templates/default.css
index 0c266d47..4f2fcd57 100644
--- a/themes/classic/templates/default.css
+++ b/themes/classic/templates/default.css
@@ -552,15 +552,15 @@ a.button{padding:1px 3px;}
.external_links {
text-align: right;
- opacity: 0.3;
-}
-
-.external_links:hover {
- opacity: 1;
}
.external_links a {
margin: 0px 5px 0px 0px;
+ opacity: 0.3;
+}
+
+.external_links a:hover {
+ opacity: 1;
}
#artist_summary {
diff --git a/themes/fresh/templates/default.css b/themes/fresh/templates/default.css
index 81e479ed..2829d126 100644
--- a/themes/fresh/templates/default.css
+++ b/themes/fresh/templates/default.css
@@ -854,15 +854,15 @@ span.nodata {
.external_links {
text-align: right;
- opacity: 0.3;
-}
-
-.external_links:hover {
- opacity: 1;
}
.external_links a {
margin: 0px 5px 0px 0px;
+ opacity: 0.3;
+}
+
+.external_links a:hover {
+ opacity: 1;
}
#artist_summary {
diff --git a/themes/greysme/templates/default.css b/themes/greysme/templates/default.css
index 947f2773..fc5e2a81 100644
--- a/themes/greysme/templates/default.css
+++ b/themes/greysme/templates/default.css
@@ -565,15 +565,15 @@ input[type=checkbox] { border:0;background:none; }
.external_links {
text-align: right;
- opacity: 0.3;
-}
-
-.external_links:hover {
- opacity: 1;
}
.external_links a {
margin: 0px 5px 0px 0px;
+ opacity: 0.3;
+}
+
+.external_links a:hover {
+ opacity: 1;
}
#artist_summary {
diff --git a/themes/penguin/templates/default.css b/themes/penguin/templates/default.css
index 552f9be3..10756818 100644
--- a/themes/penguin/templates/default.css
+++ b/themes/penguin/templates/default.css
@@ -719,15 +719,15 @@ right: expression(-this.parentNode.offsetWidth%2+"px");
.external_links {
text-align: right;
- opacity: 0.3;
-}
-
-.external_links:hover {
- opacity: 1;
}
.external_links a {
margin: 0px 5px 0px 0px;
+ opacity: 0.3;
+}
+
+.external_links a:hover {
+ opacity: 1;
}
#artist_summary {
diff --git a/themes/reborn/templates/default.css b/themes/reborn/templates/default.css
index b4ba3b62..fa4818b5 100644
--- a/themes/reborn/templates/default.css
+++ b/themes/reborn/templates/default.css
@@ -1144,6 +1144,15 @@ div.box.box_rules {
width: 100%;
}
+.album_group_disks_title {
+ float: left;
+ margin-right: 30px;
+}
+
+.album_group_disks_actions {
+
+}
+
/***********************************************
Content (Tag cloud)
***********************************************/
@@ -1312,15 +1321,15 @@ span.fatalerror {
.external_links {
text-align: right;
- opacity: 0.3;
-}
-
-.external_links:hover {
- opacity: 1;
}
.external_links a {
- margin: 0px 5px 0px 0px
+ margin: 0px 5px 0px 0px;
+ opacity: 0.3;
+}
+
+.external_links a:hover {
+ opacity: 1;
}
#artist_summary {