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

(-)a/C4/Search.pm (+8 lines)
Lines 413-418 sub getRecords { Link Here
413
            elsif ( $sort eq "acqdate_dsc" ) {
413
            elsif ( $sort eq "acqdate_dsc" ) {
414
                $sort_by .= "1=32 >i ";
414
                $sort_by .= "1=32 >i ";
415
            }
415
            }
416
            elsif ( $sort eq "datereceived_asc" ) {
417
                $sort_by .= "1=9015 <i ";
418
            }
419
            elsif ( $sort eq "datereceived_dsc" ) {
420
                $sort_by .= "1=9015 >i ";
421
            }
416
            elsif ( $sort eq "title_az" || $sort eq "title_asc" ) {
422
            elsif ( $sort eq "title_az" || $sort eq "title_asc" ) {
417
                $sort_by .= "1=4 <i ";
423
                $sort_by .= "1=4 <i ";
418
            }
424
            }
Lines 1131-1136 sub getIndexes{ Link Here
1131
                    'date-entered-on-file',
1137
                    'date-entered-on-file',
1132
                    'Date-of-acquisition',
1138
                    'Date-of-acquisition',
1133
                    'Date-of-publication',
1139
                    'Date-of-publication',
1140
                    'Date-of-receival',
1141
                    'datereceived',
1134
                    'Dewey-classification',
1142
                    'Dewey-classification',
1135
                    'Dissertation-information',
1143
                    'Dissertation-information',
1136
                    'EAN',
1144
                    'EAN',
(-)a/Koha/QueryParser/Driver/PQF.pm (+2 lines)
Lines 701-706 sub TEST_SETUP { Link Here
701
    $self->add_bib1_filter_map( 'biblioserver', 'copydate', { 'target_syntax_callback' => \&Koha::QueryParser::Driver::PQF::date_filter_target_callback, '1' => '30', '4' => '4' });
701
    $self->add_bib1_filter_map( 'biblioserver', 'copydate', { 'target_syntax_callback' => \&Koha::QueryParser::Driver::PQF::date_filter_target_callback, '1' => '30', '4' => '4' });
702
    $self->add_bib1_filter_map( 'biblioserver', 'pubdate', { 'target_syntax_callback' => \&Koha::QueryParser::Driver::PQF::date_filter_target_callback, '1' => 'pubdate', '4' => '4' });
702
    $self->add_bib1_filter_map( 'biblioserver', 'pubdate', { 'target_syntax_callback' => \&Koha::QueryParser::Driver::PQF::date_filter_target_callback, '1' => 'pubdate', '4' => '4' });
703
    $self->add_bib1_filter_map( 'biblioserver', 'acqdate', { 'target_syntax_callback' => \&Koha::QueryParser::Driver::PQF::date_filter_target_callback, '1' => 'Date-of-acquisition', '4' => '4' });
703
    $self->add_bib1_filter_map( 'biblioserver', 'acqdate', { 'target_syntax_callback' => \&Koha::QueryParser::Driver::PQF::date_filter_target_callback, '1' => 'Date-of-acquisition', '4' => '4' });
704
    $self->add_bib1_field_map('keyword' => 'datereceived' => 'biblioserver' => { '1' => '9015' } );
705
    $self->add_search_field_alias( 'keyword' => 'date-of-receival' => 'datereceived' );
704
    $self->add_bib1_field_map('keyword' => 'isbn' => 'biblioserver' => { '1' => '7' } );
706
    $self->add_bib1_field_map('keyword' => 'isbn' => 'biblioserver' => { '1' => '7' } );
705
    $self->add_search_field_alias( 'keyword' => 'isbn' => 'nb' );
707
    $self->add_search_field_alias( 'keyword' => 'isbn' => 'nb' );
706
    $self->add_bib1_field_map('keyword' => 'issn' => 'biblioserver' => { '1' => '8' } );
708
    $self->add_bib1_field_map('keyword' => 'issn' => 'biblioserver' => { '1' => '8' } );
(-)a/etc/zebradb/biblios/etc/bib1.att (+1 lines)
Lines 219-224 att 9009 cn-prefix Link Here
219
att 9010    cn-suffix
219
att 9010    cn-suffix
220
att 9011    Suppress
220
att 9011    Suppress
221
att 9012    Identifier-other
221
att 9012    Identifier-other
222
att 9015    Date-of-receival
222
223
223
# Items Index
224
# Items Index
224
att 8001    withdrawn
225
att 8001    withdrawn
(-)a/etc/zebradb/ccl.properties (+3 lines)
Lines 346-351 pubdate Date-of-publication Link Here
346
Date-of-acquisition 1=32
346
Date-of-acquisition 1=32
347
acqdate Date-of-acquisition
347
acqdate Date-of-acquisition
348
348
349
Date-of-receival 1=9015
350
datereceived Date-of-receival
351
349
#Date/time added to   1011  The date and time that a        008/00-05
352
#Date/time added to   1011  The date and time that a        008/00-05
350
#database                   record was added to the
353
#database                   record was added to the
351
#                           database.
354
#                           database.
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+11 lines)
Lines 1095-1100 Link Here
1095
    <target_index>totalissues:n</target_index>
1095
    <target_index>totalissues:n</target_index>
1096
    <target_index>totalissues:s</target_index>
1096
    <target_index>totalissues:s</target_index>
1097
  </index_subfields>
1097
  </index_subfields>
1098
  <!--record.abs line 298: melm 942$1      Date-of-receival,Date-of-receival:d,Date-of-receival:s-->
1099
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="1">
1100
    <target_index>Date-of-receival:w</target_index>
1101
    <target_index>Date-of-receival:d</target_index>
1102
    <target_index>Date-of-receival:s</target_index>
1103
  </index_subfields>
1098
  <!--record.abs line 271: melm 942$2      cn-bib-source-->
1104
  <!--record.abs line 271: melm 942$2      cn-bib-source-->
1099
  <index_subfields tag="942" subfields="2">
1105
  <index_subfields tag="942" subfields="2">
1100
    <target_index>cn-bib-source:w</target_index>
1106
    <target_index>cn-bib-source:w</target_index>
Lines 1255-1260 Link Here
1255
  <index_subfields tag="952" subfields="r">
1261
  <index_subfields tag="952" subfields="r">
1256
    <target_index>datelastseen:w</target_index>
1262
    <target_index>datelastseen:w</target_index>
1257
  </index_subfields>
1263
  </index_subfields>
1264
  <!--record.abs line 298: melm 952$R      Date-of-receival,Date-of-receival:d-->
1265
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="R">
1266
    <target_index>Date-of-receival:w</target_index>
1267
    <target_index>Date-of-receival:d</target_index>
1268
  </index_subfields>
1258
  <!--record.abs line 313: melm 952$s      datelastborrowed-->
1269
  <!--record.abs line 313: melm 952$s      datelastborrowed-->
1259
  <index_subfields tag="952" subfields="s">
1270
  <index_subfields tag="952" subfields="s">
1260
    <target_index>datelastborrowed:w</target_index>
1271
    <target_index>datelastborrowed:w</target_index>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (+14 lines)
Lines 1056-1061 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1056
      </xslo:if>
1056
      </xslo:if>
1057
    </xslo:for-each>
1057
    </xslo:for-each>
1058
    <xslo:for-each select="marc:subfield">
1058
    <xslo:for-each select="marc:subfield">
1059
      <xslo:if test="contains('1', @code)">
1060
        <z:index name="Date-of-receival:w Date-of-receival:d Date-of-receival:s">
1061
          <xslo:value-of select="."/>
1062
        </z:index>
1063
      </xslo:if>
1064
    </xslo:for-each>
1065
    <xslo:for-each select="marc:subfield">
1059
      <xslo:if test="contains('2', @code)">
1066
      <xslo:if test="contains('2', @code)">
1060
        <z:index name="cn-bib-source:w">
1067
        <z:index name="cn-bib-source:w">
1061
          <xslo:value-of select="."/>
1068
          <xslo:value-of select="."/>
Lines 1296-1301 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1296
      </xslo:if>
1303
      </xslo:if>
1297
    </xslo:for-each>
1304
    </xslo:for-each>
1298
    <xslo:for-each select="marc:subfield">
1305
    <xslo:for-each select="marc:subfield">
1306
      <xslo:if test="contains('R', @code)">
1307
        <z:index name="Date-of-receival:w Date-of-receival:d">
1308
          <xslo:value-of select="."/>
1309
        </z:index>
1310
      </xslo:if>
1311
    </xslo:for-each>
1312
    <xslo:for-each select="marc:subfield">
1299
      <xslo:if test="contains('s', @code)">
1313
      <xslo:if test="contains('s', @code)">
1300
        <z:index name="datelastborrowed:w">
1314
        <z:index name="datelastborrowed:w">
1301
          <xslo:value-of select="."/>
1315
          <xslo:value-of select="."/>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/resort_form.inc (+12 lines)
Lines 70-75 Link Here
70
[% ELSE %]
70
[% ELSE %]
71
<option value="acqdate_asc">Acquisition date: oldest to newest</option>
71
<option value="acqdate_asc">Acquisition date: oldest to newest</option>
72
 [% END %]
72
 [% END %]
73
74
[% IF ( sort_by == "datereceived_dsc" ) %]
75
    <option value="datereceived_dsc" selected="selected">Receival date: newest to oldest</option>
76
[% ELSE %]
77
    <option value="datereceived_dsc">Receival date: newest to oldest</option>
78
[% END %]
79
80
[% IF ( sort_by == "datereceived_asc" ) %]
81
    <option value="datereceived_asc" selected="selected">Receival date: oldest to newest</option>
82
[% ELSE %]
83
    <option value="datereceived_asc">Receival date: oldest to newest</option>
84
[% END %]
73
</optgroup>
85
</optgroup>
74
86
75
<optgroup label="Title">
87
<optgroup label="Title">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/resort_form.inc (-1 / +10 lines)
Lines 56-61 Link Here
56
    [% ELSE %]
56
    [% ELSE %]
57
        <option value="acqdate_asc">Acquisition date: Oldest to newest</option>
57
        <option value="acqdate_asc">Acquisition date: Oldest to newest</option>
58
    [% END %]
58
    [% END %]
59
    [% IF ( sort_by == "datereceived_dsc" ) %]
60
        <option value="datereceived_dsc" selected="selected">Receival date: Newest to oldest</option>
61
    [% ELSE %]
62
        <option value="datereceived_dsc">Receival date: Newest to oldest</option>
63
    [% END %]
64
    [% IF ( sort_by == "datereceived_asc" ) %]
65
        <option value="datereceived_asc" selected="selected">Receival date: Oldest to newest</option>
66
    [% ELSE %]
67
        <option value="datereceived_asc">Receival date: Oldest to newest</option>
68
    [% END %]
59
</optgroup>
69
</optgroup>
60
<optgroup label="Title">
70
<optgroup label="Title">
61
    [% IF ( sort_by == "title_az" || sort_by == "title_asc" ) %]
71
    [% IF ( sort_by == "title_az" || sort_by == "title_asc" ) %]
62
- 

Return to bug 13707