fix: use attribute for excerpts names
This commit is contained in:
parent
258590dc24
commit
6f7f5e3dd3
2 changed files with 4 additions and 4 deletions
|
@ -173,8 +173,8 @@
|
|||
iframeDoc.getElementById('newCompilationLabel').value = compilationName;
|
||||
var excerpts = $('.compilationDraftExcerpt').toArray();
|
||||
for (i = 0;i < excerpts.length;i++){
|
||||
var excerptUri = excerpts[i].getAttribute('parturi');
|
||||
var excerptName = $(excerpts[i]).children('button').html();
|
||||
var excerptUri = excerpts[i].getAttribute('partUri');
|
||||
var excerptName = excerpts[i].getAttribute('partName');
|
||||
var number = i + 1;
|
||||
iframeDoc.getElementById("tocLevel" + number + "Name").value = excerptName + " (" + compilationName + ")";
|
||||
iframeDoc.getElementById("tocItem" + number + "Name").value = excerptName + " (" + compilationName + ")";
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
<#import "lib-vivo-properties.ftl" as p>
|
||||
|
||||
<#-- <@dumpAll /> -->
|
||||
<div class="virtualArticlePart compilationDraftExcerpt" partUri="${individual.uri}" style="display:none;">
|
||||
<#list excerptInfo as excerptProperties>
|
||||
<#if excerptProperties.property == "https://litvinovg.pro/text_structures#htmlExcerpt">
|
||||
<#assign excerptText = excerptProperties.value >
|
||||
|
@ -17,6 +16,7 @@
|
|||
</#if>
|
||||
</#list>
|
||||
<#if excerptText?? && excerptTextName?? && excerptTextName?has_content && excerptText?has_content>
|
||||
<div class="virtualArticlePart compilationDraftExcerpt" partUri="${individual.uri}" partName="${excerptTextName}" style="display:none;">
|
||||
<button type="button" style="border:none;width: 100%; text-align:left;" class="collapsible">${excerptTextName}</button>
|
||||
<div class="htmlExcerpt" style="list-style:none; display:none;">
|
||||
${excerptText}
|
||||
|
@ -38,8 +38,8 @@
|
|||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
<div class="searchResult">
|
||||
<a href="${individual.profileUrl}" title="${i18n().individual_name}">${individual.name}</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue