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
|
rm main.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## LISENCE
|
## LISENCE
|
||||||
The module is released under the [MIT] License.
|
The module is released under the [MIT] License.
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ class ArchiveSiteMetaFactory implements FactoryInterface
|
||||||
$services->get('FormElementManager'),
|
$services->get('FormElementManager'),
|
||||||
$services->get('Config')['DefaultSettings']['ArchiveSiteMetaBlockForm'],
|
$services->get('Config')['DefaultSettings']['ArchiveSiteMetaBlockForm'],
|
||||||
$settings->get('sitemeta_collections')
|
$settings->get('sitemeta_collections')
|
||||||
//$services->get('Omeka\SiteSettings'),
|
//$services->get('Config')['file_store']['local']['base_path'] ?: (OMEKA_PATH . '/files'),
|
||||||
//$services->get('Omeka\SiteSettings'),
|
//$services->get('Omeka\SiteSettings'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
||||||
public function __construct(FormElementManager $formElementManager,
|
public function __construct(FormElementManager $formElementManager,
|
||||||
array $defaultSettings,
|
array $defaultSettings,
|
||||||
string $sitemeta_collections
|
string $sitemeta_collections
|
||||||
|
//string $storage_dir
|
||||||
//ContainerInterface $site_settings
|
//ContainerInterface $site_settings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -43,6 +44,7 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
||||||
$this->formElementManager = $formElementManager;
|
$this->formElementManager = $formElementManager;
|
||||||
$this->defaultSettings = $defaultSettings;
|
$this->defaultSettings = $defaultSettings;
|
||||||
$this->sitemeta_collections = $sitemeta_collections;
|
$this->sitemeta_collections = $sitemeta_collections;
|
||||||
|
//$this->storage_dir = $storage_dir;
|
||||||
//$this->services = $services;
|
//$this->services = $services;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,12 +102,17 @@ class ArchiveSiteMeta extends AbstractBlockLayout
|
||||||
$site = null;
|
$site = null;
|
||||||
} else {
|
} else {
|
||||||
$site = $view->site;
|
$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', [
|
return $view->partial('common/block-layout/site-meta', [
|
||||||
'artist' =>$block->dataValue('currator'),
|
'artist' =>$block->dataValue('currator'),
|
||||||
'project_date' => $block->dataValue('project_date'),
|
'project_date' => $block->dataValue('project_date'),
|
||||||
'collection' => $block->dataValue('collection'),
|
'collection' => $block->dataValue('collection'),
|
||||||
'site' => $site,
|
'site' => $site,
|
||||||
|
'tech_document_link' => $tech_document_link
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,8 @@
|
||||||
<li>
|
<li>
|
||||||
<?= $collection ?>
|
<?= $collection ?>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $tech_document_link ?>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Reference in New Issue