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

(-)a/C4/Search.pm (+1 lines)
Lines 1178-1183 sub getIndexes{ Link Here
1178
                    'rcn',
1178
                    'rcn',
1179
                    'Record-type',
1179
                    'Record-type',
1180
                    'rtype',
1180
                    'rtype',
1181
                    'Record-status',
1181
                    'se',
1182
                    'se',
1182
                    'See',
1183
                    'See',
1183
                    'See-also',
1184
                    'See-also',
(-)a/etc/zebradb/ccl.properties (+5 lines)
Lines 271-276 language-original 1=1095 Link Here
271
#Microform-generation 1=61
271
#Microform-generation 1=61
272
#material-designation Microform-generation
272
#material-designation Microform-generation
273
273
274
#Record-status	1046	Information about the status of the record, e.g. new, corrected, deleted, revised.
275
Record-status 1=1046 14=1
276
#The special attribute 14=1 shouldn't be necessary as Record-status should never be an empty index,
277
#but this is an extra precaution to avoid Zebra errors when an index is empty
278
274
#Code-record-type     1001  A code that specifies the       Leader/06
279
#Code-record-type     1001  A code that specifies the       Leader/06
275
#                           characteristics and defines
280
#                           characteristics and defines
276
#                           the components of the record.
281
#                           the components of the record.
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 6-11 Link Here
6
  <index_leader offset="0" length="5">
6
  <index_leader offset="0" length="5">
7
    <target_index>llength:w</target_index>
7
    <target_index>llength:w</target_index>
8
  </index_leader>
8
  </index_leader>
9
  <index_leader offset="5" length="1">
10
    <target_index>Record-status:w</target_index>
11
  </index_leader>
9
  <index_leader offset="6" length="1">
12
  <index_leader offset="6" length="1">
10
    <target_index>rtype:w</target_index>
13
    <target_index>rtype:w</target_index>
11
  </index_leader>
14
  </index_leader>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (+3 lines)
Lines 48-53 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
48
    <z:index name="llength:w">
48
    <z:index name="llength:w">
49
      <xslo:value-of select="substring(., 1, 5)"/>
49
      <xslo:value-of select="substring(., 1, 5)"/>
50
    </z:index>
50
    </z:index>
51
    <z:index name="Record-status:w">
52
      <xslo:value-of select="substring(., 6, 1)"/>
53
    </z:index>
51
    <z:index name="rtype:w">
54
    <z:index name="rtype:w">
52
      <xslo:value-of select="substring(., 7, 1)"/>
55
      <xslo:value-of select="substring(., 7, 1)"/>
53
    </z:index>
56
    </z:index>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 6-11 Link Here
6
  <index_leader offset="0" length="5">
6
  <index_leader offset="0" length="5">
7
    <target_index>llength:w</target_index>
7
    <target_index>llength:w</target_index>
8
  </index_leader>
8
  </index_leader>
9
  <index_leader offset="5" length="1">
10
    <target_index>Record-status:w</target_index>
11
  </index_leader>
9
  <index_leader offset="6" length="1">
12
  <index_leader offset="6" length="1">
10
    <target_index>rtype:w</target_index>
13
    <target_index>rtype:w</target_index>
11
  </index_leader>
14
  </index_leader>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (+3 lines)
Lines 48-53 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
48
    <z:index name="llength:w">
48
    <z:index name="llength:w">
49
      <xslo:value-of select="substring(., 1, 5)"/>
49
      <xslo:value-of select="substring(., 1, 5)"/>
50
    </z:index>
50
    </z:index>
51
    <z:index name="Record-status:w">
52
      <xslo:value-of select="substring(., 6, 1)"/>
53
    </z:index>
51
    <z:index name="rtype:w">
54
    <z:index name="rtype:w">
52
      <xslo:value-of select="substring(., 7, 1)"/>
55
      <xslo:value-of select="substring(., 7, 1)"/>
53
    </z:index>
56
    </z:index>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 2-7 Link Here
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs"
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs"
3
                    xmlns="http://www.koha-community.org/schemas/index-defs">
3
                    xmlns="http://www.koha-community.org/schemas/index-defs">
4
  <id>marc:controlfield[@tag='001']</id>
4
  <id>marc:controlfield[@tag='001']</id>
5
  <index_leader offset="5" length="1">
6
    <target_index>Record-status:w</target_index>
7
  </index_leader>
5
  <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
8
  <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
6
  <index_control_field tag="001">
9
  <index_control_field tag="001">
7
    <target_index>Local-number:w</target_index>
10
    <target_index>Local-number:w</target_index>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (+5 lines)
Lines 44-49 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
44
      <xslo:apply-templates mode="index_all"/>
44
      <xslo:apply-templates mode="index_all"/>
45
    </z:record>
45
    </z:record>
46
  </xslo:template>
46
  </xslo:template>
47
  <xslo:template match="marc:leader">
48
    <z:index name="Record-status:w">
49
      <xslo:value-of select="substring(., 6, 1)"/>
50
    </z:index>
51
  </xslo:template>
47
  <xslo:template match="marc:controlfield[@tag='001']">
52
  <xslo:template match="marc:controlfield[@tag='001']">
48
    <z:index name="Local-number:w">
53
    <z:index name="Local-number:w">
49
      <xslo:value-of select="."/>
54
      <xslo:value-of select="."/>
(-)a/opac/opac-search.pl (-1 / +7 lines)
Lines 571-576 if (C4::Context->preference('OpacSuppression')) { Link Here
571
    }
571
    }
572
}
572
}
573
573
574
# Hide records with Record-status=d
575
if ( $query_type eq 'pqf' ) {
576
    $query = '@not '.$query.' @attr 14=1 @attr 1=1046 d';
577
} else {
578
    $query = "($query) not Record-status=d";
579
}
580
574
$template->param ( LIMIT_INPUTS => \@limit_inputs );
581
$template->param ( LIMIT_INPUTS => \@limit_inputs );
575
$template->param ( OPACResultsSidebar => C4::Context->preference('OPACResultsSidebar'));
582
$template->param ( OPACResultsSidebar => C4::Context->preference('OPACResultsSidebar'));
576
583
577
- 

Return to bug 15537