EPrints Technical Mailing List Archive

Message: #00945


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] All exported subjects marked as depositable


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@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@ulcc.ac.uk

 

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

----