Bug 41010: Adjust show_priority condition in opac-detail

We had
[% IF item_level_holds > 0 || show_priority %]
[% ELSIF show_priority %]

We never reach ELSIF.

I am not sure what's the correct fix here. People involved on bug 39276
should help.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5d770843f3)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-10-14 10:15:12 +02:00 committed by Paul Derscheid
parent 251f394413
commit 25f9243304
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 2 deletions

View File

@ -1527,7 +1527,7 @@
<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
[% END %]
[% IF item_level_holds > 0 || show_priority %]
[% IF item_level_holds > 0 %]
<td class="holds_count">
[% IF holds_count.defined %][% ITEM_RESULT.holds_count | html %][% END %]
[% IF ITEM_RESULT.priority %]
@ -1539,7 +1539,7 @@
[% END %]
</td>
[% ELSIF show_priority %]
<td class="holds_priority">[% priority | html %] </td>
<td class="holds_priority">[% priority | html %]</td>
[% END %]
[% IF ShowCourseReservesHeader %]