See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
[EP-tech] Links in editors alerts are not useful
From: Zeno Tajoli <tajoli AT cilea.it>
Date: Mon, 01 Dec 2008 18:03:36 +0100
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** EPrints community wiki - http://wiki.eprints.org/ Hi, editors alerts rendering not useful links. The structure of editor alers ins buil in /perl_lib/EPrints/DataObj/User.pm, sub send_out_editor_alert lines 966-984: $list->map( sub { my( $session, $dataset, $eprint ) = AT _; my $p = $self->{session}->make_element( ↵ "p" ); $p->appendChild( $eprint->render_citation_link ↵ ); $matches->appendChild( $p ); my $link = $self->{session}->render_link( $eprint->get_url( 1 ) ); $link->appendChild( $self->{session}->make_text( $eprint->get_url( 1 ) ) ); $matches->appendChild( $link ); $matches->appendChild( $self->{session}->make_element( "br" ) ); } ); my $mail = $self->{session}->html_phrase( "lib/user:editor_update_mail", howoften => $freqphrase, n => $self->{session}->make_text( $list->count ), search => $searchdesc, matches => $matches, url => $self->{session}->render_link( $url ) ); The links in $matches are built with standar routines so, for the id 15114 the result is: http://eprints.rclis.org/15114. Instead the result needs to be: http://eprints.rclis.org/cgi/users/home?screen=EPrint::View::Editor&eprintid=15114 The best solution is to create something like 'get_url_for_editor' or to modify the line in User.pm ? Bye Zeno Tajoli Zeno Tajoli CILEA - Segrate (MI) tajoliAT_SPAM_no_prendiATcilea.it (Indirizzo mascherato anti-spam; sostituisci quanto tra AT con AT )
[index] [prev] [next] [options] [help]




