Skip to content

Commit

Permalink
#20354 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nczirjak-acdh committed Jul 6, 2022
1 parent 17a4e02 commit 01559ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions js/acdh_repo_gui_detail_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,33 +280,35 @@ jQuery(function ($) {
}

function gethasActorData() {
$('#values-by-property-and-id-table').DataTable({
if($('#insideUri').val()) {
$('#values-by-property-and-id-table').DataTable({
"paging": true,
"searching": true,
"pageLength": 10,
"processing": true,
"serverSide": true,
"serverMethod": "post",
"fixedColumns": true,
"ajax": "/browser/api/getHasActors/" + $('#insideUri').val()+"/en",
'columns': [
{data: 'title'}

{data: 'title'},
{data: 'property'}
]
});
}
}

$(document).ready(function () {
/** add hasTitle value for the document title in every detail view **/
reloadAjaxDivs();
gethasActorData();

showVersionsAlert();

/**
* If we are inside the oeaw_detail view, then we will just update the mainpagecontent div
*/
if (window.location.href.indexOf("browser/oeaw_detail/") >= 0) {


showVersionsAlert();
$(document).delegate("a#archeHref", "click", function (e) {
var reloadTable = false;
$(".loader-div").show();
Expand Down
8 changes: 4 additions & 4 deletions templates/acdh-repo-gui-detail-expert-view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@
<!-- PERSON HASActor -->
{% if basic.getAcdhType()|lower == 'person' %}
<div id="hasactor-person-div">
<h3 class="single-res-heading">{{ "Mentioned"|trans }}</h3>

<table id="values-by-property-and-id-table" class="table table-striped" cellspacing="0" width="100%">
<thead>
<h3 class="single-res-heading">{{ "Mentioned in"|trans }}</h3>
<table id="values-by-property-and-id-table" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>{{ "Title"|trans }}</th>
<th>{{ "Type"|trans }}</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 01559ce

Please sign in to comment.