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 542-548 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
542
('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free'),
542
('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free'),
543
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
543
('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'),
544
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
544
('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'),
545
('SerialSortIgnoreWords','',NULL,'Words to ignore in serial search','Free'),
546
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
545
('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'),
547
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
546
('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'),
548
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
547
('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'),
Lines 558-563 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
558
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
557
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
559
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
558
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
560
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
559
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
560
('SortIgnoreArticles','',NULL,'Words to ignore in serial search','Free'),
561
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
561
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
562
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
562
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
563
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
563
('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 (-2 / +2 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE Koha %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% INCLUDE 'format_price.inc' %]
3
[% INCLUDE 'format_price.inc' %]
4
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") | $raw %]
4
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") | $raw %]
Lines 23-29 Link Here
23
    var MSG_DT_SEARCH = _("Search:");
23
    var MSG_DT_SEARCH = _("Search:");
24
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
24
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
25
    var MSG_DT_ALL = _("All");
25
    var MSG_DT_ALL = _("All");
26
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
26
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
27
    var MSG_DT_COPY_TITLE = _("Copy to clipboard");
27
    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.");
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_SUCCESS_ONE = _("Copied one row to clipboard");
29
    var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +5 lines)
Lines 84-90 Searching: Link Here
84
              choices:
84
              choices:
85
                  yes: Enable
85
                  yes: Enable
86
                  no: Disable
86
                  no: Disable
87
            - "browsing search results from 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 16-22 Link Here
16
    var MSG_DT_PROCESSING = _("Processing...");
16
    var MSG_DT_PROCESSING = _("Processing...");
17
    var MSG_DT_SEARCH = _("Search:");
17
    var MSG_DT_SEARCH = _("Search:");
18
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
18
    var MSG_DT_ZERO_RECORDS = _("No matching records found");
19
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
19
    var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = "[% Koha.Preference('SortIgnoreArticles') %]";
20
//]]>
20
//]]>
21
</script>
21
</script>
22
[% Asset.js("js/datatables.js") | $raw %]
22
[% Asset.js("js/datatables.js") %]
(-)a/serials/serials-search.pl (-2 / +1 lines)
Lines 159-165 else Link Here
159
    }
159
    }
160
160
161
#sort stopword by  string length
161
#sort stopword by  string length
162
my @sortedstopword = sort{ length $b <=> length $a } split ( / / ,C4::Context->preference("SerialSortIgnoreWords"));
162
my @sortedstopword = sort{ length $b <=> length $a } split ( / / ,C4::Context->preference("SortIgnoreArticles"));
163
my $subsctitle;
163
my $subsctitle;
164
my (@openedsubscriptions, @closedsubscriptions);
164
my (@openedsubscriptions, @closedsubscriptions);
165
for my $sub ( @subscriptions ) {
165
for my $sub ( @subscriptions ) {
166
- 

Return to bug 19368