<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi again Adam,</p>
    <p>How to add a hyperlink and especially an image associated with
      this link? Which method to use?<br>
    </p>
    <p>Thank you.</p>
    <p>Jean-Marie<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 25/10/2017 à 08:17, <a
        class="moz-txt-link-abbreviated"
        href="mailto:Jean-Marie.Lebechec@inp-toulouse.fr">Jean-Marie.Lebechec@inp-toulouse.fr</a>
      a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:EMEW3|c7eab92ec74e8decc203d769e1c49c40y9O7Ia14eprints-tech-bounces|ecs.soton.ac.uk|1093650e-cbde-0fd9-ca1d-83df44dcea53@inp-toulouse.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Ah yes, thank you. I understood better the mechanism ! It is
        sometimes (often) difficult to debug Eprints <span
          class="moz-smiley-s1"><span>:-)</span></span> <br>
      </p>
      <p>Jean-Marie<br>
      </p>
      <br>
      <div class="moz-cite-prefix">Le 24/10/2017 à 16:23, Adam Field a
        écrit :<br>
      </div>
      <blockquote type="cite"
cite="mid:EMEW3|cbbbfa01cbbb1f5af89ab423f3275381y9NFNw14eprints-tech-bounces|ecs.soton.ac.uk|471184EE-FB09-4511-831E-2C8AC15F7FC1@adamfield.net">
        <meta name="Title" content="">
        <meta name="Keywords" content="">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <meta name="Generator" content="Microsoft Word 15 (filtered
          medium)">
        <style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Courier;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
        <div class="WordSection1">
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">You need to
              return a dom object from a render function.   Here are a
              couple of replacement lines:<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">               
              ….<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">                               
              push @authors, </span><i><span
                style="font-size:11.0pt;font-family:Calibri" lang="EN">EPrints::Utils::make_name_string(
                $_-&gt;{name} );</span></i><span
              style="font-size:11.0pt;font-family:Calibri"><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">               
              …<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">               
              return $repo-&gt;xml-&gt;create_text_node(join(‘; ‘,
              @authors));<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">Move the
              return to the bottom of the function, aswell.  At the
              moment it’s in the loop.  Also, I think your render_value
              config line may belong outside the fields section.<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">--<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri">Adam<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal" style="margin-left:36.0pt"><b><span
                  style="font-family:Calibri;color:black">From: </span></b><span
                style="font-family:Calibri;color:black"><a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
                  moz-do-not-send="true">&lt;eprints-tech-bounces@ecs.soton.ac.uk&gt;</a>
                on behalf of <a class="moz-txt-link-rfc2396E"
                  href="mailto:Jean-Marie.Lebechec@inp-toulouse.fr"
                  moz-do-not-send="true">&lt;Jean-Marie.Lebechec@inp-toulouse.fr&gt;</a><br>
                <b>Reply-To: </b><a class="moz-txt-link-rfc2396E"
                  href="mailto:eprints-tech@ecs.soton.ac.uk"
                  moz-do-not-send="true">&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
                <b>Date: </b>Tuesday, 24 October 2017 15:07<br>
                <b>To: </b><a class="moz-txt-link-rfc2396E"
                  href="mailto:eprints-tech@ecs.soton.ac.uk"
                  moz-do-not-send="true">&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
                <b>Subject: </b>[EP-tech] Render_value help<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
          </div>
          <p class="MsoNormal" style="margin-left:36.0pt">Hi all, <o:p></o:p></p>
          <div>
            <p style="margin-left:36.0pt"><span lang="EN">I want to
                modify the rendering field creators to add an ID ("ppn")
                as indicated in this page. So I defined in my
                eprint_field.pl this configuration:</span><o:p></o:p></p>
            <p style="margin-left:36.0pt"><i><span lang="EN">{<br>
                              'name' =&gt; 'creators',<br>
                              'type' =&gt; 'compound',<br>
                              'allow_null' =&gt; 1,<br>
                              'multiple' =&gt; 1,<br>
                              'fields' =&gt; [<br>
                                            {<br>
                                              'sub_name' =&gt; 'ppn',<br>
                                              'type' =&gt; 'text',<br>
                                              'input_cols' =&gt; 10,<br>
                                              'allow_null' =&gt; 1,<br>
                                            },<br>
                                            {<br>
                                              'sub_name' =&gt; 'name',<br>
                                              'type' =&gt; 'name',<br>
                                              'hide_honourific' =&gt; 1,<br>
                                              'hide_lineage' =&gt; 1,<br>
                                              'family_first' =&gt; 1,<br>
                                              },<br>
                                            },<br>
                                            {<br>
                                              'sub_name' =&gt; 'id',<br>
                                              'type' =&gt; 'text',<br>
                                              'input_cols' =&gt; 20,<br>
                                              'allow_null' =&gt; 1,<br>
                                            },<br>
                                          ],<br>
                                          'input_boxes' =&gt; 4,<br>
                                           'render_value' =&gt; 'idref',<br>
                  ...</span></i><o:p></o:p></p>
            <p style="margin-left:36.0pt"><i><span lang="EN">}</span></i><o:p></o:p></p>
            <p style="margin-left:36.0pt"><br>
              <span lang="EN">but I can not write the code to display
                the authors' data in the following form:<br>
                "Name, First name (ppn) and  Name, First name and  Name,
                First name (ppn)" for example.</span><o:p></o:p></p>
            <p style="margin-left:36.0pt"><span lang="EN">I started
                writing things like this:<br>
                <i>$c-&gt;{idref} = sub<br>
                  {<br>
                  <br>
                  my ($repo, $field, $value, $allangs, $nolink, $eprint)
                  = @_;<br>
                  my @authors;<br>
                  <br>
                  for( @{ $eprint-&gt;value( "creators" ) } )<br>
                  {<br>
                  <br>
                        push @authors, {<br>
                          author =&gt; EPrints::Utils::make_name_string(
                  $_-&gt;{name} ),<br>
                        };<br>
                  return \@authors;<br>
                  }<br>
                  <br>
                  }</i><br>
                <br>
                but it does not work....<br>
                <br>
                Any help or example will be welcome!</span><o:p></o:p></p>
            <p style="margin-left:36.0pt"><span lang="EN">Jean-Marie<br>
                <br>
              </span><o:p></o:p></p>
            <p style="margin-left:36.0pt"><o:p> </o:p></p>
            <pre style="margin-left:36.0pt">-- <o:p></o:p></pre>
            <pre style="margin-left:36.0pt"><o:p> </o:p></pre>
            <pre style="margin-left:36.0pt">***********************************************<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Jean Marie Le Bechec<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Service Commun de la Documentation<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Responsable ingenierie documentaire<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">&amp;<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Direction du Systeme d'Information<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Referent Etudes<o:p></o:p></pre>
            <pre style="margin-left:36.0pt"><o:p> </o:p></pre>
            <pre style="margin-left:36.0pt">Institut National Polytechnique de Toulouse<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">6 allee Emile Monso - bp 34038 -<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">31029 Toulouse cedex 4<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Tel : 05 34 32 31 16<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Tel Port : 06 40 81 35 68<o:p></o:p></pre>
            <pre style="margin-left:36.0pt">Mail : <a href="mailto:lebechec@inp-toulouse.fr" moz-do-not-send="true">lebechec@inp-toulouse.fr</a><o:p></o:p></pre>
            <pre style="margin-left:36.0pt">*********************************************** <o:p></o:p></pre>
          </div>
          <p class="MsoNormal" style="margin-left:36.0pt">*** Options: <a
              class="moz-txt-link-freetext"
              href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
              moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
            *** Archive: <a class="moz-txt-link-freetext"
              href="http://www.eprints.org/tech.php/"
              moz-do-not-send="true">http://www.eprints.org/tech.php/</a>
            *** EPrints community wiki: <a
              class="moz-txt-link-freetext"
              href="http://wiki.eprints.org/" moz-do-not-send="true">http://wiki.eprints.org/</a>
            *** EPrints developers Forum: <a
              class="moz-txt-link-freetext"
              href="http://forum.eprints.org/" moz-do-not-send="true">http://forum.eprints.org/</a>
            <o:p></o:p></p>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/" moz-do-not-send="true">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/" moz-do-not-send="true">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/" moz-do-not-send="true">http://forum.eprints.org/</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 

***********************************************
Jean Marie Le Bechec
Service Commun de la Documentation
Responsable ingenierie documentaire
&amp;
Direction du Systeme d'Information
Referent Etudes

Institut National Polytechnique de Toulouse
6 allee Emile Monso - bp 34038 -
31029 Toulouse cedex 4
Tel : 05 34 32 31 16
Tel Port : 06 40 81 35 68
Mail : <a class="moz-txt-link-abbreviated" href="mailto:lebechec@inp-toulouse.fr" moz-do-not-send="true">lebechec@inp-toulouse.fr</a>
*********************************************** 
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 

***********************************************
Jean Marie Le Bechec
Service Commun de la Documentation
Responsable ingenierie documentaire
&amp;
Direction du Systeme d'Information
Referent Etudes

Institut National Polytechnique de Toulouse
6 allee Emile Monso - bp 34038 -
31029 Toulouse cedex 4
Tel : 05 34 32 31 16
Tel Port : 06 40 81 35 68
Mail : <a class="moz-txt-link-abbreviated" href="mailto:lebechec@inp-toulouse.fr">lebechec@inp-toulouse.fr</a>
*********************************************** 
</pre>
  </body>
</html>