Skip to content

Commit 95d725c

Browse files
committed
contentnote not displayed in browse until data update
1 parent 71f6bfa commit 95d725c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎dev-browse.html‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ <h2>Browse Manuscripts</h2>
340340
${item.extent ? `| ${formatValue(item.extent, 'extent')} ` : ''}
341341
</p>
342342
${item.classification ? `Classification: ${formatValue(item.classification, 'classification')}` : ''}
343-
<p><span>Content: ${displayContentNote}</span>${truncatedNote ? `... <a href="#" class="show-more" data-index="${index}" data-full="${item.contentsNote}">...</a>` : ''}</p>
344343
<p><span>Title: ${displayItemTitle}</span>${trucatedItemTitle ? `... <a href="#" class="show-more" data-index="${index}" data-full="${item.msItemTitle}">...</a>` : ''}</p>
345-
346344
<p id="content-${index}"><span class="syriac tei-quote" lang="syr">Syriac Content: ${displayContent}</span>${truncated ? `... <a href="#" class="show-more" data-index="${index}" data-full="${contentSummary}">...</a>` : ''}</p>
347345
</div>
348346
`}).join('');

‎resources/js/search.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function displayResults(results, page = 1, perPage = 20) {
100100
const displayContent = truncated ? contentSummary.substring(0, 500) : contentSummary;
101101

102102
const msUrl = item.id ? `${BASE_URL}/ms/${item.id.replace('ms-', '')}.html` : '#';
103+
if (item.partNum){msUrl += `#msPart${item.partNum}`;}
103104

104105
return `
105106
<div class="result-item" style="padding:15px; border:1px solid #ddd; margin-bottom:10px; border-radius:5px;">
@@ -108,7 +109,7 @@ function displayResults(results, page = 1, perPage = 20) {
108109
${item.wrightNum ? ` [Wright ${formatValue(item.wrightNum, 'wrightNum')} ]` : ''}
109110
110111
</p>
111-
<p>URI: <a href="${msUrl}" target="_blank">${msUrl}</a></p>
112+
<p>URI: <a href="${msUrl}" target="_blank">${item.idno}</a></p>
112113
<p>${item.origDate ? `${formatValue(item.origDate, 'origDate')}` : ''}${item.origPlace ? ` | ${formatValue(item.origPlace, 'origPlace')}` : ''}</p>
113114
<p class="text-muted">
114115
${item.scriptLanguage ? `Script: ${item.scriptLanguage} ` : ''}

0 commit comments

Comments
 (0)