[Koha-bugs] [Bug 30879] New: Add option to sort by local-number in zebra

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 1 16:52:30 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30879

            Bug ID: 30879
           Summary: Add option to sort by local-number in zebra
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching - Zebra
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com

Zebra sorting options are hardcoded - but trying to add local-number failed 
 375             elsif ( $sort eq "local-number_asc" ) {
 376                 $sort_by .= "1=12  <i ";
 377             }
 378             elsif ( $sort eq "local-number_dsc" ) {
 379                 $sort_by .= "1=12 >i ";
 380             }

I think it is because we index both as word and number
   5   <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
   6   <index_control_field tag="001">
   7     <target_index>Local-number:w</target_index>
   8   </index_control_field>
   9   <index_control_field tag="001">
  10     <target_index>Local-number:n</target_index>
  11   </index_control_field>

I am not sure how to specify sorting by number index, and not word

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list