[EP-tech] All exported subjects marked as depositable

Jose Martin J.Martin at ulcc.ac.uk
Wed Aug 15 16:21:56 BST 2012


Hi all,

The "depositable" field in the "subject" table has apparently changed from boolean to varchar, so when exporting subjects at perl_lib/EPrints/Plugin/Export/Subject.pm the comparison:

                push @parts, $dataobj->get_value( "depositable" ) ? "1" : "0";

always returns  "1", even if the value for the field is "FALSE".

A fix for this would be:

                push @parts, uc($dataobj->get_value( "depositable" )) eq 'TRUE' ? "1" : "0";

Best,

                Jose.

----
Jose Martin
Digital Repositories Specialist
Research Technologies Group
University of London Computer Centre
Senate House  |  Malet Street  |  London  |  WC1E 7HU

t: +44 (0)20 7863 1342
e: J.Martin at ulcc.ac.uk
w: http://www.ulcc.ac.uk/
b: http://dablog.ulcc.ac.uk/

To ensure you receive the full benefits of the repositories service please remember to cc repositories at ulcc.ac.uk<mailto:repositories at ulcc.ac.uk>

The University of London is an exempt charity in England and Wales and a charity registered in Scotland (reg. no. SC041194)
----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120815/e083de11/attachment.html 


More information about the Eprints-tech mailing list