Browse Source

Implemented changes requested via code review.

pull/371/head
MorganDawe 11 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 * @file
* Print styling * 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:link,
a:visited { /* underline all links */ a:visited { /* underline all links */

23
islandora.api.php

@ -21,9 +21,26 @@
* An array whose values are markup. * An array whose values are markup.
*/ */
function hook_islandora_view_object($object, $user, $page_number, $page_size) { function hook_islandora_view_object($object, $user, $page_number, $page_size) {
} // Example Implementation
/** // $islandora_object = islandora_object_load($object->id);
* An alter hook to print friendly page for the given object. // $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 * @param object $object
* The object form to print. * The object form to print.

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

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

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

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

Loading…
Cancel
Save