Browse Source

ISLANDORA-1781 display that an object is not active.

pull/676/head
Rosie Le Faive 8 years ago
parent
commit
82fb0dc6e2
  1. 4
      islandora.module

4
islandora.module

@ -1024,6 +1024,10 @@ function islandora_view_object(AbstractObject $object) {
module_load_include('inc', 'islandora', 'includes/breadcrumb');
module_load_include('inc', 'islandora', 'includes/utilities');
// Warn if object is unpublished
if ($object->state != 'A') {
drupal_set_message(t('This object is not active. Metadata may not display correctly.'), 'warning');
}
// Optional pager parameters.
$page_number = (empty($_GET['page'])) ? '1' : $_GET['page'];
$page_size = (empty($_GET['pagesize'])) ? '10' : $_GET['pagesize'];

Loading…
Cancel
Save