Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nczirjak-acdh committed Nov 14, 2022
1 parent 5c4e5c0 commit 417dbf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/Object/ResourceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,9 @@ public function getAccessRestriction(): array
$result['title'] = $v->title;
} elseif (isset($v->value) && !empty($v->value)) {
$result['title'] = $v->value;
}

if (isset($v->accessrestriction) && !empty($v->accessrestriction)) {
}elseif (isset($v->accessrestriction) && !empty($v->accessrestriction)) {
$result['uri'] = $v->accessrestriction;
}
if (isset($v->vocabsid) && !empty($v->vocabsid)) {
}elseif (isset($v->vocabsid) && !empty($v->vocabsid)) {
$result['vocabsid'] = $v->vocabsid;
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/acdh-repo-gui-detail-versions-block.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% for key, value in result %}
{% set versionTxt = '' %}
<div class="pl-2 pb-1 arche-versions-row {{ value.actual }}">
<i class="material-icons" style="font-size:14px !important" >layers</i>&nbsp;<a href="/browser/oeaw_detail/{{ value.id }}">{{ versionTxt|trans }} {{ value.avdate|date('d MMM Y') }} &ndash; {{ value.version }}</a>
<i class="material-icons" style="font-size:14px !important" >layers</i>&nbsp;<a href="/browser/oeaw_detail/{{ value.id }}">{{ versionTxt|trans }} {{ value.avdate|date('d M Y') }} &ndash; {{ value.version }}</a>
</div>
{% endfor %}
</div>
Expand Down

0 comments on commit 417dbf1

Please sign in to comment.