Bug 42190: Use num-html for itemnumber and biblionumber columns

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-04-09 14:29:21 +02:00 committed by Lucas Gass
parent 040e17a608
commit a2b75987de
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 3 additions and 2 deletions

View File

@ -1318,13 +1318,13 @@
<tr>
[% FOREACH header_ro IN header_row %]
[% IF header_ro.has_itemnumbers && ( header_ro.cell == 'itemnumber' || header_types.item( header_ro.cell ) == 'itemnumber' ) %]
<th class="itemnumber">[% header_ro.cell | html %]</th>
<th class="itemnumber num-html">[% header_ro.cell | html %]</th>
[% ELSIF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %]
<th class="biblionumber">[% header_ro.cell | html %]</th>
[% ELSIF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %]
<th class="cardnumber">[% header_ro.cell | html %]</th>
[% ELSIF header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %]
<th class="borrowernumber">[% header_ro.cell | html %]</th>
<th class="borrowernumber num-html">[% header_ro.cell | html %]</th>
[% ELSE %]
<th>[% header_ro.cell | html %]</th>
[% END %]

View File

@ -1511,6 +1511,7 @@ function update_search_description(
var default_column_defs = [
{ targets: ["string-sort"], type: "string" },
{ targets: ["anti-the"], type: "anti-the" },
{ targets: ["num-html"], type: "num-html" },
{ targets: ["no-sort"], orderable: false, searchable: false },
];
if (settings["columnDefs"] === undefined) {