View | Details | Raw Unified | Return to bug 9123
Collapse All | Expand All

(-)a/C4/AuthoritiesMarc.pm (-2 / +2 lines)
Lines 292-300 sub SearchAuthorities { Link Here
292
        } elsif ($sortby eq 'HeadingDsc') {
292
        } elsif ($sortby eq 'HeadingDsc') {
293
            $orderstring = '@attr 7=2 @attr 1=Heading 0';
293
            $orderstring = '@attr 7=2 @attr 1=Heading 0';
294
        } elsif ($sortby eq 'AuthidAsc') {
294
        } elsif ($sortby eq 'AuthidAsc') {
295
            $orderstring = '@attr 7=1 @attr 1=Local-Number 0';
295
            $orderstring = '@attr 7=1 @attr 4=109 @attr 1=Local-Number 0';
296
        } elsif ($sortby eq 'AuthidDsc') {
296
        } elsif ($sortby eq 'AuthidDsc') {
297
            $orderstring = '@attr 7=2 @attr 1=Local-Number 0';
297
            $orderstring = '@attr 7=2 @attr 4=109 @attr 1=Local-Number 0';
298
        }
298
        }
299
        $query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''");
299
        $query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''");
300
        $query="\@or $orderstring $query" if $orderstring;
300
        $query="\@or $orderstring $query" if $orderstring;
(-)a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml (+1 lines)
Lines 24-29 authority-zebra-indexdefs.xsl` Link Here
24
  <!-- Original record ID -->
24
  <!-- Original record ID -->
25
  <kohaidx:index_control_field tag="001">
25
  <kohaidx:index_control_field tag="001">
26
    <kohaidx:target_index>Local-Number:w</kohaidx:target_index>
26
    <kohaidx:target_index>Local-Number:w</kohaidx:target_index>
27
    <kohaidx:target_index>Local-Number:n</kohaidx:target_index>
27
    <kohaidx:target_index>Local-Number:s</kohaidx:target_index>
28
    <kohaidx:target_index>Local-Number:s</kohaidx:target_index>
28
  </kohaidx:index_control_field>
29
  </kohaidx:index_control_field>
29
  
30
  
(-)a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl (-1 / +1 lines)
Lines 50-56 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
50
    </z:index>
50
    </z:index>
51
  </xslo:template>
51
  </xslo:template>
52
  <xslo:template match="marc:controlfield[@tag='001']">
52
  <xslo:template match="marc:controlfield[@tag='001']">
53
    <z:index name="Local-Number:w Local-Number:s">
53
    <z:index name="Local-Number:w Local-Number:n Local-Number:s">
54
      <xslo:value-of select="."/>
54
      <xslo:value-of select="."/>
55
    </z:index>
55
    </z:index>
56
  </xslo:template>
56
  </xslo:template>
(-)a/etc/zebradb/marc_defs/marc21/authorities/record.abs (-1 / +1 lines)
Lines 19-25 systag sysno rank Link Here
19
xpath enable
19
xpath enable
20
20
21
all any
21
all any
22
melm 001 Local-Number,Local-Number:s
22
melm 001 Local-Number,Local-Number:n,Local-Number:s
23
melm 942$a authtype:w,authtype:p
23
melm 942$a authtype:w,authtype:p
24
24
25
# Personal Name
25
# Personal Name
(-)a/etc/zebradb/marc_defs/unimarc/authorities/record.abs (-2 / +1 lines)
Lines 11-17 systag sysno rank Link Here
11
xpath enable
11
xpath enable
12
12
13
all any
13
all any
14
melm 001 Local-Number,Local-Number:s
14
melm 001 Local-Number,Local-Number:n,Local-Number:s
15
melm 942$a authtype
15
melm 942$a authtype
16
melm 152$b authtype:w,authtype:p
16
melm 152$b authtype:w,authtype:p
17
17
18
- 

Return to bug 9123