[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 => "
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpurl.org%2Fnet%2Fsword%2Fdiscovery%2Fservice-document&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ag3020WeoWQUZgDZmjhop9ETP1jaKvrUDCRBBtAJFH8%3D&amp;reserved=0";,
                        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 => "https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpurl.org%2Fnet%2Fsword%2Fterms%2Fdeposit&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8cnXwCgyEoJN32ZcO8zxVHvYn0HkTbOSwUkwVvWSgmo%3D&amp;reserved=0";,
                        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




Von:	"Juan C. Herraiz Regidor via Eprints-tech"
            <eprints-tech at ecs.soton.ac.uk>
An:	<eprints-tech at ecs.soton.ac.uk>
Datum:	22.03.2019 14:12
Betreff:	[EP-tech] Info about epc:pin
Gesendet von:	<eprints-tech-bounces at 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="https://
##########.es/sword-app/servicedocument" />
??? <link rel="SwordDeposit" href="https:// ##########.es/id/contents" />
??? <link rel="Search" type="text/html" href="http://
##########.es/cgi/search" />
??? <link rel="Search" type="application/opensearchdescription+xml"
href="http:// ##########.es/cgi/opensearchdescription" />
??? <script type="text/javascript" src="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fjsapi&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=AtXBYIhRUDzFKxtGoiZwQqj%2FIHD8ymyTfI%2B5NgLbqlw%3D&amp;reserved=0
"><!--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="/style/auto-3.3.12.css" />
??? <script type="text/javascript"
src="/javascript/auto-3.3.12.js"><!--padder--></script>
??? <!--[if lte IE 6]>
??????? <link rel="stylesheet" type="text/css" href="/style/ie6.css" />
?? <![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 at 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
https://eur03.safelinks.protection.outlook.com/?url=www.ucm.es&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=MWAhxrW4AJ00P68HQACPpQwRWrj%2BKLz7bDZECWwpBBA%3D&amp;reserved=0
___
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 at 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 at 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: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Uk4RLlZg6aIpS5Ccae7TMV1e9GtcdILNIQPQ7dU320I%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=VOhtt3C2YtPFuczKz4%2FxxYiCl2JMGqh%2FUpv%2FfDhjl0g%3D&amp;reserved=0
*** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0b150058561b4384297a08d6aeca5bd6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=9B1iAgLbOhheeluF2dMD65QVaB4BeI5lQ%2BsrMEUT%2BpQ%3D&amp;reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190322/325b605a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190322/325b605a/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 29630943.jpg
Type: image/jpeg
Size: 3824 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190322/325b605a/attachment-0001.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 29700550.gif
Type: image/gif
Size: 1088 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190322/325b605a/attachment-0003.gif