aboutsummaryrefslogtreecommitdiff
path: root/templates/library/library_document_info.php
blob: 80bff26d389264497f689c581e4677dccee9b55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 ?>