Skip to content

Commit df46c9d

Browse files
eskander17steph-ieffam
authored andcommitted
Merged in main-cris_DSC-1497 (pull request DSpace#58)
[DSC-1497] Add Authority SOURCE ref on the lookup results Approved-by: Stefano Maffei
2 parents 8f34951 + 330ab8b commit df46c9d

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

vocabularies.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ sample for a hierarchical authority (srsc):
217217
"hasChildren": "false",
218218
"note": "Familjeforskning"
219219
},
220+
"source" : "srsc",
220221
"type": "vocabularyEntry",
221222
"_links": {
222223
"vocabularyEntryDetail": {
@@ -233,6 +234,7 @@ sample for a hierarchical authority (srsc):
233234
"hasChildren": "false",
234235
"note": "Ungdomsforskning"
235236
},
237+
"source" : "srsc",
236238
"type": "vocabularyEntry",
237239
"_links": {
238240
"vocabularyEntryDetail": {
@@ -276,6 +278,8 @@ sample for a vocabulary providing an authority value
276278
"authority": "42768ba6-0ba1-4aa3-971e-9c4e27fd7558",
277279
"display": "Bollini, Andrea",
278280
"value": "Bollini, Andrea",
281+
"otherInformation": {},
282+
"source" : "local",
279283
"type": "vocabularyEntry",
280284
"_links": {
281285
"vocabularyEntryDetail": {

vocabularyEntryDetails.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Provide detailed information about a specific vocabulary entry. The JSON respons
2424
"parent": "HUMANITIES and RELIGION",
2525
"hasChildren": "true"
2626
},
27+
"source" : "srsc",
2728
"type" : "vocabularyEntryDetail",
2829
"_links" : {
2930
"self" : {
@@ -48,6 +49,7 @@ Attributes:
4849
* display: the preferred value to display for the entry
4950
* selectable: in an hierachical vocabulary it could be required to allow the selection only of leaves in the tree
5051
* otherInformation: an map of additional string attributes useful to provide more context in the UI for the selection
52+
* source: Authority SOURCE reference
5153

5254
Exposed links:
5355
* vocabulary: the vocabulary that the entry belong to
@@ -76,7 +78,7 @@ Return codes:
7678
Provide detailed information about all top entries of a specific hierarchical vocabulary. The JSON response document is as follow
7779

7880
-- this one represent top entries of "srsc" vocabulary
79-
```json,
81+
```json
8082
{
8183
"id" : "srsc:SCB11",
8284
"value" : "HUMANITIES and RELIGION",
@@ -86,6 +88,7 @@ Provide detailed information about all top entries of a specific hierarchical vo
8688
"note" : "HUMANIORA och RELIGIONSVETENSKAP",
8789
"hasChildren": "true"
8890
},
91+
"source" : "srsc",
8992
"type" : "vocabularyEntryDetail",
9093
"_links" : {
9194
"self" : {
@@ -110,6 +113,7 @@ Provide detailed information about all top entries of a specific hierarchical vo
110113
"note" : "RÄTTSVETENSKAP/JURIDIK",
111114
"hasChildren" : "true"
112115
},
116+
"source" : "srsc",
113117
"type" : "vocabularyEntryDetail",
114118
"_links" : {
115119
"self" : {
@@ -136,6 +140,7 @@ Provide detailed information about all top entries of a specific hierarchical vo
136140
"note" : "TVÄRVETENSKAPLIGA FORSKNINGSOMRÅDEN",
137141
"hasChildren" : "true"
138142
},
143+
"source" : "srsc",
139144
"type" : "vocabularyEntryDetail",
140145
"_links" : {
141146
"self" : {

0 commit comments

Comments
 (0)