adds Technical document download link to site meta list
This commit is contained in:
parent
9f70b7b21e
commit
cb209b8737
|
@ -12,6 +12,7 @@ mv imageviewer/ ArchiveSiteMeta
|
|||
rm main.zip
|
||||
```
|
||||
|
||||
|
||||
## LISENCE
|
||||
The module is released under the [MIT] License.
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class ArchiveSiteMetaFactory implements FactoryInterface
|
|||
$services->get('FormElementManager'),
|
||||
$services->get('Config')['DefaultSettings']['ArchiveSiteMetaBlockForm'],
|
||||
$settings->get('sitemeta_collections')
|
||||
//$services->get('Omeka\SiteSettings'),
|
||||
//$services->get('Config')['file_store']['local']['base_path'] ?: (OMEKA_PATH . '/files'),
|
||||
//$services->get('Omeka\SiteSettings'),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
|||
public function __construct(FormElementManager $formElementManager,
|
||||
array $defaultSettings,
|
||||
string $sitemeta_collections
|
||||
//string $storage_dir
|
||||
//ContainerInterface $site_settings
|
||||
)
|
||||
|
||||
|
@ -43,6 +44,7 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
|||
$this->formElementManager = $formElementManager;
|
||||
$this->defaultSettings = $defaultSettings;
|
||||
$this->sitemeta_collections = $sitemeta_collections;
|
||||
//$this->storage_dir = $storage_dir;
|
||||
//$this->services = $services;
|
||||
}
|
||||
|
||||
|
@ -100,12 +102,17 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
|||
$site = null;
|
||||
} else {
|
||||
$site = $view->site;
|
||||
//$tech_document_link = '<a href="'.$site->siteUrl().'/asset/'.$site->title().'.pdf'.'">Technical documentation</a>';
|
||||
$tech_document_link = '<a href="/files/docs/'.$site->title().'.pdf'.'">Technical documentation</a>';
|
||||
}
|
||||
//$this->storage_dir = $storage_dir;
|
||||
//$mpdf->Output($this->storage_dir.'/asset/'.$site_title.'.pdf', \Mpdf\Output\Destination::FILE);
|
||||
return $view->partial('common/block-layout/site-meta', [
|
||||
'artist' =>$block->dataValue('currator'),
|
||||
'project_date' => $block->dataValue('project_date'),
|
||||
'collection' => $block->dataValue('collection'),
|
||||
'site' => $site,
|
||||
'tech_document_link' => $tech_document_link
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,5 +10,8 @@
|
|||
<li>
|
||||
<?= $collection ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $tech_document_link ?>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in New Issue