From: Sean C. <sea...@gm...> - 2010-10-29 13:44:29
|
On 29 October 2010 15:05, Demian Katz <dem...@vi...> wrote: > >> What should the General/xslt setting look like? > > The second parameter of import-xsl.php should be a .properties file, not an .xsl file -- the properties file tells the program where to find the XSLT code as well as allowing you to override XSLT parameters as needed. See ojs.properties for an example. You should be able to set up a dspace version fairly easily based on this one. Please let me know if you still have questions! Sorry, that was rather silly of me. (Probably not unexpected by now.) Thank you, I can now import a single record: php import-xsl.php ../harvest/DUT_IR/processed/1288187320_oai_ir_dut_ac_za_10321_549.xml dspace.properties But the batch importer doesn't seem to work. That is, it runs and claims to be successfully importing the files, which it moves to another processed directory, but VuFind still shows only the first sample record. ./batch-import-xsl.sh DUT_IR/processed/ ../import/dspace.properties ... Processing /usr/local/vufind/harvest/DUT_IR/processed//1288187320_oai_ir_dut_ac_za_10321_548.xml ... Successfully imported /usr/local/vufind/harvest/DUT_IR/processed//1288187320_oai_ir_dut_ac_za_10321_548.xml... Processing /usr/local/vufind/harvest/DUT_IR/processed//1288187320_oai_ir_dut_ac_za_10321_549.xml ... Successfully imported /usr/local/vufind/harvest/DUT_IR/processed//1288187320_oai_ir_dut_ac_za_10321_549.xml... Optimizing index... Also, using php import-xsl.php again seems to overwrite the existing record in VuFind, rather than appending. What stupid thing am I doing now? Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ |