@@ -, +, @@ Make sure to have subscriptions starting with "The An A" or similar Add the words "The An A" or the ones you used in your subscriptions --- .../BugUndef-SerialSortIgnoreWords.sql | 1 + installer/data/mysql/mandatory/sysprefs.sql | 1 + .../en/modules/admin/preferences/serials.pref | 5 + .../prog/en/modules/serials/serials-search.tt | 117 +++++++++++++++++- serials/serials-search.pl | 36 ++++-- 5 files changed, 150 insertions(+), 10 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/BugUndef-SerialSortIgnoreWords.sql --- a/installer/data/mysql/atomicupdate/BugUndef-SerialSortIgnoreWords.sql +++ a/installer/data/mysql/atomicupdate/BugUndef-SerialSortIgnoreWords.sql @@ -0,0 +1, @@ +INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('SerialSortIgnoreWords','',NULL,'Words to ignore in serial search','Free'); --- a/installer/data/mysql/mandatory/sysprefs.sql +++ a/installer/data/mysql/mandatory/sysprefs.sql @@ -604,6 +604,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free'), ('SeparateHoldings','0',NULL,'Separate current branch holdings from other holdings','YesNo'), ('SeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings','Choice'), +('SerialSortIgnoreWords','des du de la le les leur d l an a the',NULL,'Words to ignore in serial search','Free'), ('SessionRestrictionByIP','1','Check for change in remote IP address for session security. Disable only when remote IP address changes frequently.','','YesNo'), ('SessionStorage','mysql','mysql|Pg|tmp','Use database or a temporary file for storing session data','Choice'), ('ShelfBrowserUsesCcode','1','0','Use the item collection code when finding items for the shelf browser.','YesNo'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref @@ -62,3 +62,8 @@ Serials: 1: Do 0: Don't - prefill the notes from the last 'Arrived' serial when generating the next 'Expected' issue. + - + - 'Ignore the following words when sorting the serial search result table (separate words with spaces) :' + - pref: SerialSortIgnoreWords + class: free + - --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt @@ -307,7 +307,120 @@ [% ELSE %]
Sort | +ISSN | +Title | +Notes | +Library | +Location | +Call number | +Expiration date | + [% FOR field IN additional_fields_for_subscription %] +[% field.name %] | + [% END %] +Actions | +|
---|---|---|---|---|---|---|---|---|---|---|
+ | + | + | + | + | + | + [% FOR field IN additional_fields_for_subscription %] + | + [% END %] + | + | ||
[% IF ( subscription.titlesort ) %][% subscription.titlesort %][% END %] | ++ [% IF ( subscription.issn ) %][% subscription.issn %] + [% END %] + | +[% subscription.title |html %] + | +[% IF ( subscription.publicnotes ) %][% subscription.publicnotes %][% END %] + [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] + | ++ [% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %] + | ++ [% IF ( subscription.location ) %][% AuthorisedValues.GetByCode( 'LOC', subscription.location ) %][% END %] + | ++ [% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] + | ++ [% IF ( subscription.enddate ) %] + [% subscription.enddate | $KohaDates %] + [% ELSE %] + + [% END %] + | + + [% FOR field IN additional_fields_for_subscription %] + [% IF field.authorised_value_category %] +[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %] | + [% ELSE %] +[% subscription.additional_fields.${field.name} %] | + [% END %] + [% END %] + +
+
+
+
+ [% IF ( CAN_user_serials_receive_serials ) %]
+ [%# There should be no space between these two buttons, it would render badly %]
+ Serial receive
+ [% ELSE %]
+ Actions
+ [% END %]
+
+
+ |
+
+