forked from vufind-org/vufind
/
record.phtml
76 lines (69 loc) · 3.46 KB
/
record.phtml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
$this->layout()->breadcrumbs = false;
// TueFind: Add fix for tab reset bug which will be fixed in 9.0 by demiankatz
$this->layout()->searchClassId = 'SolrAuth';
$this->backgroundTabs = $this->BackgroundTabs ?? [];
$schemaOrgType = $this->authority()->getSchemaOrgType($this->driver);
// TueFind:
// - record.js is needed for AJAX tab logic
// - disabled, because we use the non-ajax-version.
// - see also "recordDocReady" at the bottom of this file.
//$this->headScript()->appendFile("record.js");
?>
<?php /* User Authority Access */ ?>
<?php if ($this->accountCapabilities()->getRequestAuthorityRightsSetting() === 'enabled') :?>
<?=$this->context($this)->renderInContext('Related/AuthorityAccess', ['driver' => $this->driver]); ?>
<?php endif; ?>
<?php /* Record details */ ?>
<div vocab="http://schema.org/" typeof="<?=$schemaOrgType?>">
<h3><?=$this->authority()->getName($this->driver)?></h3>
<?php if ($this->driver->isName()): ?>
<p><?=$this->transEsc('authority_note_name_record')?></p>
<?php endif; ?>
<div class="container">
<?php
/*
The CSS Here has been optimized for normal & responsive behaviour.
Please test very carefully when changing!
Also note that some classes will be changed via tuefind.js
after the dynamic contents (images, BEACON, etc.) has been loaded!
*/
?>
<div class="row">
<div class="col-md-12 row">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3 pull-right tf-d-none">
<?php if ($this->driver->getType() == 'person' && !$this->driver->isFamily()): ?>
<?=$this->context($this)->renderInContext('authority/record/image', ['driver' => $this->driver])?>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-12 col-md-auto col-lg-auto pull-left">
<?=$this->context($this)->renderInContext('authority/record/details', ['driver' => $this->driver])?>
</div>
</div>
<div class="col-md-12 row">
<?php
/*
Note: Until 2024 the following contents was split into 2 columns => authority/record/beacon was shown on the right side.
After that it got disabled because the external "findbuch" service is no longer available,
so for now we also go back to a single column layout to save some space.
*/
?>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<?=$this->context($this)->renderInContext('Related/AuthorityTitlesBy', ['driver' => $this->driver])?>
<?=$this->context($this)->renderInContext('Related/AuthorityTitlesAbout', ['driver' => $this->driver])?>
<?=$this->context($this)->renderInContext('Related/AuthorityAuthors', ['driver' => $this->driver])?>
<!-- Graphs -->
<?=$this->context($this)->renderInContext('Related/AuthorityTopics', ['driver' => $this->driver])?>
<?=$this->context($this)->renderInContext('Related/AuthorityTimeline', ['driver' => $this->driver])?>
<?=$this->context($this)->renderInContext('authority/record/tabs', ['driver' => $this->driver])?>
</div>
</div>
</div>
</div>
<?php
// TueFind:
// - recordDocReady is needed for AJAX tab logic
// - disabled, because we use the non-ajax-version.
// - see also "record.js" at the top of this file.
// print $this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, '$(document).ready(recordDocReady);', 'SET');
?>