Skip to content

Commit 62f3e90

Browse files
committed
Merged dspace-cris-7 into DSC-1379-security-for-nested-metadata-shoul-take-security-level
2 parents dc2a870 + 8a3781e commit 62f3e90

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<div class="input-group">
55
<input type="text" class="form-control" [(ngModel)]="searchText" (keyup.enter)="search()">
66
<div class="input-group-append" id="button-addon4">
7-
<button class="btn btn-outline-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()">
7+
<button class="btn btn-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()">
88
<span><i class="fas fa-search"></i> {{'vocabulary-treeview.search.form.search' | translate}}</span>
99
</button>
10-
<button class="btn btn-outline-secondary ml-3 flex-shrink-0" type="button" (click)="reset()">
11-
<span><i class="fas fa-eraser"></i> {{'vocabulary-treeview.search.form.reset' | translate}}</span>
12-
</button>
13-
<button *ngIf="showAdd && this.vocabularyOptions.closed" class="btn btn-outline-primary" type="button" (click)="add()">
14-
{{'vocabulary-treeview.search.form.add' | translate}}
15-
</button>
1610
</div>
1711
</div>
12+
<button class="btn btn-secondary ml-3 flex-shrink-0" type="button" (click)="reset()">
13+
<span><i class="fas fa-eraser"></i> {{'vocabulary-treeview.search.form.reset' | translate}}</span>
14+
</button>
15+
<button *ngIf="showAdd && !this.vocabularyOptions.closed" class="btn btn-secondary ml-3 flex-shrink-0" type="button" (click)="add()">
16+
<span><i class="fas fa-plus"></i> {{'vocabulary-treeview.search.form.add' | translate}}</span>
17+
</button>
1818
</div>
1919
</div>
2020
<div class="treeview-container">

src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ export class VocabularyTreeviewComponent implements OnDestroy, OnInit, OnChanges
319319
* Return an id for a given {@link VocabularyTreeItemType}
320320
*/
321321
private getEntryId(entry: VocabularyTreeItemType): string {
322-
return entry?.authority || entry?.otherInformation?.id || (entry as any)?.id || undefined;
322+
const entryId: string = entry?.authority || entry?.otherInformation?.id || (entry as any)?.id || undefined;
323+
return entryId?.startsWith(this.vocabularyOptions.name) ? entryId.replace(`${this.vocabularyOptions.name}:`, '') : entryId;
323324
}
324325

325326
/**

src/app/submission/sections/license/section-license.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const SECTION_LICENSE_FORM_MODEL = [
2020
required: null
2121
},
2222
errorMessages: {
23-
notgranted: 'submission.sections.license.notgranted'
23+
required: 'submission.sections.license.notgranted'
2424
},
2525
type: 'CHECKBOX',
2626
}

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6676,6 +6676,8 @@
66766676

66776677
"vocabulary-treeview.tree.description.srsc": "Research Subject Categories",
66786678

6679+
"vocabulary-treeview.tree.description.publication-coar-types": "Publication types",
6680+
66796681
"vocabulary-treeview.info": "Select a subject to add as search filter",
66806682

66816683
"uploader.browse": "browse",

0 commit comments

Comments
 (0)