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 495-501 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
495
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
495
('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
496
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
496
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
497
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
497
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
498
('SerialSortIgnoreWords','',NULL,'Words to ignore in serial search','Free'),
499
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
498
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
500
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
499
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
501
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
500
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
Lines 510-515 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
510
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
509
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
511
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
510
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
512
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
511
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
512
('SortIgnoreArticles','',NULL,'Words to ignore in serial search','Free'),
513
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
513
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
514
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
514
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
515
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
515
('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
[% USE Asset %]
2
[% USE Asset %]
2
[% INCLUDE 'format_price.inc' %]
3
[% INCLUDE 'format_price.inc' %]
3
[% Asset.css("css/buttons.dataTables.min.css") %]
4
[% Asset.css("css/buttons.dataTables.min.css") %]
Lines 23-29 Link Here
23
    var MSG_DT_SEARCH = _("Search:");
24
    var MSG_DT_SEARCH = _("Search:");
24
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
25
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
25
    var MSG_DT_ALL = _("All");
26
    var MSG_DT_ALL = _("All");
26
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
27
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
27
    var MSG_DT_COPY_TITLE = _("Copy to clipboard");
28
    var MSG_DT_COPY_TITLE = _("Copy to clipboard");
28
    var MSG_DT_COPY_KEYS = _("Press ctrl or ⌘ + C to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.");
29
    var MSG_DT_COPY_KEYS = _("Press ctrl or ⌘ + C to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.");
29
    var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
30
    var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
(-)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 15-21 Link Here
15
    var MSG_DT_PROCESSING = _("Processing...");
15
    var MSG_DT_PROCESSING = _("Processing...");
16
    var MSG_DT_SEARCH = _("Search:");
16
    var MSG_DT_SEARCH = _("Search:");
17
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
17
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
18
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
18
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
19
//]]>
19
//]]>
20
</script>
20
</script>
21
[% Asset.js("js/datatables.js") %]
21
[% Asset.js("js/datatables.js") %]
(-)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