Skip to content

Commit

Permalink
[#44120693] Just include the first four digits in Solr pubyear
Browse files Browse the repository at this point in the history
  • Loading branch information
ctfliblime committed Feb 15, 2013
1 parent 6fc6c87 commit 61345be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Koha/Solr/Filter.pm
Expand Up @@ -234,6 +234,7 @@ func as_marcxml( MARC::Record $record ) {

func clean_year( Str @strings ){
s/\D//g for @strings;
s/(....).*/$1/ for @strings;
return @strings;
}

Expand Down

0 comments on commit 61345be

Please sign in to comment.