From 81cb6da5c6f7db1fc38ce880be9a5512ac8f7f84 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Wed, 26 Jan 2011 16:40:23 -0400 Subject: [PATCH] Added download icon to pdf --- plugins/ShowStreamsInFieldSets.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/ShowStreamsInFieldSets.inc b/plugins/ShowStreamsInFieldSets.inc index d2108293..11b0cf36 100644 --- a/plugins/ShowStreamsInFieldSets.inc +++ b/plugins/ShowStreamsInFieldSets.inc @@ -57,6 +57,7 @@ class ShowStreamsInFieldSets { */ function showPDFPreview() { global $base_url; + global $base_path; global $user; module_load_include('inc', 'fedora_repository', 'api/fedora_item'); $tabset = array(); @@ -74,14 +75,15 @@ class ShowStreamsInFieldSets { ); $objectHelper = new ObjectHelper(); $item = new Fedora_Item($this->pid); - $dc_html = $objectHelper->getFormattedDC($item); + $dc_html = $objectHelper->getFormattedDC($item); + $dl_link = l('', '/fedora/repository/'.$this->pid.'/OBJ', array('html' => TRUE)); $ds_list = $objectHelper->getFormattedDatastreamList($this->pid, NULL, $item); $tabset['my_tabset']['first_tab']['tabset']['view'] = array( '#type' => 'tabpage', '#title' => t('View'), - '#content' => $dc_html . $ds_list, + '#content' => $dl_link . $dc_html . $ds_list, ); if (fedora_repository_access(OBJECTHELPER :: $EDIT_FEDORA_METADATA, $this->pid, $user)) {