diff --git a/islandora.module b/islandora.module index 7d2c0acb..36c43313 100644 --- a/islandora.module +++ b/islandora.module @@ -802,7 +802,7 @@ function islandora_view_object(AbstractObject $object) { drupal_add_js(array( 'islandora' => array( - 'print_link' => '/islandora/object/' . $object->id . '/print')), + 'print_link' => 'islandora/object/' . $object->id . '/print')), array('type' => 'setting')); drupal_add_js($path . '/js/add_print.js'); diff --git a/js/add_print.js b/js/add_print.js index 7af5c3ca..0059ed88 100644 --- a/js/add_print.js +++ b/js/add_print.js @@ -8,11 +8,11 @@ */ (function ($) { $(document).ready(function() { - $('.tabs .primary').append(''); + $('.tabs .primary').append(''); $('#print_btn').css("cursor","pointer"); $('#print_btn').click(function() { - window.location=Drupal.settings.islandora.print_link; + window.location=Drupal.settings.basePath + Drupal.settings.islandora.print_link; }); }); -})(jQuery); - +})(jQuery); +