Skip to content

Commit

Permalink
Merge branch 'Bug4265' into ptfs-master
Browse files Browse the repository at this point in the history
  • Loading branch information
J. David Bavousett committed Mar 23, 2010
2 parents 929c08a + 523fdbb commit 965ff71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions C4/ClassSortRoutine/Dewey.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ sub get_class_sort_key {
} }
} }
} }
# Pad the first digit_group if there was only one
if (1 == $digit_group_count) {
$tokens[0] .= '_000000000000000'
}
my $key = join("_", @tokens); my $key = join("_", @tokens);
$key =~ s/[^\p{IsAlnum}_]//g; $key =~ s/[^\p{IsAlnum}_]//g;


Expand Down
4 changes: 2 additions & 2 deletions C4/Search.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -357,10 +357,10 @@ sub getRecords {
$sort_by .= "1=9003 >i "; $sort_by .= "1=9003 >i ";
} }
elsif ( $sort eq "call_number_asc" ) { elsif ( $sort eq "call_number_asc" ) {
$sort_by .= "1=20 <i "; $sort_by .= "1=8007 <i ";
} }
elsif ( $sort eq "call_number_dsc" ) { elsif ( $sort eq "call_number_dsc" ) {
$sort_by .= "1=20 >i "; $sort_by .= "1=8007 >i ";
} }
elsif ( $sort eq "pubdate_asc" ) { elsif ( $sort eq "pubdate_asc" ) {
$sort_by .= "1=31 <i "; $sort_by .= "1=31 <i ";
Expand Down

0 comments on commit 965ff71

Please sign in to comment.