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 481-487 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
481
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
481
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
482
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
482
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
483
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
483
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
484
('SerialSortIgnoreWords','',NULL,'Words to ignore in serial search','Free'),
485
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
484
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
486
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
485
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
487
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
486
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
Lines 496-501 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
496
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
495
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
497
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
496
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
498
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
497
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
498
('SortIgnoreArticles','',NULL,'Words to ignore in serial search','Free'),
499
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
499
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
500
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
500
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
501
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
501
('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.css" />
3
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/buttons.dataTables.min.css" />
3
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
4
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min.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.js"></script>
26
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables.js"></script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (+5 lines)
Lines 78-83 Searching: Link Here
78
                  yes: Keep
78
                  yes: Keep
79
                  no: "Don't keep"
79
                  no: "Don't keep"
80
            - patron search history in the staff client.
80
            - patron search history in the staff client.
81
        -
82
            - 'Ignore the following words when sorting the serial search result table (separate words with spaces) :'
83
            - pref: SortIgnoreArticles
84
              class: free
85
        -
81
    Search Form:
86
    Search Form:
82
        -
87
        -
83
            - Load the unlogged history to the next user.
88
            - Load the unlogged history to the next user.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/datatables.inc (-1 / +2 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
2
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
2
<script type="text/javascript">
3
<script type="text/javascript">
3
//<![CDATA[
4
//<![CDATA[
Lines 14-20 Link Here
14
    var MSG_DT_PROCESSING = _("Processing...");
15
    var MSG_DT_PROCESSING = _("Processing...");
15
    var MSG_DT_SEARCH = _("Search:");
16
    var MSG_DT_SEARCH = _("Search:");
16
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
17
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
17
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
18
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
18
//]]>
19
//]]>
19
</script>
20
</script>
20
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables.js"></script>
21
<script type="text/javascript" src="[% interface %]/[% theme %]/js/datatables.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