aboutsummaryrefslogtreecommitdiff
path: root/templates/library
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:07:19 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:19:12 +0200
commita3da1483a9e689846179159355badfec8073dbec (patch)
tree770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /templates/library
current code from svn, revision 62608
Diffstat (limited to 'templates/library')
-rw-r--r--templates/library/library_document_info.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/library/library_document_info.php b/templates/library/library_document_info.php
new file mode 100644
index 0000000..80bff26
--- /dev/null
+++ b/templates/library/library_document_info.php
@@ -0,0 +1,47 @@
+<?
+$authors = $document->getAuthorNames();
+$issue_date = $document->getIssueDate(true);
+$identifiers = $document->getIdentifiers();
+$url = ($document->download_url ?: $document->document_url);
+$is_search = !$document->csl_data;
+?>
+<? if ($is_search) : ?>
+ <?
+ $description_fields = $document->getSearchDescription();
+ ?>
+ <h3><?= _('Suche in der Bibliothek') ?></h3>
+ <ul class="default">
+ <? foreach ($description_fields as $field) : ?>
+ <li><?= htmlReady($field) ?></li>
+ <? endforeach ?>
+ </ul>
+<? else : ?>
+ <? if ($format === 'full') : ?>
+ <dl>
+ <dt><?= _('Titel') ?></dt>
+ <dd><?= htmlReady($document->getTitle()) ?></dd>
+ <dt><?= _('Typ') ?></dt>
+ <dd><?= htmlReady($document->getType('display_name')) ?></dd>
+ <? if ($document->csl_data['issued'] || $document->csl_data['publisher']) : ?>
+ <dt><?= _('Veröffentlicht') ?></dt>
+ <dd><?= htmlReady($document->csl_data['publisher'] . ' ' . $document->getIssueDate(true)) ?></dd>
+ <? endif ?>
+ <? if (!empty($document->csl_data['medium'])) : ?>
+ <dt><?= _('Medium') ?></dt>
+ <dd><?= htmlReady($document->csl_data['medium']) ?></dd>
+ <? endif ?>
+ <? if ($document->csl_data['author']) : ?>
+ <dt><?= _('Erstellt von') ?></dt>
+ <dd><?= htmlReady($document->getAuthorNames()) ?></dd>
+ <? endif ?>
+ <? if ($document->catalog) : ?>
+ <dt><?= _('Katalog') ?></dt>
+ <? if ($document->opac_link) : ?>
+ <dd><a target="_blank" title="<?=_('Im OPAC anzeigen')?>" href="<?=$document->opac_link?>"><?= htmlReady($document->catalog) ?></a></dd>
+ <? else : ?>
+ <dd><?= htmlReady($document->catalog) ?></dd>
+ <? endif ?>
+ <? endif ?>
+ </dl>
+ <? endif ?>
+<? endif ?>