Opened 16 years ago

#260 new defect

Problem with MetadataXMLPlug when -maxdocs specified

Reported by: kaybl1991 Owned by: nobody
Priority: low Milestone:
Component: Collection Building: Plugins Severity:
Keywords: maxdocs MetadataXMLPlug Cc:

Description

I've been struggling against some pretty strange behaviour with MetadataXMLPlug. I'm trying to test a new plugin, so I planned to just import a collection of a single document with a matching metadata.xml

But if I run "import.pl -maxdocs 1 lincoln" I get output like this:

WARNING: None of -removeold, -keepold or -incremental were specified, defaulting to -removeold. Current contents of archives directory will be deleted. Removing current contents of the archives directory... RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2\images RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2\images\rg48-376-02-05-09a LAZoomifyPlug processing "D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2\index_box2_01171860_1p1.php" * Import complete *

Which finds the one file to process (index_box2_01171860_1p1.php), but it's missing out the metadata.xml file. However, if I move all the other files out of the way, and run with "import.pl lincoln" I get:

WARNING: None of -removeold, -keepold or -incremental were specified, defaulting to -removeold. Current contents of archives directory will be deleted. Removing current contents of the archives directory... RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376 RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2 MetadataXMLPlug: processing specialfeatures\national-archives\rg48\entries351-400\entry376\box2\metadata.xml RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2\images RecPlug: getting directory D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2\images\rg48-376-02-05-09a LAZoomifyPlug processing "D:\Projects\gsdl2.80\collect\lincoln\import\specialfeatures\national-archives\rg48\entries351-400\entry376\box2\index_box2_01171860_1p1.php" ... * Import complete *

I suspect that MetadataXMLPlug might be listening to the -maxdocs parameter, when maybe it shouldn't. I tested using the demo collection and saw the same behaviour.

Change History (0)

Note: See TracTickets for help on using tickets.