EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07736
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Antwort: Info about epc:pin
- To: <eprints-tech@ecs.soton.ac.uk>, "Juan C. Herraiz Regidor" <jcherraiz@ucm.es>
- Subject: [EP-tech] Antwort: Info about epc:pin
- From: <martin.braendle@id.uzh.ch>
- Date: Fri, 22 Mar 2019 14:29:02 +0100
You could do a recursive grep (grep -R) for one of the terms below.
You will find it in {eprints_root}/archives/{archive}/cfg/cfg.d/template_links.pl
For HTML5, some changes must be made, here ours:
# <link> entries for machine-navigation
$c->add_trigger( EP_TRIGGER_DYNAMIC_TEMPLATE, sub {
my %params = @_;
my $repo = $params{repository};
my $pins = $params{pins};
my $xhtml = $repo->xhtml;
my $head = $repo->xml->create_document_fragment;
# UZH CHANGE ZORA-534 2016/11/24/jv
#
# HTML5 Validator says:
# "Bad value Top for attribute rel on element link: The string top is not a registered keyword."
#
# Top
#$head->appendChild( $repo->xml->create_element( "link",
# rel => "Top",
# href ="" $repo->config( "frontpage" ),
# ) );
#$head->appendChild( $repo->xml->create_text_node( "\n " ) );
# SWORD endpoints
$head->appendChild( $repo->xml->create_element( "link",
# UZH CHANGE ZORA-534 2016/12/05/jv
#rel => "Sword",
rel => "http://purl.org/net/sword/discovery/service-document",
href ="" $repo->current_url( scheme => 'https', host => 1, path => "static", "sword-app/servicedocument" ),
) );
$head->appendChild( $repo->xml->create_text_node( "\n" ) );
$head->appendChild( $repo->xml->create_element( "link",
# UZH CHANGE ZORA-534 2016/12/05/jv
#rel => "SwordDeposit",
rel => "http://purl.org/net/sword/terms/deposit",
href ="" $repo->current_url( scheme => 'https', host => 1, path => "static", "id/contents" ),
) );
$head->appendChild( $repo->xml->create_text_node( "\n" ) );
# Search
$head->appendChild( $repo->xml->create_element( "link",
rel => "search",
type => "text/html",
href ="" $repo->current_url( scheme => 'http', host => 1, path => "cgi", "search" ),
) );
$head->appendChild( $repo->xml->create_text_node( "\n" ) );
# OpenSearch
# UZH CHANGE ZORA-532 2016/11/14/mb
$head->appendChild( $repo->xml->create_element( "link",
rel => "search",
type => "application/opensearchdescription+xml",
href ="" $repo->current_url( scheme => 'http', host => 1, path => "cgi", "opensearchdescription" ),
title=> $repo->phrase( 'archive_name_short' ),
) );
# END UZH CHANGE
$head->appendChild( $repo->xml->create_text_node( "\n" ) );
if( defined $pins->{'utf-8.head'} )
{
$pins->{'utf-8.head'} .= $xhtml->to_xhtml( $head );
}
if( defined $pins->{head} )
{
$head->appendChild( $pins->{head} );
$pins->{head} = $head;
}
else
{
$pins->{head} = $head;
}
return;
});
Best regards,
--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich
"Juan C. Herraiz Regidor via Eprints-tech" ---22.03.2019 14:12:35---Hello Everybody, our eprints default template (default.xml) include the line <epc:pin
Von: "Juan C. Herraiz Regidor via Eprints-tech" <eprints-tech@ecs.soton.ac.uk>
An: <eprints-tech@ecs.soton.ac.uk>
Datum: 22.03.2019 14:12
Betreff: [EP-tech] Info about epc:pin
Gesendet von: <eprints-tech-bounces@ecs.soton.ac.uk>
Hello Everybody,
our eprints default template (default.xml) include the line <epc:pin ref="head"/> in the head html statement .
And the source html code generated by this line looks like this index.html:
<link rel="Top" href="">http://##########.es/" />
<link rel="Sword" href="" ##########.es/sword-app/servicedocument" />
<link rel="SwordDeposit" href="" ##########.es/id/contents" />
<link rel="Search" type="text/html" href="" ##########.es/cgi/search" />
<link rel="Search" type="application/opensearchdescription+xml" href="" ##########.es/cgi/opensearchdescription" />
<script type="text/_javascript_" src="">https://www.google.com/jsapi"><!--padder--></script><script type="text/_javascript_">
// <![CDATA[
google.load("visualization", "1", {packages:["corechart", "geochart"]});
// ]]></script><script type="text/_javascript_">
// <![CDATA[
var eprints_http_root = "https:\/\/ ##########.es";
var eprints_http_cgiroot = "https:\/\/ ##########.es\/cgi";
var eprints_logged_in = false;
// ]]></script>
<style type="text/css">.ep_logged_in { display: none }</style>
<link rel="stylesheet" type="text/css" href="" />
<script type="text/_javascript_" src="">
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="" />
<![endif]-->
<meta name="Generator" content="EPrints 3.3.12" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
This code has some errors we need to fix, but I can’t find where this code is located.
I’m looking for epc:pin info in the eprints wiki and manual but I don’t found how locate the file or config file where tis are defined.
Any help will be appreciated.
Thanks in advanced,
JC
Juan Carlos Herraiz Regidor
Gobierno TI
Servicios Informáticos · Gobierno TI. Avenida Complutense s/n. 28040 Madrid
Teléfono: +34 91 394 5130, Fax: +34 91 394 4773
www.ucm.es
___
La información contenida en este correo es CONFIDENCIAL, de uso exclusivo del destinatario/a arriba mencionado. Si ha recibido este mensaje por error, notifíquelo inmediatamente por esta misma vía y proceda a su eliminación, ya que ud. tiene totalmente prohibida cualquier utilización del mismo, en virtud de la legislación vigente.
Antes de imprimir este correo piense si es necesario: el medioambiente es cosa de todos.
This message is private and confidential and it is intended exclusively for the addressee. If you receive this message by mistake, you should not disseminate, distribute or copy this e-mail. Please inform the sender and delete the message and attachments from your system, as it is completely forbidden for you to use this information, according to the current legislation. No confidentiality nor any privilege regarding the information is waived or lost by any mistransmission or malfunction.
The personal data herein will be collected in the file "Correoweb", under the ownership of the Vice-Rectorate for Information Technologies, in which those interested may exercise their right to access, rectify, erasure or right to object the contents (article 15-21 of Regulation (EU) 2016/679, General Data Protection Regulation).
Before printing this mail please consider whether it is really necessary: the environment is a concern for us all.
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- Follow-Ups:
- [EP-tech] Antwort: Info about epc:pin
- From: <martin.braendle@id.uzh.ch>
- [EP-tech] Antwort: Info about epc:pin
- References:
- [EP-tech] Info about epc:pin
- From: "Juan C. Herraiz Regidor" <jcherraiz@ucm.es>
- [EP-tech] Antwort: Info about epc:pin
- From: <martin.braendle@id.uzh.ch>
- [EP-tech] Info about epc:pin
- Prev by Date: [EP-tech] Info about epc:pin
- Next by Date: Re: [EP-tech] EPrints Data Repository - Elements RT2
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):