Skip to content

Commit

Permalink
update #333
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto authored and jirikrepl committed Apr 21, 2016
1 parent e135adc commit 97590a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ public List<VirtualCollection> getVirtualCollectionsLocale() throws Exception {
return VirtualCollectionsManager.getVirtualCollections(this.fedoraAccess, l);
}

public List<VirtualCollection> getVirtualCollectionsFromFedoraLocale() throws Exception {
Locale locale = this.localeProvider.get();
ArrayList<String> l = new ArrayList<String>();
l.add(locale.getLanguage());
return VirtualCollectionsManager.getVirtualCollectionsFromFedora(this.fedoraAccess, l);
}

public VirtualCollection getCurrent(){
return this.virtualCollectionProvider.get();

Expand Down
2 changes: 1 addition & 1 deletion search/web/inc/admin/_virtual_collections.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<thead>
<th>label</th>
</thead>
<c:forEach var="col" items="${cols.virtualCollectionsLocale}">
<c:forEach var="col" items="${cols.virtualCollectionsFromFedoraLocale}">
<tr id="vc_${col.pid}">
<c:forEach items="${col.descriptions}" var="desc">
<td>
Expand Down

0 comments on commit 97590a4

Please sign in to comment.