Skip to content

Commit

Permalink
Allows epc calls for large icons and outputting phrase as just text r…
Browse files Browse the repository at this point in the history
…ather than HTML
  • Loading branch information
drn05r committed Dec 12, 2023
1 parent ae1470a commit 2298a35
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion perl_lib/EPrints/Script/Compiled.pm
Expand Up @@ -651,7 +651,7 @@ sub run_icon
elsif( $optv eq "NewWindow" ) { $args{new_window}=1; }
elsif( $optv eq "noNewWindow" ) { $args{new_window}=0; }
elsif( $optv eq "previewLeft" ) { $args{preview_side}='left'; }
elsif( $optv eq "previewRight" ) { $args{preview_side}='right'; }
elsif( $optv eq "LargeIcon" ) { $args{size}='lightbox'; }
else { $self->runtime_error( "Unknown option to doc->icon(): $optv" ); }
}

Expand Down Expand Up @@ -931,6 +931,13 @@ sub run_phrase
return [ $state->{session}->html_phrase( $phrase->[0] ), "XHTML" ];
}

sub run_text
{
my( $self, $state, $phrase ) = @_;

return [ $state->{session}->make_text( $phrase->[0] ), "XHTML" ];
}

sub run_documents
{
my( $self, $state, $eprint ) = @_;
Expand Down

0 comments on commit 2298a35

Please sign in to comment.