# Add OpenAlex fields to summary (example; you may already have custom summary rendering) # If you use summary_page.xml approach, keep it there instead. $c->{render_citation_link_openalex} = sub { my( $repo, $eprint ) = @_; return undef unless $eprint->is_set( "openalex_id" ); my $id = $eprint->get_value( "openalex_id" ); my $link = $repo->make_element( "a", href => "https://openalex.org/$id", target => "_blank" ); $link->appendChild( $repo->make_text( "View in OpenAlex" ) ); return $link; };