My question is regarding importing files located in subfolders off of a parent 
folder using the dspace importer.

An example content file that I am using for testing is shown below ...


[content]

Apr._1_2005_to_Oct._18_2006.pdf bundle:ORIGINAL
2012\01_Feb.pdf bundle:ORIGINAL description:2012_01_Feb.pdf
2012\02_Apr.pdf bundle:ORIGINAL description:2012_02_Apr.pdf
2012\03_June.pdf        bundle:ORIGINAL description:2012_03_June.pdf
2012_01_Feb.pdf bundle:ORIGINAL
2012_02_Apr.pdf bundle:ORIGINAL
2012_03_June.pdf        bundle:ORIGINAL
license.txt     bundle:LICENSE


The files in question are the ones that are in the "2012" subfolder, i.e., 
2012\01_Feb.pdf.

The importer seems to be able to find and import the files in the "2012" 
subfolder, but when I click on the "view/open" link in the item record, I get a 
webpage not found error which is happening because the forward-slash in the 
filename is being html encoded by dspace (I would guess), instead of being 
displayed as an actual forwardslash.

For example, the URL being generated for the view/open link looks like the 
following with the forwardslash encoded as "%5c":

http://10.20.1.70/xmlui/bitstream/handle/123456789/412/2012%5c02_Apr.pdf?sequence=3

instead of:

http://10.20.1.70/xmlui/bitstream/handle/123456789/412/2012/02_Apr.pdf?sequence=3
 (which works by the way, this link will successfully open the associated 
bitstream)


Does anyone have any suggestions about how to work around this issue? Is it 
possible to easily change how the view/open URL is generated so that it is not 
html encoded? And if so, are there other problems that would occur if the html 
encoding was disabled for the view/open URL?



Michael Allsopp
Systems Assistant
Legislative Library of British Columbia
t: 250.356.1485
e: [email protected]


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to