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

(-)a/installer/data/mysql/atomicupdate/Bug19368_SortIgnoreArticles.sql (+1 lines)
Line 0 Link Here
1
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SortIgnoreArticles','a an the',NULL,'Articles to ignore in when sorting','Free');
(-)a/installer/data/mysql/atomicupdate/BugUndef-SerialSortIgnoreWords.sql (-1 lines)
Line 1 Link Here
1
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SerialSortIgnoreWords','',NULL,'Words to ignore in serial search','Free');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 487-493 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
487
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
487
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
488
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
488
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
489
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
489
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
490
('SerialSortIgnoreWords','',NULL,'Words to ignore in serial search','Free'),
491
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
490
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
492
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
491
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
493
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
492
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
Lines 502-507 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
502
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
501
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
503
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
502
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
504
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
503
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
504
('SortIgnoreArticles','',NULL,'Words to ignore in serial search','Free'),
505
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
505
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
506
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
506
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
507
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
507
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc (-1 / +2 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% INCLUDE 'format_price.inc' %]
2
[% INCLUDE 'format_price.inc' %]
2
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/buttons.dataTables.min_[% KOHA_VERSION %].css" />
3
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/buttons.dataTables.min_[% KOHA_VERSION %].css" />
3
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min_[% KOHA_VERSION %].js"></script>
4
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min_[% KOHA_VERSION %].js"></script>
Lines 19-25 Link Here
19
    var MSG_DT_SEARCH = _("Search:");
20
    var MSG_DT_SEARCH = _("Search:");
20
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
21
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
21
    var MSG_DT_ALL = _("All");
22
    var MSG_DT_ALL = _("All");
22
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
23
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
23
//]]>
24
//]]>
24
</script>
25
</script>
25
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables_[% KOHA_VERSION %].js"></script>
26
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables_[% KOHA_VERSION %].js"></script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (+4 lines)
Lines 85-90 Searching: Link Here
85
                  yes: Enable
85
                  yes: Enable
86
                  no: Disable
86
                  no: Disable
87
            - "browsing search results fromt the bibliographic record detail page in staff client."
87
            - "browsing search results fromt the bibliographic record detail page in staff client."
88
        -
89
            - 'Ignore the following words when sorting the serial search result table (separate words with spaces) :'
90
            - pref: SortIgnoreArticles
91
              class: free
88
    Search Form:
92
    Search Form:
89
        -
93
        -
90
            - Load the unlogged history to the next user.
94
            - Load the unlogged history to the next user.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/datatables.inc (-2 / +2 lines)
Lines 14-20 Link Here
14
    var MSG_DT_PROCESSING = _("Processing...");
14
    var MSG_DT_PROCESSING = _("Processing...");
15
    var MSG_DT_SEARCH = _("Search:");
15
    var MSG_DT_SEARCH = _("Search:");
16
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
16
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
17
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
17
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
18
//]]>
18
//]]>
19
</script>
19
</script>
20
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables_[% KOHA_VERSION %].js"></script>
20
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables_[% KOHA_VERSION %].js"></script>
(-)a/serials/serials-search.pl (-2 / +1 lines)
Lines 123-129 if ($routing) { Link Here
123
}
123
}
124
124
125
#sort stopword by  string length
125
#sort stopword by  string length
126
my @sortedstopword = sort{ length $b <=> length $a } split ( / / ,C4::Context->preference("SerialSortIgnoreWords"));
126
my @sortedstopword = sort{ length $b <=> length $a } split ( / / ,C4::Context->preference("SortIgnoreArticles"));
127
my $subsctitle;
127
my $subsctitle;
128
my (@openedsubscriptions, @closedsubscriptions);
128
my (@openedsubscriptions, @closedsubscriptions);
129
for my $sub ( @subscriptions ) {
129
for my $sub ( @subscriptions ) {
130
- 

Return to bug 19368