EPrints Technical Mailing List Archive

Message: #02406


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] adding link to eprint in phrase


hello

we add a duplication check whenimporting DOI publications.
would be nice for the user, when in the message window a link to the
existing eprint is showed.

the phrase with absolute path to the already existing eprint works fine:

<epp:phrase id="Plugin/Import/DOI:doiDuplicate">doi:<epc:pin
name="doi"/> is already stored in Eprint
	<a href='boris.stof003-vb-ub124/id/eprint/19'>19</a>
	<br/><br/>
	The following authors from the University of Bern are connected with
this publication:<br/><epc:pin name="contrib"/><br/><br/>
	If an author is missing, please contact <a
href="mailto:{$config{adminemail}}";><epc:print
expr="$config{adminemail}" /></a>
</epp:phrase>


does someone know how to add the link as pin?

assembling the link in the plugin code:

my $eprintlink = "<a href='" .
$plugin->{session}->get_repository->get_conf("host") . "/id/eprint/" .
						$values[0] . "'>" .
						$values[0] . "</a>";

and use the string as pin gives an error:
###Unhandled warning in Import::DOI: parameter "eprintlink" is not an
XML node when making phrase "Plugin/Import/DOI:doiDuplicate"

thanks for your help.
stof