Skip to content

Commit

Permalink
Add alt to orcid logo
Browse files Browse the repository at this point in the history
  • Loading branch information
wfyson committed Apr 8, 2022
1 parent e24b9c2 commit 1eebadc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cfg/cfg.d/z_orcid_support.pl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ sub run_people_with_orcids
}

my $person_span = $session->make_element( "span", "class" => "person" );
<<<<<<< HEAD

# only looking for browse_link in the name sub field for now...
if( defined( $browse_links->{name} ) )
Expand Down Expand Up @@ -213,15 +212,15 @@ sub run_people_with_orcids

my $orcid = $contributor->{orcid};
my $uri = "";
$uri = $session->get_request->uri if defined $session->get_request;
$uri = $session->get_request->uri if defined $session->get_request;
if( $uri !~ m/exportview/ && $uri !~ m!/export_! && $uri !~ m!/cgi/export/! && defined $orcid && $orcid =~ m/^(?:orcid.org\/)?(\d{4}\-\d{4}\-\d{4}\-\d{3}(?:\d|X))$/ )
{
my $orcid_link = $session->make_element( "a",
"class" => "orcid",
"href" => "https://orcid.org/$1",
"target" => "_blank",
);
$orcid_link->appendChild( $session->make_element( "img", "src" => "/images/orcid_16x16.png" ) );
$orcid_link->appendChild( $session->make_element( "img", "src" => "/images/orcid_16x16.png", "alt" => "ORCID logo" ) );

my $orcid_span = $session->make_element( "span", "class" => "orcid-tooltip" );

Expand Down

0 comments on commit 1eebadc

Please sign in to comment.