Skip to content

Commit

Permalink
Fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
drn05r committed Jan 24, 2025
1 parent 8b03a41 commit f5c2785
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/lang/en/phrases/reports.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@
<epp:phrase id="exportfields:user_report_core">Export Fields</epp:phrase>
<epp:phrase id="user_report:sort:byname">Name</epp:phrase>

<!-- Fix for typo-ed phrase name in pre-3.4.6 EPrints -->
<epp:phrase id="Update/Views:group_separator"> | </epp:phrase>

</epp:phrases>
8 changes: 4 additions & 4 deletions lib/plugins/EPrints/Plugin/Screen/Report.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ sub render_sort_options

if( !$first )
{
$sort_links->appendChild( $repo->html_phrase( "Update/Views:group_seperator" ) );
$sort_links->appendChild( $repo->html_phrase( "Update/Views:group_separator" ) );
}

if( defined $self->{processor}->{sort} && $self->{processor}->{sort} eq $sort_value )
Expand Down Expand Up @@ -1070,7 +1070,7 @@ sub render_group_options

if( !$first )
{
$group_links->appendChild( $repo->html_phrase( "Update/Views:group_seperator" ) );
$group_links->appendChild( $repo->html_phrase( "Update/Views:group_separator" ) );
}

if( defined $self->{processor}->{group} && $self->{processor}->{group} eq $group_field )
Expand All @@ -1089,7 +1089,7 @@ sub render_group_options
}

#no grouping link at the end
$group_links->appendChild( $repo->html_phrase( "Update/Views:group_seperator" ) );
$group_links->appendChild( $repo->html_phrase( "Update/Views:group_separator" ) );
if( defined $self->{processor}->{group} && $self->{processor}->{group} ne "" )
{
my $link = $repo->render_link( 'javascript:group_report("")' );
Expand Down Expand Up @@ -1135,7 +1135,7 @@ sub render_refine_search
$search_links->appendChild( $new_link );

#add a separator...
$search_links->appendChild( $repo->html_phrase( "Update/Views:group_seperator" ) );
$search_links->appendChild( $repo->html_phrase( "Update/Views:group_separator" ) );

#set up refine search link
my $refine_baseurl = URI->new( $self->{session}->get_uri );
Expand Down

0 comments on commit f5c2785

Please sign in to comment.