diff --git a/README.md b/README.md index 1ff6219..a5a0c1b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ mv imageviewer/ ArchiveSiteMeta rm main.zip ``` + ## LISENCE The module is released under the [MIT] License. diff --git a/src/Service/BlockLayout/ArchiveSiteMetaFactory.php b/src/Service/BlockLayout/ArchiveSiteMetaFactory.php index c00c822..92f8ac1 100644 --- a/src/Service/BlockLayout/ArchiveSiteMetaFactory.php +++ b/src/Service/BlockLayout/ArchiveSiteMetaFactory.php @@ -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'), ); } diff --git a/src/Site/BlockLayout/ArchiveSiteMeta.php b/src/Site/BlockLayout/ArchiveSiteMeta.php index b551db4..fcdf20b 100644 --- a/src/Site/BlockLayout/ArchiveSiteMeta.php +++ b/src/Site/BlockLayout/ArchiveSiteMeta.php @@ -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 = 'Technical documentation'; + $tech_document_link = 'Technical documentation'; } + //$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 ]); } } diff --git a/view/common/block-layout/site-meta.phtml b/view/common/block-layout/site-meta.phtml index 6f67422..5c36b8c 100644 --- a/view/common/block-layout/site-meta.phtml +++ b/view/common/block-layout/site-meta.phtml @@ -10,5 +10,8 @@
  • +
  • + +