Bug 8296: Follow-up - don't display publisheddate when publisheddatetext is empty
To test: - make sure you have a subscription where only some fields have a published date (text) set - check the subscription detail page, issues tab - check the serial collection page - both pages should show an empty field, when published date (text) has not been set Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
12aa9f676b
commit
315082d8d4
2 changed files with 6 additions and 11 deletions
|
@ -253,16 +253,11 @@ $(document).ready(function() {
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
[% publisheddatetext = serial.publisheddatetext || serial.publisheddate %]
|
[% IF serial.publisheddatetext %]
|
||||||
<span title="[% publisheddatetext %]">
|
<span title="[% serial.publisheddatetext %]">
|
||||||
[% IF serial.publisheddatetext %]
|
[% serial.publisheddatetext %]
|
||||||
[% publisheddatetext %]
|
</span>
|
||||||
[% ELSIF serial.publisheddate %]
|
[% END %]
|
||||||
[% serial.publisheddate | $KohaDates %]
|
|
||||||
[% ELSE %]
|
|
||||||
Unknown
|
|
||||||
[% END %]
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span title="[% serial.planneddate %]">
|
<span title="[% serial.planneddate %]">
|
||||||
|
|
|
@ -297,7 +297,7 @@ $(document).ready(function() {
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
[% serialslis.publisheddatetext || serialslis.publisheddate %]
|
[% serialslis.publisheddatetext %]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
[% IF ( serialslis.status1 ) %]Expected[% END %]
|
[% IF ( serialslis.status1 ) %]Expected[% END %]
|
||||||
|
|
Loading…
Reference in a new issue