Bug 35994: (follow-up) Add class for customization

Also wraps statuses into b instead of the SWITCH statement,
which should hopefully help to make translation a little nicer.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-05-10 14:33:29 +00:00
parent 391aeaa9a8
commit f30293fcc1
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 7 additions and 7 deletions

View File

@ -39,14 +39,14 @@
</head>
[% BLOCK acq_status %]
<span title="The status 'Unlinked' means: no linked orders. Cancelled means that all orders are cancelled. Processing implies any active or new order lines. Status 'Acquired' implies any completely received lines (with remaining lines cancelled)."><b>
<span title="The status 'Unlinked' means: no linked orders. Cancelled means that all orders are cancelled. Processing implies any active or new order lines. Status 'acquired' implies any completely received lines (with remaining lines cancelled).">
[% SWITCH myvar %]
[% CASE 'unlinked' %]Unlinked
[% CASE 'acquired' %]Acquired
[% CASE 'processing' %]Processing
[% CASE 'cancelled' %]Cancelled
[% CASE 'unlinked' %]<b>Unlinked</b>
[% CASE 'acquired' %]<b>Acquired</b>
[% CASE 'processing' %]<b>Processing</b>
[% CASE 'cancelled' %]<b>Cancelled</b>
[% END %]
</b></span>
</span>
[% END %]
<body id="catalog_detail" class="catalog">
@ -493,7 +493,7 @@
[% IF Koha.Preference('AcquisitionDetails') %]
<div role="tabpanel" class="tab-pane" id="acq_details">
<p>This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %]
<p class="acqstatus_[% acq_status | html %]">This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %]
</p>
[% IF orders.count %]
<table id="orders">