[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Mime Types
- Subject: [EP-tech] Mime Types
- From: dago.salas at gmail.com (dago)
- Date: Mon, 28 Aug 2017 15:24:41 -0500
- In-reply-to: <EMEW3|42725041fecee653aaff24ba05a285a3y7ONU814eprints-tech-bounces|ecs.soton.ac.uk|CAC1+wL930kACJY5WiX+xCowS=kuyAipaysEGXVsrhAfZU8Wkgw@mail.gmail.com>
- References: <CAC1+wL930kACJY5WiX+xCowS=kuyAipaysEGXVsrhAfZU8Wkgw@mail.gmail.com> <EMEW3|42725041fecee653aaff24ba05a285a3y7ONU814eprints-tech-bounces|ecs.soton.ac.uk|CAC1+wL930kACJY5WiX+xCowS=kuyAipaysEGXVsrhAfZU8Wkgw@mail.gmail.com>
Well, I found the solution, i?ts very simple
Comment this:
#my $format = $mimetypes->{$_->get_value("format")};
> #$format = $_->get_value("format") unless defined $format;
And add this:
> my $format = $mimetypes->{$_->get_value("mime_type")};
> $format = $_->get_value("mime_type") unless defined $format;
Cheers,
On Fri, Aug 25, 2017 at 5:28 PM, dago <dago.salas at gmail.com> wrote:
> Hi everybody!
>
> On the OA ouput I need the format metadata follow this form:
>
> <dc:format>application/pdf</dc:format>
>
> But I got this:
>
> <dc:format>spreadsheet</dc:format>
>
> The DC file show this (what supposedly works):
>
> foreach( @documents )
>> {
>> my $format = $mimetypes->{$_->get_value("format")};
>> $format = $_->get_value("format") unless defined $format;
>> #$format = "application/octet-stream" unless defined
>> $format;
>> push @dcdata, [ "format", $format ];
>> .
>> .
>> .
>
>
> How can I do to display the mime format?
>
> thanks in advance.
>
> --
> Dagoberto Salas
> dago.salas at gmail.com
>
> *** 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/
>
>
--
Dagoberto Salas
dago.salas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170828/f1073ace/attachment.html