Bug 29602: (follow-up) Fix TT tags broken due to missing %

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Victor Grousset 2022-02-04 23:38:13 +01:00 committed by Fridolin Somers
parent 6e7153a572
commit 9b919ed124
13 changed files with 127 additions and 127 deletions

View file

@ -338,9 +338,9 @@
<li>
<span class="label">Create items when:</span>
[% SWITCH basket.create_items %]
[% CASE 'receiving' ]<span>Receiving items</span>
[% CASE 'cataloguing' ]<span>Cataloguing items</span>
[% CASE ]<span>Placing orders</span>
[% CASE 'receiving' %]<span>Receiving items</span>
[% CASE 'cataloguing' %]<span>Cataloguing items</span>
[% CASE %]<span>Placing orders</span>
[% END %]
</li>
[% END %]

View file

@ -18,13 +18,13 @@
[% BLOCK norms_text %]
[% SWITCH norm %]
[% CASE 'none' ]<span>None</span>
[% CASE 'remove_spaces' ]<span>Remove spaces</span>
[% CASE 'upper_case' ]<span>Uppercase</span>
[% CASE 'lower_case' ]<span>Lowercase</span>
[% CASE 'legacy_default' ]<span>Legacy default</span>
[% CASE 'ISBN' ]<span>ISBN</span>
[% CASE ]<span>[% norm | html %]</span>
[% CASE 'none' %]<span>None</span>
[% CASE 'remove_spaces' %]<span>Remove spaces</span>
[% CASE 'upper_case' %]<span>Uppercase</span>
[% CASE 'lower_case' %]<span>Lowercase</span>
[% CASE 'legacy_default' %]<span>Legacy default</span>
[% CASE 'ISBN' %]<span>ISBN</span>
[% CASE %]<span>[% norm | html %]</span>
[% END %]
[% END %]

View file

@ -827,11 +827,11 @@ Note that permanent location is a code, and location may be an authval.
<td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</td>
<td>
[% SWITCH order.orderstatus %]
[% CASE 'new' ]<span>New</span>
[% CASE 'ordered' ]<span>Ordered</span>
[% CASE 'partial' ]<span>Partial</span>
[% CASE 'complete' ]<span>Complete</span>
[% CASE 'cancelled' ]<span>Cancelled</span>
[% CASE 'new' %]<span>New</span>
[% CASE 'ordered' %]<span>Ordered</span>
[% CASE 'partial' %]<span>Partial</span>
[% CASE 'complete' %]<span>Complete</span>
[% CASE 'cancelled' %]<span>Cancelled</span>
[% END %]
</td>
<td>[% order.quantity | html %]</td>

View file

@ -125,16 +125,16 @@
<h3>Reason for transfer</h3>
<p>
[%- SWITCH trigger -%]
[%- CASE 'Manual' -]<span>Manual</span>
[%- CASE 'StockrotationAdvance' -]<span>Stock rotation advance</span>
[%- CASE 'StockrotationRepatriation' -]<span>Stock rotation repatriation</span>
[%- CASE 'ReturnToHome' -]<span>Return to home library</span>
[%- CASE 'ReturnToHolding' -]<span>Return to holding library</span>
[%- CASE 'RotatingCollection' -]<span>Rotating collection</span>
[%- CASE 'Reserve' -]<span>Reserve</span>
[%- CASE 'LostReserve' -]<span>Lost reserve</span>
[%- CASE 'CancelReserve' -]<span>Cancelled reserve</span>
[%- CASE 'TransferCancellation' -]<span>Transfer was cancelled whilst in transit</span>
[%- CASE 'Manual' -%]<span>Manual</span>
[%- CASE 'StockrotationAdvance' -%]<span>Stock rotation advance</span>
[%- CASE 'StockrotationRepatriation' -%]<span>Stock rotation repatriation</span>
[%- CASE 'ReturnToHome' -%]<span>Return to home library</span>
[%- CASE 'ReturnToHolding' -%]<span>Return to holding library</span>
[%- CASE 'RotatingCollection' -%]<span>Rotating collection</span>
[%- CASE 'Reserve' -%]<span>Reserve</span>
[%- CASE 'LostReserve' -%]<span>Lost reserve</span>
[%- CASE 'CancelReserve' -%]<span>Cancelled reserve</span>
[%- CASE 'TransferCancellation' -%]<span>Transfer was cancelled whilst in transit</span>
[%- END -%]
</p>
</div>

View file

@ -2,11 +2,11 @@
[% SET footerjs = 1 %]
[%- BLOCK translate_label_types -%]
[%- SWITCH type -%]
[%- CASE 'BIB' -]<span> Only the bibliographic data is printed</span>
[%- CASE 'BARBIB'-]<span> Barcode proceeds bibliographic data</span>
[%- CASE 'BIBBAR'-]<span> Bibliographic data proceeds barcode</span>
[%- CASE 'ALT' -]<span> Barcode and bibliographic data are printed on alternating labels</span>
[%- CASE 'BAR' -]<span> Only the barcode is printed</span>
[%- CASE 'BIB' -%]<span> Only the bibliographic data is printed</span>
[%- CASE 'BARBIB'-%]<span> Barcode proceeds bibliographic data</span>
[%- CASE 'BIBBAR'-%]<span> Bibliographic data proceeds barcode</span>
[%- CASE 'ALT' -%]<span> Barcode and bibliographic data are printed on alternating labels</span>
[%- CASE 'BAR' -%]<span> Only the barcode is printed</span>
[%- END -%]
[%- END -%]
[% INCLUDE 'doc-head-open.inc' %]
@ -16,9 +16,9 @@
[% BLOCK translate_justification_types %]
[% SWITCH type %]
[% CASE 'L' ]<span>Left</span>
[% CASE 'C' ]<span>Center</span>
[% CASE 'R' ]<span>Right</span>
[% CASE 'L' %]<span>Left</span>
[% CASE 'C' %]<span>Center</span>
[% CASE 'R' %]<span>Right</span>
[% END %]
[% END %]
<body id="labels_label-edit-layout" class="tools labels">

View file

@ -3,14 +3,14 @@
[% SET footerjs = 1 %]
[% BLOCK translate_label_element %]
[%- SWITCH element -%]
[%- CASE 'layout' -]<span>layout</span>
[%- CASE 'Layouts' -]<span>Layouts</span>
[%- CASE 'template' -]<span>template</span>
[%- CASE 'Templates' -]<span>Templates</span>
[%- CASE 'profile' -]<span>profile</span>
[%- CASE 'Profiles' -]<span>Profiles</span>
[%- CASE 'batch' -]<span>batch</span>
[%- CASE 'Batches' -]<span>Batches</span>
[%- CASE 'layout' -%]<span>layout</span>
[%- CASE 'Layouts' -%]<span>Layouts</span>
[%- CASE 'template' -%]<span>template</span>
[%- CASE 'Templates' -%]<span>Templates</span>
[%- CASE 'profile' -%]<span>profile</span>
[%- CASE 'Profiles' -%]<span>Profiles</span>
[%- CASE 'batch' -%]<span>batch</span>
[%- CASE 'Batches' -%]<span>Batches</span>
[%- END -%]
[% END %]
[% INCLUDE 'doc-head-open.inc' %]

View file

@ -2,23 +2,23 @@
[% SET footerjs = 1 %]
[% BLOCK translate_card_element %]
[%- SWITCH element -%]
[%- CASE 'layout' -]<span>layout</span>
[%- CASE 'Layouts' -]<span>Layouts</span>
[%- CASE 'template' -]<span>template</span>
[%- CASE 'Templates' -]<span>Templates</span>
[%- CASE 'profile' -]<span>profile</span>
[%- CASE 'Profiles' -]<span>Profiles</span>
[%- CASE 'batch' -]<span>batch</span>
[%- CASE 'Batches' -]<span>Batches</span>
[%- CASE 'Actions' -]<span>Actions</span>
[%- CASE 'layout' -%]<span>layout</span>
[%- CASE 'Layouts' -%]<span>Layouts</span>
[%- CASE 'template' -%]<span>template</span>
[%- CASE 'Templates' -%]<span>Templates</span>
[%- CASE 'profile' -%]<span>profile</span>
[%- CASE 'Profiles' -%]<span>Profiles</span>
[%- CASE 'batch' -%]<span>batch</span>
[%- CASE 'Batches' -%]<span>Batches</span>
[%- CASE 'Actions' -%]<span>Actions</span>
[%- END -%]
[% END %]
[% BLOCK translate_card_elements %]
[%- SWITCH element -%]
[%- CASE 'layout' -]<span>layouts</span>
[%- CASE 'template' -]<span>templates</span>
[%- CASE 'profile' -]<span>profiles</span>
[%- CASE 'batch' -]<span>batches</span>
[%- CASE 'layout' -%]<span>layouts</span>
[%- CASE 'template' -%]<span>templates</span>
[%- CASE 'profile' -%]<span>profiles</span>
[%- CASE 'batch' -%]<span>batches</span>
[%- END -%]
[% END %]

View file

@ -11,12 +11,12 @@
[%- BLOCK area_name -%]
[%- SWITCH area -%]
[%- CASE 'CIRC' -]<span>Circulation</span>
[%- CASE 'CAT' -]<span>Catalog</span>
[%- CASE 'PAT' -]<span>Patrons</span>
[%- CASE 'ACQ' -]<span>Acquisitions</span>
[%- CASE 'ACC' -]<span>Accounts</span>
[%- CASE 'SER' -]<span>Serials</span>
[%- CASE 'CIRC' -%]<span>Circulation</span>
[%- CASE 'CAT' -%]<span>Catalog</span>
[%- CASE 'PAT' -%]<span>Patrons</span>
[%- CASE 'ACQ' -%]<span>Acquisitions</span>
[%- CASE 'ACC' -%]<span>Accounts</span>
[%- CASE 'SER' -%]<span>Serials</span>
[%- END -%]
[%- END -%]

View file

@ -59,22 +59,22 @@
<li>
[% END %]
[% SWITCH loopfilte.crit %]
[% CASE 0 ]<span>Period from [% loopfilte.filter | html %]</span>
[% CASE 1 ]<span>Period to [% loopfilte.filter | html %]</span>
[% CASE 2 ]<span>Patron category = [% loopfilte.filter | html %]</span>
[% CASE 3 ]<span>Item type = [% loopfilte.filter | html %]</span>
[% CASE 4 ]<span>Issuing library = [% loopfilte.filter | html %]</span>
[% CASE 5 ]<span>Collection = [% loopfilte.filter | html %]</span>
[% CASE 6 ]<span>Location = [% loopfilte.filter | html %]</span>
[% CASE 7 ]<span>Item call number &gt;= [% loopfilte.filter | html %]</span>
[% CASE 8 ]<span>Item call number &lt; [% loopfilte.filter | html %]</span>
[% CASE 9 ]<span>Patron sort1 = [% loopfilte.filter | html %]</span>
[% CASE 10 ]<span>Patron sort2 = [% loopfilte.filter | html %]</span>
[% CASE 11 ]<span>Home library = [% loopfilte.filter | html %]</span>
[% CASE 12 ]<span>Holding library = [% loopfilte.filter | html %]</span>
[% CASE 13 ]<span>Patron library = [% loopfilte.filter | html %]</span>
[% CASE 14 ]<span>Issuing library = [% loopfilte.filter | html %]</span>
[% CASE ]<span>[% loopfilte.crit | html %] = [% loopfilte.filter | html %]</span>
[% CASE 0 %]<span>Period from [% loopfilte.filter | html %]</span>
[% CASE 1 %]<span>Period to [% loopfilte.filter | html %]</span>
[% CASE 2 %]<span>Patron category = [% loopfilte.filter | html %]</span>
[% CASE 3 %]<span>Item type = [% loopfilte.filter | html %]</span>
[% CASE 4 %]<span>Issuing library = [% loopfilte.filter | html %]</span>
[% CASE 5 %]<span>Collection = [% loopfilte.filter | html %]</span>
[% CASE 6 %]<span>Location = [% loopfilte.filter | html %]</span>
[% CASE 7 %]<span>Item call number &gt;= [% loopfilte.filter | html %]</span>
[% CASE 8 %]<span>Item call number &lt; [% loopfilte.filter | html %]</span>
[% CASE 9 %]<span>Patron sort1 = [% loopfilte.filter | html %]</span>
[% CASE 10 %]<span>Patron sort2 = [% loopfilte.filter | html %]</span>
[% CASE 11 %]<span>Home library = [% loopfilte.filter | html %]</span>
[% CASE 12 %]<span>Holding library = [% loopfilte.filter | html %]</span>
[% CASE 13 %]<span>Patron library = [% loopfilte.filter | html %]</span>
[% CASE 14 %]<span>Issuing library = [% loopfilte.filter | html %]</span>
[% CASE %]<span>[% loopfilte.crit | html %] = [% loopfilte.filter | html %]</span>
[% END %]
</li>
[% END %]

View file

@ -126,12 +126,12 @@
[% END %]
[% BLOCK used_for_description %]
[% IF used_for_code == 'export_records' ]<span> Export records</span>
[% ELSIF used_for_code == 'late_issues' ]<span> Late serial issues claims</span>
[% ELSIF used_for_code == 'late_orders' ]<span> Export late orders</span>
[% ELSIF used_for_code == 'export_basket' ]<span> Basket export in acquisition</span>
[% ELSIF used_for_code == 'export_lost_items' ]<span> Export lost items in report</span>
[% ELSE ]<span> Unknown usage</span>
[% IF used_for_code == 'export_records' %]<span> Export records</span>
[% ELSIF used_for_code == 'late_issues' %]<span> Late serial issues claims</span>
[% ELSIF used_for_code == 'late_orders' %]<span> Export late orders</span>
[% ELSIF used_for_code == 'export_basket' %]<span> Basket export in acquisition</span>
[% ELSIF used_for_code == 'export_lost_items' %]<span> Export lost items in report</span>
[% ELSE %]<span> Unknown usage</span>
[% END %]
[% END %]

View file

@ -11,36 +11,36 @@
[%- BLOCK debit_type_description -%]
[%- SWITCH debit_type_code -%]
[%- CASE 'ACCOUNT' -]<span>Account creation fee</span>
[%- CASE 'ACCOUNT_RENEW' -]<span>Account renewal fee</span>
[%- CASE 'ARTICLE_REQUEST' -]<span>Article request fee</span>
[%- CASE 'LOST' -]<span>Lost item</span>
[%- CASE 'MANUAL' -]<span>Manual fee</span>
[%- CASE 'NEW_CARD' -]<span>New card</span>
[%- CASE 'OVERDUE' -]<span>Fine</span>
[%- CASE 'PROCESSING' -]<span>Lost item processing fee</span>
[%- CASE 'RENT' -]<span>Rental fee</span>
[%- CASE 'RENT_DAILY' -]<span>Daily rental fee</span>
[%- CASE 'RENT_RENEW' -]<span>Renewal of rental item</span>
[%- CASE 'RENT_DAILY_RENEW' -]<span>Renewal of daily rental item</span>
[%- CASE 'RESERVE' -]<span>Hold fee</span>
[%- CASE 'RESERVE_EXPIRED' -]<span>Hold waiting too long</span>
[%- CASE 'Payout' -]<span>Payout</span>
[%- CASE -]<span>[% debit_type.description | html %]</span>
[%- CASE 'ACCOUNT' -%]<span>Account creation fee</span>
[%- CASE 'ACCOUNT_RENEW' -%]<span>Account renewal fee</span>
[%- CASE 'ARTICLE_REQUEST' -%]<span>Article request fee</span>
[%- CASE 'LOST' -%]<span>Lost item</span>
[%- CASE 'MANUAL' -%]<span>Manual fee</span>
[%- CASE 'NEW_CARD' -%]<span>New card</span>
[%- CASE 'OVERDUE' -%]<span>Fine</span>
[%- CASE 'PROCESSING' -%]<span>Lost item processing fee</span>
[%- CASE 'RENT' -%]<span>Rental fee</span>
[%- CASE 'RENT_DAILY' -%]<span>Daily rental fee</span>
[%- CASE 'RENT_RENEW' -%]<span>Renewal of rental item</span>
[%- CASE 'RENT_DAILY_RENEW' -%]<span>Renewal of daily rental item</span>
[%- CASE 'RESERVE' -%]<span>Hold fee</span>
[%- CASE 'RESERVE_EXPIRED' -%]<span>Hold waiting too long</span>
[%- CASE 'Payout' -%]<span>Payout</span>
[%- CASE -%]<span>[% debit_type.description | html %]</span>
[%- END -%]
[%- END -%]
[%- BLOCK credit_type_description -%]
[%- SWITCH credit_type_code -%]
[%- CASE 'PAYMENT' -]<span>Payment</span>
[%- CASE 'WRITEOFF' -]<span>Writeoff</span>
[%- CASE 'FORGIVEN' -]<span>Forgiven</span>
[%- CASE 'CREDIT' -]<span>Credit</span>
[%- CASE 'LOST_FOUND' -]<span>Lost item fee refund</span>
[%- CASE 'OVERPAYMENT' -]<span>Overpayment refund</span>
[%- CASE 'REFUND' -]<span>Refund</span>
[%- CASE 'CANCELLATION' -]<span>Cancelled charge</span>
[%- CASE -]<span>[% credit_type.description | html %]</span>
[%- CASE 'PAYMENT' -%]<span>Payment</span>
[%- CASE 'WRITEOFF' -%]<span>Writeoff</span>
[%- CASE 'FORGIVEN' -%]<span>Forgiven</span>
[%- CASE 'CREDIT' -%]<span>Credit</span>
[%- CASE 'LOST_FOUND' -%]<span>Lost item fee refund</span>
[%- CASE 'OVERPAYMENT' -%]<span>Overpayment refund</span>
[%- CASE 'REFUND' -%]<span>Refund</span>
[%- CASE 'CANCELLATION' -%]<span>Cancelled charge</span>
[%- CASE -%]<span>[% credit_type.description | html %]</span>
[%- END -%]
[%- END -%]

View file

@ -33,13 +33,13 @@
[% UNLESS ( type=='seefrom' || type=='seealso' ) %]
<span class="type">
[% SWITCH type %]
[% CASE 'earlier' ]<span>(Earlier heading)</span>
[% CASE 'later' ]<span>(Later heading)</span>
[% CASE 'acronym' ]<span>(Acronym)</span>
[% CASE 'musical' ]<span>(Musical composition)</span>
[% CASE 'broader' ]<span>(Broader heading)</span>
[% CASE 'narrower' ]<span>(Narrower heading)</span>
[% CASE 'parent' ]<span>(Immediate parent body)</span>
[% CASE 'earlier' %]<span>(Earlier heading)</span>
[% CASE 'later' %]<span>(Later heading)</span>
[% CASE 'acronym' %]<span>(Acronym)</span>
[% CASE 'musical' %]<span>(Musical composition)</span>
[% CASE 'broader' %]<span>(Broader heading)</span>
[% CASE 'narrower' %]<span>(Narrower heading)</span>
[% CASE 'parent' %]<span>(Immediate parent body)</span>
[% CASE %]
[% IF type %]([% type | html %])[% END %]
[% END %]

View file

@ -24,13 +24,13 @@
[% BLOCK authtypelabel %]
[% UNLESS ( type=='seefrom' || type=='seealso' || type=='' ) %]
<span class="type">[% FILTER trim %][% SWITCH type %]
[% CASE 'earlier' ]<span>Earlier heading</span>
[% CASE 'later' ]<span>Later heading</span>
[% CASE 'acronym' ]<span>Acronym</span>
[% CASE 'musical' ]<span>Musical composition</span>
[% CASE 'broader' ]<span>Broader heading</span>
[% CASE 'narrower' ]<span>Narrower heading</span>
[% CASE ]<span>[% type | html %]</span>
[% CASE 'earlier' %]<span>Earlier heading</span>
[% CASE 'later' %]<span>Later heading</span>
[% CASE 'acronym' %]<span>Acronym</span>
[% CASE 'musical' %]<span>Musical composition</span>
[% CASE 'broader' %]<span>Broader heading</span>
[% CASE 'narrower' %]<span>Narrower heading</span>
[% CASE %]<span>[% type | html %]</span>
[% END %][% END %]</span>
[% END %]
[% END %]
@ -60,11 +60,11 @@
[% BLOCK language %]
[% SWITCH lang %]
[% CASE ['en', 'eng'] ]<span>English</span>
[% CASE ['fr', 'fre'] ]<span>French</span>
[% CASE ['it', 'ita'] ]<span>Italian</span>
[% CASE ['de', 'ger', 'deu'] ]<span>German</span>
[% CASE ['es', 'spa'] ]<span>Spanish</span>
[% CASE ]<span>[% lang | html %]</span>
[% CASE ['en', 'eng'] %]<span>English</span>
[% CASE ['fr', 'fre'] %]<span>French</span>
[% CASE ['it', 'ita'] %]<span>Italian</span>
[% CASE ['de', 'ger', 'deu'] %]<span>German</span>
[% CASE ['es', 'spa'] %]<span>Spanish</span>
[% CASE %]<span>[% lang | html %]</span>
[% END %]
[% END %]