From 7ce0fef1bda28fff51e114e90471f01142d16eec Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Fri, 24 Apr 2026 09:44:47 +0200 Subject: [PATCH] Bug 41685: (QA follow-up) Add POD for _marc21_sort_hierarchy_alpha - koha-qa pod_coverage check flagged the new private helper - sub as uncovered. Document it briefly to satisfy the check. Signed-off-by: Paul Derscheid Signed-off-by: Pedro Amorim --- C4/AuthoritiesMarc.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index a9555e70ee..7faa7893a0 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -1277,6 +1277,15 @@ sub BuildSummary { return \%summary; } +=head2 _marc21_sort_hierarchy_alpha + + my @sorted = _marc21_sort_hierarchy_alpha(@fields); + +sorts 4xx/5xx fields by hierarchy using subfield $w (g=broader, h=narrower, +anything else between), then alphabetically by subfield $a. + +=cut + sub _marc21_sort_hierarchy_alpha { my @fields = @_; return (