Skip to content

Commit

Permalink
Revert "[Feature | BUG] - Handle lang attribute for all Othernames (#207
Browse files Browse the repository at this point in the history
)" (#208)

This reverts commit a0c533a.
  • Loading branch information
kaysiz committed Apr 12, 2024
1 parent a0c533a commit 5c95112
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
target-branch: "dependabot-updates"
interval: "daily"
target-branch: "dev"
17 changes: 7 additions & 10 deletions app/components/v2/organization-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default Component.extend({
lastModifiedDate: null,
otherNames: null,
organizationTypes: null,
configService: service('config-service'),


// Convert label array into a dictionary with relationship type as key
Expand All @@ -46,15 +45,13 @@ export default Component.extend({
return result;
}, {});

for (let key in groupedNames) {
if (groupedNames[key]) {
groupedNames[key].forEach((item) => {
if (item.lang && !item.value.includes(`(${item.lang})`)) {
item.value = `${item.value} (${item.lang})`;
}
});
}
};
if (groupedNames.label) {
groupedNames.label.forEach((label) => {
if (label.lang && !label.value.includes(`(${label.lang})`)) {
label.value = `${label.value} (${label.lang})`;
}
});
}

const values = Object.values(groupedNames).flat().map(item => item.value).join(', ');

Expand Down
7 changes: 0 additions & 7 deletions app/services/config-service.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/templates/components/v2/organization-item.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
{{#link-to "organizations.show" model.id class="btn btn-sm btn-round"}}View details{{/link-to}}
{{/if}}
{{#if (not isSearch)}}
<p class="mt-3 mb-0"><i>Some record data is not displayed in this view. <a target="_blank" rel="noopener" href="{{configService.API_URL_V2}}/organizations/{{model.id}}">See JSON view for full record data</a></i></p>
<p class="mt-3 mb-0"><i>Some record data is not displayed in this view. <a target="_blank" rel="noopener" href="https://api.ror.org/v2/organizations/{{model.id}}">See JSON view for full record data</a></i></p>
<p class="mt-3 mb-0">
<i>
{{#if lastModifiedDate}}
Expand Down

0 comments on commit 5c95112

Please sign in to comment.