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
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] All exported subjects marked as depositable
- From: Jose Martin <J.Martin@ulcc.ac.uk>
- Date: Wed, 15 Aug 2012 15:21:56 +0000
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 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) ---- |
- Prev by Date: [EP-tech] Re: Search description for the 'simple_search' page
- Next by Date: [EP-tech] table vs div
- Previous by thread: [EP-tech] Patch for ScreenProcessor.pm
- Next by thread: [EP-tech] table vs div
- Index(es):