[EP-tech] adding link to eprint in phrase
stof999 at cmdt.ch
stof999 at cmdt.ch
Thu Nov 14 14:45:16 GMT 2013
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
More information about the Eprints-tech
mailing list