将dspace整合到java项目中

来源:互联网 发布:手机gps测试软件 编辑:程序博客网 时间:2024/05/21 09:10

1 安装完成DSpace系统后,配置/dspace/config/dspace.cfg文件(安装路径、ip、数据库连接配置等, 及到地址的用ip代替localhost,新增一个系统用户(如kp@163.com

2 通过http://ip:port/jspui/ 入口增加一个community,在此community上增加一个collection,通过查询dspace数据库表collection得到此collectioncollection_id

3 进入到 /项目/WebRoot/WEB-INF/classes 目录,检查application.properties文件所配置的dspace数据库ip地址、用户名以及密码,修改dspace.cfg文件,查找dspace.dir,确定本机存在此路径,确定${dspace.dir}/config/下面存在default.licenselicense.txt文件

4 在dspace.cfg中查找dspace.eperson ,做如下修改:dspace.eperson = kp@163.com(根据步骤一所建的用户修改),查找dspace.collection,如下修改:dspace.collectionid = 1 (根据步骤二所建的collection_id

5 相文配置文件如下:

 

------------------------------dspace.cfg---------------------------------

#dspace安装目录,只对于引用的dspace在本机的情况下

dspace.dir = /usr/local/dspace

#上传目录

upload.dir = 这个上传目录

#dspace用户

dspace.eperson = kp@163.com

#在dspace中建的collection ID 在postgresql中查看

dspace.collectionid = 1

#对应的数据库地址

db.url = jdbc:postgresql://IP:5432/dspace

--------------------------------application.properties---------------------

#postgresql version database setting
jdbc.postgresql.driver=org.postgresql.Driver
jdbc.postgresql.url=jdbc:postgresql://IP:5432/dspace
jdbc.postgresql.username=dspace
jdbc.postgresql.password=dspace

----------------------------------default.license---------------------------

NON-EXCLUSIVE DISTRIBUTION LICENSE

By signing and submitting this license, you (the author(s) or copyright
owner) grants to DSpace University (DSU) the non-exclusive right to reproduce,
translate (as defined below), and/or distribute your submission (including
the abstract) worldwide in print and electronic format and in any medium,
including but not limited to audio or video.

You agree that DSU may, without changing the content, translate the
submission to any medium or format for the purpose of preservation.

You also agree that DSU may keep more than one copy of this submission for
purposes of security, back-up and preservation.

You represent that the submission is your original work, and that you have
the right to grant the rights contained in this license. You also represent
that your submission does not, to the best of your knowledge, infringe upon
anyone's copyright.

If the submission contains material for which you do not hold copyright,
you represent that you have obtained the unrestricted permission of the
copyright owner to grant DSU the rights required by this license, and that
such third-party owned material is clearly identified and acknowledged
within the text or content of the submission.

IF THE SUBMISSION IS BASED UPON WORK THAT HAS BEEN SPONSORED OR SUPPORTED
BY AN AGENCY OR ORGANIZATION OTHER THAN DSU, YOU REPRESENT THAT YOU HAVE
FULFILLED ANY RIGHT OF REVIEW OR OTHER OBLIGATIONS REQUIRED BY SUCH
CONTRACT OR AGREEMENT.

DSU will clearly identify your name(s) as the author(s) or owner(s) of the
submission, and will not make any alteration, other than as allowed by this
license, to your submission.

-----------------------------------license.txt-----------------------------------

NOTE: PLACE YOUR OWN LICENSE HERE
This sample license is provided for informational purposes only.

NON-EXCLUSIVE DISTRIBUTION LICENSE

By signing and submitting this license, you (the author(s) or copyright
owner) grants to DSpace University (DSU) the non-exclusive right to reproduce,
translate (as defined below), and/or distribute your submission (including
the abstract) worldwide in print and electronic format and in any medium,
including but not limited to audio or video.

You agree that DSU may, without changing the content, translate the
submission to any medium or format for the purpose of preservation.

You also agree that DSU may keep more than one copy of this submission for
purposes of security, back-up and preservation.

You represent that the submission is your original work, and that you have
the right to grant the rights contained in this license. You also represent
that your submission does not, to the best of your knowledge, infringe upon
anyone's copyright.

If the submission contains material for which you do not hold copyright,
you represent that you have obtained the unrestricted permission of the
copyright owner to grant DSU the rights required by this license, and that
such third-party owned material is clearly identified and acknowledged
within the text or content of the submission.

IF THE SUBMISSION IS BASED UPON WORK THAT HAS BEEN SPONSORED OR SUPPORTED
BY AN AGENCY OR ORGANIZATION OTHER THAN DSU, YOU REPRESENT THAT YOU HAVE
FULFILLED ANY RIGHT OF REVIEW OR OTHER OBLIGATIONS REQUIRED BY SUCH
CONTRACT OR AGREEMENT.

DSU will clearly identify your name(s) as the author(s) or owner(s) of the
submission, and will not make any alteration, other than as allowed by this
license, to your submission.

补充收割入口:http://192.168.0.103:8080/oai/request

原创粉丝点击