J.Salter at leeds.ac.uk
Thu Oct 13 10:35:21 BST 2016
Might be worth mentioning that there is a function in bin/epadmin to redo mime types.
If you upgraded from 3.3.1 to 3.3.2, a suggestion to run this was made, but you can run it if it looks like your mime types are not quite right (and as file type detection improves).
>From the perldoc:
epadmin redo_mime_type repository_id dataset [ objectid, ... ]
Re-run the file format identification. Dataset may be one of 'document' or 'file'. If 'document' only re-does the identification of the main files in documents.
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Thomas Lauke
Sent: 13 October 2016 09:09
To: eprints-tech at ecs.soton.ac.uk
Cc: tomasz.neugebauer at concordia.ca
Subject: Re: [EP-tech] get_mime_type?
> How would I get the mime_type of a document in EPrints?
refering to ~/Eprints/perl_lib/EPrints/DataObj/Document.pm imho
$doc->get_value( "mime_type" );
does the job!?
*** 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/
More information about the Eprints-tech