Commit 02447a28 authored by Nugraha, Sigit's avatar Nugraha, Sigit
Browse files

Fix Study preview for category, topics, and period if they are empty

parent de6d0682
Pipeline #15366 passed with stage
in 1 minute and 37 seconds
......@@ -37,7 +37,7 @@
<!-- <span th:text="${q.collectionEnd}"></span>-->
<!-- </td>-->
<!-- </tr>-->
<tr th:if="${q.period != null and q.period != ''}">
<tr th:if="${q.period != null and q.period != '' and #strings.length(q.period) > 3}">
<td>Periode der Erhebungsdatum</td>
<td>
<span th:text="${q.period}"></span>
......@@ -49,13 +49,13 @@
<span th:text="${q.publisher}"></span>
</td>
</tr>
<tr th:if="${q.categories != null and q.categories != ''}">
<tr th:if="${q.categories != null and q.categories != '' and #strings.length(q.categories) > 20}">
<td><div title="ZA-Kategorienschema">Kategorien</div></td>
<td>
<span style="white-space:pre-line" th:utext="${q.categories}"></span>
</td>
</tr>
<tr th:if="${q.topics != null and q.topics != ''}">
<tr th:if="${q.topics != null and q.topics != '' and #strings.length(q.topics) > 20}">
<td><div title="CESSDA Topic Classification">Topics</div></td>
<td>
<span style="white-space:pre-line" th:utext="${q.topics}"></span>
......
......@@ -37,7 +37,7 @@
<!-- <span th:text="${q.collectionEnd}"></span>-->
<!-- </td>-->
<!-- </tr>-->
<tr th:if="${q.period != null and q.period != ''}">
<tr th:if="${q.period != null and q.period != '' and #strings.length(q.period) > 3}">
<td>Study period</td>
<td>
<span th:text="${q.period}"></span>
......@@ -49,13 +49,13 @@
<span th:text="${q.publisher}"></span>
</td>
</tr>
<tr th:if="${q.categories != null and q.categories != ''}">
<tr th:if="${q.categories != null and q.categories != '' and #strings.length(q.categories) > 20}">
<td><div title="ZA-Kategorienschema">Categories</div></td>
<td>
<span style="white-space:pre-line" th:utext="${q.categories}"></span>
</td>
</tr>
<tr th:if="${q.topics != null and q.topics != ''}">
<tr th:if="${q.topics != null and q.topics != '' and #strings.length(q.topics) > 20}">
<td><div title="CESSDA Topic Classification">Topics</div></td>
<td>
<span style="white-space:pre-line" th:utext="${q.topics}"></span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment