Browse Source

Implemented changes requested via code review.

pull/371/head
MorganDawe 12 years ago
parent
commit
5ec2045e15
  1. 2
      css/islandora.print.css
  2. 23
      islandora.api.php
  3. 2
      theme/islandora-object-img-print.tpl.php
  4. 2
      theme/islandora-object-print.tpl.php

2
css/islandora.print.css

@ -2,7 +2,7 @@
* @file
* Print styling
*
* We provide some sane print styling for Drupal using Zen's layout method.
* We provide some sane print styling for Drupal, hiding most visuals.
*/
a:link,
a:visited { /* underline all links */

23
islandora.api.php

@ -21,9 +21,26 @@
* An array whose values are markup.
*/
function hook_islandora_view_object($object, $user, $page_number, $page_size) {
}
/**
* An alter hook to print friendly page for the given object.
// Example Implementation
// $islandora_object = islandora_object_load($object->id);
// $output = array();
// if (in_array('islandora:sp_basic_image', $islandora_object->models)) {
// $resource_url = url("islandora/object/{$object->id}/datastream/OBJ/view");
// $params = array(
// 'title' => $islandora_object->label,
// 'path' => $resource_url,
// );
// // Theme the image seperatly.
// $variables['islandora_img'] = theme('image', $params);
// $output = theme('islandora_default_print', array(
// 'islandora_content' => $variables['islandora_img']));
// }
// return $output;
}
/**
* Generate a print friendly page for the given object.
*
* @param object $object
* The object form to print.

2
theme/islandora-object-img-print.tpl.php

@ -15,4 +15,4 @@
<div>
<?php print $islandora_content; ?>
</div>
<?php endif; ?>
<?php endif; ?>

2
theme/islandora-object-print.tpl.php

@ -27,4 +27,4 @@
</dl>
</div>
</fieldset>
</div>
</div>

Loading…
Cancel
Save