EPrints Technical Mailing List Archive

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


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


Inactive hide details for "Juan C. Herraiz Regidor via Eprints-tech" ---22.03.2019 14:12:35---Hello Everybody, our eprints defa"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
 
 
 
 
cid:image005.jpg@01D39E6C.6586DC70
 
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.
     
Los datos personales recogidos serán incorporados y tratados en el fichero 'Correoweb', bajo la titularidad del Vicerrectorado de Tecnologías de la Información, y en él el interesado/a podrá ejercer los derechos de acceso, rectificación, cancelación y oposición ante el mismo (artículo 5 de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal).
cid:image006.png@01D39E6C.6586DC70Antes 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).
 
cid:image006.png@01D39E6C.6586DC70Before 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/