<div dir="ltr">Well, I found the solution, i´ts very simple<div><br></div><div>Comment this:<br><div><br></div><div>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-s1">#my $format = $mimetypes-&gt;{$_-&gt;get_value(&quot;format&quot;)};<br></span><span class="gmail-s1">#$format = $_-&gt;get_value(&quot;format&quot;) unless defined $format;</span></blockquote>
<p class="gmail-p1"><span class="gmail-s1">And add this:</span></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-s1">my $format = $mimetypes-&gt;{$_-&gt;get_value(&quot;mime_type&quot;)};<br></span>$format = $_-&gt;get_value(&quot;mime_type&quot;) unless defined $format;</blockquote>
<p class="gmail-p1"><br></p><p class="gmail-p1">Cheers,</p></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 25, 2017 at 5:28 PM, dago <span dir="ltr">&lt;<a href="mailto:dago.salas@gmail.com" target="_blank">dago.salas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr">Hi everybody!<div><br></div><div>On the OA ouput I need the format metadata follow this form:</div><div><br></div><div>&lt;dc:format&gt;application/pdf&lt;/<wbr>dc:format&gt;</div><div><br></div><div>But I got this:</div><div><br></div><div><span class="m_2745550674499870711gmail-html-tag" style="font-family:monospace;font-size:medium;white-space:pre-wrap">&lt;dc:format&gt;</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap">spreadsheet</span><span class="m_2745550674499870711gmail-html-tag" style="font-family:monospace;font-size:medium;white-space:pre-wrap">&lt;/dc:<wbr>format&gt;</span><br></div><div><span class="m_2745550674499870711gmail-html-tag" style="font-family:monospace;font-size:medium;white-space:pre-wrap"><br></span></div><div><font face="monospace" size="3"><span style="white-space:pre-wrap">The DC file show this (what supposedly works):</span></font></div><div><font face="monospace" size="3"><span style="white-space:pre-wrap"><br></span></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">foreach( @documents )<br>        {<br>                my $format = $mimetypes-&gt;{$_-&gt;get_value(&quot;<wbr>format&quot;)};<br>                $format = $_-&gt;get_value(&quot;format&quot;) unless defined $format;<br>                #$format = &quot;application/octet-stream&quot; unless defined $format;<br>                push @dcdata, [ &quot;format&quot;, $format ];<br>.<br>.<br>.</blockquote><div><br></div><div>How can I do to display the mime format?</div><div><br></div><div>thanks in advance.<br clear="all"><div><br></div>-- <br><div class="m_2745550674499870711gmail_signature">Dagoberto Salas<br><a href="mailto:dago.salas@gmail.com" target="_blank">dago.salas@gmail.com</a></div>
</div></div>
</div></div><br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Dagoberto Salas<br><a href="mailto:dago.salas@gmail.com" target="_blank">dago.salas@gmail.com</a></div>
</div>