1
|
# Creating a new datasource
|
2
|
|
3
|
The GUI for the addition of a new datasource is under implementation.
|
4
|
Meanwhile, you can manually create a new datasource by working directly on the D-Net XML profiles.
|
5
|
Just follow these steps and do not worry: it is faster to do it then to write about it!
|
6
|
|
7
|
- Locate the D-Net profile of the mock datasource: http://localhost:8280/app/mvc/ui/isManager.do#/profile/a9b3496c-2ce7-43e7-83a1-f934b22a04d0_UmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZXMvUmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZVR5cGU=
|
8
|
- Click on the “Edit” button and copy all the content of the profile
|
9
|
- Click on the “Abort” button
|
10
|
- Click on “Register new profile” on the left side menu
|
11
|
- Paste the content copied in 2 in the dedicate text box. You can resize the box to make it larger at your convenience
|
12
|
- Change the following values in the XML you copied:
|
13
|
- Datasource identifier: <code>DATASOURCE_ORIGINAL_ID</code> (current value is TEST, please use a string with no spaces)
|
14
|
- Datasource official name: <code>OFFICIAL_NAME</code> (the official name of the datasource)
|
15
|
- Datasource english name: <code>ENGLISH_NAME</code> (the english name of the datasource)
|
16
|
- Institution: <code>REPOSITORY_INSTITUTION</code> (the institution responsible for the datasource)
|
17
|
- Interface identifier, access protocol and url
|
18
|
- Datasource namespace prefix: 12 chars namespace that will be used to generate the identifiers of aggregated records. Ensure that the value of NamespacePrefix is EXACTLY 12 chars.
|
19
|
|
20
|
Example for the interface params:
|
21
|
```
|
22
|
<INTERFACE id="api_________::minimal::mock::metadata" Please change the “mock” substring with something else.
|
23
|
<ACCESS_PROTOCOL format="oai_dc" set="">oai</ACCESS_PROTOCOL>
|
24
|
<BASE_URL>http://theOAIBaseURL</BASE_URL>
|
25
|
```
|
26
|
Please add the “set” parameter (attribute of `ACCESS_PROTOCOL`), if needed, and properly change the OAI-PMH base URL you want to harvest from.
|
27
|
|
28
|
Example for the NamespacePrefix:
|
29
|
```
|
30
|
<FIELD>
|
31
|
<key>NamespacePrefix</key>
|
32
|
<value>dnet_____min</value>
|
33
|
</FIELD>
|
34
|
```
|
35
|
|
36
|
Finally, you can click on “Register” and you’ll find the new datasource together with the others.
|
37
|
|
38
|
#Need support?
|
39
|
Do not hesitate to contact dnet-team@isti.cnr.it
|
40
|
|