Location of pdf files in dspace server

北慕城南 提交于 2019-12-11 13:11:51

问题


I was wondering where in the live server files, can I find the pdf files I submitted in my DSpace instance? Does anyone knows where it is located? any help would be very much appreciated


回答1:


Given a handle and a bitstream id number, you can get to the path for your file with the following query. By default your bitstream_id will be 1 unless you have added/removed bitstreams from your item.

select 
  '${YOUR_ASSETSTORE_PATH}' || 
  substring(bit.internal_id, 1, 2) || '/' || 
  substring(bit.internal_id, 3, 2) || '/' || 
  substring(bit.internal_id, 5, 2) || '/' || 
  bit.internal_id 
from bitstream bit 
inner join bundle2bitstream b2b on b2b.bitstream_id=bit.bitstream_id 
inner join bundle b on b.bundle_id=b2b.bundle_id and b.name='ORIGINAL' 
inner join item2bundle i2b on i2b.bundle_id=b.bundle_id 
inner join handle h on i2b.item_id=h.resource_id 
where h.handle='${handle}' and bit.sequence_id =${seq}; 



回答2:


Within your DSpace installation directory, the default location for the storage of the uploaded assets is /assetstore

Within that directory, you can follow terry's advice for locating a particular file.



来源:https://stackoverflow.com/questions/28081480/location-of-pdf-files-in-dspace-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!