EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #06800
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Mime Types
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Mime Types
- From: dago <dago.salas@gmail.com>
- Date: Mon, 28 Aug 2017 15:24:41 -0500
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@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?
*** 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@gmail.com
dago.salas@gmail.com
- References:
- [EP-tech] Mime Types
- From: dago <dago.salas@gmail.com>
- [EP-tech] Mime Types
- Prev by Date: Re: [EP-tech] Importing ROARMAP in Wikidata
- Next by Date: Re: [EP-tech] SSL (HTTPS) only for an EPrints repository
- Previous by thread: [EP-tech] Mime Types
- Next by thread: Re: [EP-tech] Importing ROARMAP in Wikidata
- Index(es):