From 0fc9e1d321c3121a6945124fea0ba7c215376ab0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 9 Mar 2026 11:47:03 +0100 Subject: [PATCH] Bug 41932: Pref description Content-Type: text/plain; charset=utf-8 Test plan: Find the pref under Cataloging/Record structure. Signed-off-by: Marcel de Rooy --- .../prog/en/modules/admin/preferences/cataloguing.pref | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index e2831bcb38..1012f376db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -217,6 +217,11 @@ Cataloging: 1: Strip 0: "Don't strip" - leading and trailing whitespace characters (including spaces, tabs, line breaks and carriage returns) and inner newlines from data fields when cataloguing bibliographic and authority records. The leader and control fields will not be affected. + - + - Use the following zero-padding formats for sorting callnumbers in the generic sort routine. + - pref: ClassSortGenericFormats + - "
NOTE: If the preference is empty, the generic sort routine behaves as usual. The preference may contain one or more 'zero-padding formats' separated by two semicolons (;;). Each format consists of an optional regex followed by a colon (:) as separator, and a list of one or more number pairs separated by one semicolon. A number pair consists of two numbers separated by a comma: the minimum length of a digit group in the callnumber, and the requested minimum length after zero-padding.
As a simple example: '^A\\s:2,4;1,3;; 1,4' allows zero-padding callnumbers starting with A and space where the first digit group of at least length 2 is zero-padded to 4 positions, and the second digit group to 3 positions; the second format allows zero-padding the first digit group in other callnumbers to 4 positions." + Display: - - 'Separate main entry and subdivisions with ' -- 2.39.5