summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/controllers/media_ctrl.php2
-rw-r--r--includes/controllers/note_ctrl.php2
-rw-r--r--includes/controllers/source_ctrl.php2
-rw-r--r--includes/functions/functions_print_lists.php87
4 files changed, 47 insertions, 46 deletions
diff --git a/includes/controllers/media_ctrl.php b/includes/controllers/media_ctrl.php
index 8eac30f987..7d6feb408b 100644
--- a/includes/controllers/media_ctrl.php
+++ b/includes/controllers/media_ctrl.php
@@ -163,7 +163,7 @@ class MediaController extends BaseController{
*/
function getPageTitle() {
if ($this->mediaobject) {
- return $this->mediaobject->getFullName()." - ".$this->mediaobject->getXref();
+ return $this->mediaobject->getFullName()." - ".i18n::translate('Multimedia Information');
} else {
return i18n::translate('Unable to find record with ID');
}
diff --git a/includes/controllers/note_ctrl.php b/includes/controllers/note_ctrl.php
index bf3c8d923f..33c1a45436 100644
--- a/includes/controllers/note_ctrl.php
+++ b/includes/controllers/note_ctrl.php
@@ -141,7 +141,7 @@ class NoteController extends BaseController {
*/
function getPageTitle() {
if ($this->note) {
- return $this->note->getFullName()." - ".$this->nid." - ".i18n::translate('Shared Note Information');
+ return $this->note->getFullName()." - ".i18n::translate('Shared Note Information');
} else {
return i18n::translate('Unable to find record with ID');
}
diff --git a/includes/controllers/source_ctrl.php b/includes/controllers/source_ctrl.php
index a100a997dc..93f32b05fd 100644
--- a/includes/controllers/source_ctrl.php
+++ b/includes/controllers/source_ctrl.php
@@ -141,7 +141,7 @@ class SourceController extends BaseController {
*/
function getPageTitle() {
if ($this->source) {
- return $this->source->getFullName()." - ".$this->sid." - ".i18n::translate('Source Information');
+ return $this->source->getFullName()." - ".i18n::translate('Source Information');
} else {
return i18n::translate('Unable to find record with ID');
}
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php
index d7ca1cf39a..1f64445957 100644
--- a/includes/functions/functions_print_lists.php
+++ b/includes/functions/functions_print_lists.php
@@ -1068,53 +1068,54 @@ function print_media_table($datalist, $legend="") {
if (is_null($media)) $media = Media::getInstance($key);
if (is_null($media)) continue;
}
- //-- Counter
- echo "<tr>";
- echo "<td class=\"list_value_wrap rela list_item\">", ++$n, "</td>";
- //-- Object name(s)
- $name = $media->getFullName();
- echo "<td class=\"list_value_wrap\" align=\"", get_align($name), "\">";
- echo "<a href=\"", $media->getHtmlUrl(), "\" class=\"list_item name2\">";
- if ($media->canDisplayDetails())
+ if ($media->canDisplayDetails()) {
+ //-- Counter
+ echo "<tr>";
+ echo "<td class=\"list_value_wrap rela list_item\">", ++$n, "</td>";
+ //-- Object name(s)
+ $name = $media->getFullName();
+ echo "<td class=\"list_value_wrap\" align=\"", get_align($name), "\">";
+ echo "<a href=\"", $media->getHtmlUrl(), "\" class=\"list_item name2\">";
echo '<img src=', thumbnail_file($media->file, false), ' height="15" /> ';
- echo PrintReady($name), "</a>";
- if ($SHOW_MEDIA_FILENAME || WT_USER_IS_ADMIN)
- echo "<br /><a href=\"", $media->getHtmlUrl(), "\">", basename($media->file), "</a>";
- //echo "<br />", $media->getFiletype();
- //echo "&nbsp;&nbsp;", $media->width, "x", $media->height;
- //echo "&nbsp;&nbsp;", $media->getFilesize(), "kB";
- if ($media->getNote()) echo "<br />", print_fact_notes("1 NOTE ".$media->getNote(), 1);
- echo "</td>";
+ echo PrintReady($name), "</a>";
+ if ($SHOW_MEDIA_FILENAME || WT_USER_IS_ADMIN)
+ echo "<br /><a href=\"", $media->getHtmlUrl(), "\">", basename($media->file), "</a>";
+ //echo "<br />", $media->getFiletype();
+ //echo "&nbsp;&nbsp;", $media->width, "x", $media->height;
+ //echo "&nbsp;&nbsp;", $media->getFilesize(), "kB";
+ if ($media->getNote()) echo "<br />", print_fact_notes("1 NOTE ".$media->getNote(), 1);
+ echo "</td>";
- //-- Linked INDIs
- $tmp=$media->countLinkedIndividuals();
- echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>';
- //-- Linked FAMs
- $tmp=$media->countLinkedfamilies();
- echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>';
- //-- Linked SOURces
- $tmp=$media->countLinkedSources();
- echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>';
-/*
- //-- Linked records
- foreach (array("INDI", "FAM", "SOUR") as $rectype) {
- $resu = array();
- foreach ($value["LINKS"] as $k=>$v) {
- if ($v!=$rectype) continue;
- $record = GedcomRecord::getInstance($k);
- $txt = $record->getListName();
- $resu[] = $txt;
+ //-- Linked INDIs
+ $tmp=$media->countLinkedIndividuals();
+ echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>';
+ //-- Linked FAMs
+ $tmp=$media->countLinkedfamilies();
+ echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>';
+ //-- Linked SOURces
+ $tmp=$media->countLinkedSources();
+ echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>';
+ /*
+ //-- Linked records
+ foreach (array("INDI", "FAM", "SOUR") as $rectype) {
+ $resu = array();
+ foreach ($value["LINKS"] as $k=>$v) {
+ if ($v!=$rectype) continue;
+ $record = GedcomRecord::getInstance($k);
+ $txt = $record->getListName();
+ $resu[] = $txt;
+ }
+ sort($resu);
+ echo "<td class=\"list_value_wrap\" align=\"", get_align(@$resu[0]), "\">";
+ foreach ($resu as $txt) echo "<a href=\"", $record->getHtmlUrl(), "\" class=\"list_item\">", PrintReady("&bull; ".$txt), "</a><br />";
+ echo "</td>";
}
- sort($resu);
- echo "<td class=\"list_value_wrap\" align=\"", get_align(@$resu[0]), "\">";
- foreach ($resu as $txt) echo "<a href=\"", $record->getHtmlUrl(), "\" class=\"list_item\">", PrintReady("&bull; ".$txt), "</a><br />";
- echo "</td>";
+ */
+ //-- Last change
+ if ($SHOW_LAST_CHANGE)
+ echo "<td class=\"list_value_wrap rela\">".$media->LastChangeTimestamp(empty($SEARCH_SPIDER))."</td>";
+ echo "</tr>";
}
-*/
- //-- Last change
- if ($SHOW_LAST_CHANGE)
- echo "<td class=\"list_value_wrap rela\">".$media->LastChangeTimestamp(empty($SEARCH_SPIDER))."</td>";
- echo "</tr>";
}
echo "</table>";
echo "</fieldset>";