Skip to content

Commit

Permalink
Remove collection id from full record pages, and update its label fo…
Browse files Browse the repository at this point in the history
…r list display (#1675)

* Remove collection id from full record pages, and update its label for list display

* Return "this" for objectPath
  • Loading branch information
lfarrell authored Feb 13, 2024
1 parent 6d94b00 commit 65b6e99
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,12 @@ public Map<String, Object> getDynamicFields() {

@Override
public ObjectPath getObjectPath() {
return representative.getObjectPath();
return this.representative.getObjectPath();
}

@Override
public void setObjectPath(ObjectPath objectPath) {
representative.setObjectPath(objectPath);
this.representative.setObjectPath(objectPath);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
<span class="has-text-weight-bold">{{ $t('display.collection') }}: </span>
<router-link class="parent-collection" :to="parentUrl">{{ recordData.briefObject.parentCollectionName }}</router-link>
</li>
<li v-if="fieldExists(recordData.briefObject.collectionId)">
<span class="has-text-weight-bold">{{ $t('full_record.collection_id') }}: </span>
{{ recordData.briefObject.collectionId }}
</li>
<li v-if="fieldExists(recordData.findingAidUrl)">
<span class="has-text-weight-bold">{{ $t('full_record.finding_aid') }}: </span>
<a class="finding-aid" :href="recordData.findingAidUrl">{{ recordData.findingAidUrl }}</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
<span class="has-text-weight-bold">{{ $t('display.collection') }}: </span>
<router-link class="parent-collection" :to="parentUrl">{{ recordData.briefObject.parentCollectionName }}</router-link>
</li>
<li v-if="fieldExists(recordData.briefObject.collectionId)">
<span class="has-text-weight-bold">{{ $t('full_record.collection_id') }}: </span>
{{ recordData.briefObject.collectionId }}
</li>
<li v-if="fieldExists(recordData.findingAidUrl)">
<span class="has-text-weight-bold">{{ $t('full_record.finding_aid') }}: </span>
<a class="finding-aid" :href="recordData.findingAidUrl">{{ recordData.findingAidUrl }}</a>
Expand Down
2 changes: 1 addition & 1 deletion static/js/vue-cdr-access/src/components/listDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Renders search results in a list view display format
<span class="has-text-weight-bold">{{ $t('display.collection') }}:</span> <router-link class="metadata-link" :to="recordUrl(record.objectPath[2].pid, linkBrowseType)">{{ collectionInfo(record.objectPath) }}</router-link>
</div>
<div v-if="record.objectPath.length >= 3 && showCollection(record)" class="collection_id">
<span class="has-text-weight-bold">{{ $t('display.collection_number') }}:</span> {{ record.objectPath[2].collectionId }}
<span class="has-text-weight-bold">{{ $t('display.collection_id') }}:</span> {{ record.objectPath[2].collectionId }}
</div>
<div v-if="record.type === 'Work' || record.type === 'File'"><span class="has-text-weight-bold">{{ $t('display.file_type') }}:</span> {{ getFileType(record) }}</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion static/js/vue-cdr-access/src/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default {
display: {
collection: "Collection",
collection_id: "Archival Collection ID",
collection_number: "Collection Number",
date_deposited: "Date Deposited",
file_type: "File Type"
},
Expand Down

0 comments on commit 65b6e99

Please sign in to comment.