Skip to content

Commit d2c68e0

Browse files
zubeydecivelekjrcastro2
authored andcommitted
form: change related links to related identifiers
1 parent b9596f8 commit d2c68e0

2 files changed

Lines changed: 133 additions & 7 deletions

File tree

  • cds/modules/deposit/static

cds/modules/deposit/static/json/cds_deposit/forms/video.json

Lines changed: 132 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,17 +567,143 @@
567567
],
568568
"related_links": [
569569
{
570-
"key": "related_links",
570+
"key": "related_identifiers",
571571
"type": "array",
572-
"add": "Add related links",
572+
"add": "Add related identifiers",
573+
"title": "Related Identifiers",
574+
"description": "Add identifiers for related resources such as DOIs, URLs, or Indico event IDs.",
573575
"items": [
574576
{
575-
"title": "Name",
576-
"key": "related_links[].name"
577+
"title": "Identifier",
578+
"key": "related_identifiers[].identifier",
579+
"required": true,
580+
"placeholder": "e.g., 10.1234/example.doi, https://example.com, 12345",
581+
"description": "The identifier value (DOI, URL, or Indico event ID)"
577582
},
578583
{
579-
"title": "URL",
580-
"key": "related_links[].url"
584+
"title": "Scheme",
585+
"key": "related_identifiers[].scheme",
586+
"type": "select",
587+
"required": true,
588+
"placeholder": "Select identifier scheme",
589+
"description": "The type of identifier scheme",
590+
"titleMap": [
591+
{
592+
"value": "URL",
593+
"name": "URL (Uniform Resource Locator)"
594+
},
595+
{
596+
"value": "DOI",
597+
"name": "DOI (Digital Object Identifier)"
598+
},
599+
{
600+
"value": "Indico",
601+
"name": "Indico (Event ID)"
602+
},
603+
{
604+
"value": "CDS",
605+
"name": "CDS (CERN Document Server Record ID)"
606+
}
607+
]
608+
},
609+
{
610+
"title": "Relation Type",
611+
"key": "related_identifiers[].relation_type",
612+
"type": "select",
613+
"required": true,
614+
"placeholder": "Select relation type",
615+
"description": "How this resource relates to the identified resource",
616+
"titleMap": [
617+
{
618+
"value": "IsPartOf",
619+
"name": "Is part of"
620+
},
621+
{
622+
"value": "IsVariantFormOf",
623+
"name": "Is variant form of"
624+
}
625+
]
626+
},
627+
{
628+
"title": "Resource Type",
629+
"key": "related_identifiers[].resource_type",
630+
"type": "select",
631+
"placeholder": "Select resource type (optional)",
632+
"description": "The type of the related resource (optional)",
633+
"titleMap": [
634+
{
635+
"value": "Audiovisual",
636+
"name": "Audiovisual"
637+
},
638+
{
639+
"value": "Book",
640+
"name": "Book"
641+
},
642+
{
643+
"value": "Collection",
644+
"name": "Collection"
645+
},
646+
{
647+
"value": "ConferencePaper",
648+
"name": "Conference Paper"
649+
},
650+
{
651+
"value": "DataPaper",
652+
"name": "Data Paper"
653+
},
654+
{
655+
"value": "Dataset",
656+
"name": "Dataset"
657+
},
658+
{
659+
"value": "Event",
660+
"name": "Event"
661+
},
662+
{
663+
"value": "Image",
664+
"name": "Image"
665+
},
666+
{
667+
"value": "InteractiveResource",
668+
"name": "Interactive Resource"
669+
},
670+
{
671+
"value": "Model",
672+
"name": "Model"
673+
},
674+
{
675+
"value": "PhysicalObject",
676+
"name": "Physical Object"
677+
},
678+
{
679+
"value": "Report",
680+
"name": "Report"
681+
},
682+
{
683+
"value": "Service",
684+
"name": "Service"
685+
},
686+
{
687+
"value": "Software",
688+
"name": "Software"
689+
},
690+
{
691+
"value": "Sound",
692+
"name": "Sound"
693+
},
694+
{
695+
"value": "Text",
696+
"name": "Text"
697+
},
698+
{
699+
"value": "Workflow",
700+
"name": "Workflow"
701+
},
702+
{
703+
"value": "Other",
704+
"name": "Other"
705+
}
706+
]
581707
}
582708
]
583709
}

cds/modules/deposit/static/templates/cds_deposit/types/video/form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ <h4 class="mb-5 mt-0">
206206
</li>
207207
<li role="presentation" ng-class="{active: active=='related_links'}">
208208
<a ng-click="active='related_links'" role="tab" data-toggle="tab">
209-
Related links
209+
Related information
210210
</a>
211211
</li>
212212
<li role="presentation" ng-class="{active: active=='admin'}" ng-show="$ctrl.cdsDepositCtrl.cdsDepositsCtrl.isSuperAdmin">

0 commit comments

Comments
 (0)