Skip to content

Commit

Permalink
MIR-1361 Simplified RORSearch.search(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Oct 22, 2024
1 parent f6a7636 commit 90e2a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ const RORSearch = {

let rorIdentifiers = [];

json.items.forEach((rorIdentifier) => {
let label = rorIdentifier.name;
let item = {};

item.id = rorIdentifier.id;
item.name = rorIdentifier.name;
item.label = label + " (" + item.id + ")";
json.items.forEach((item) => {
item.label = item.name + " (" + item.id + ")";
rorIdentifiers.push(item);
});

Expand Down
2 changes: 1 addition & 1 deletion mir-module/src/main/resources/xsl/mir-mods-utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
</dd>
</xsl:if>
</dl>
<script src="{$WebApplicationBaseURL}js/mir/ror-search.js"/>
<script src="{$WebApplicationBaseURL}js/mir/ror-search.min.js"/>
</div>
</xsl:if>
<a href="{concat($ServletsBaseURL,'solr/mods_nameIdentifier?q=',encoder:encode($query),'&amp;owner=',encoder:encode(concat('createdby:',$owner)))}"><xsl:value-of select="$personName" /></a>
Expand Down

0 comments on commit 90e2a96

Please sign in to comment.