Skip to content

Commit

Permalink
Changed dataverse URL in AdvancedSearchPage backing bean to use alias…
Browse files Browse the repository at this point in the history
…, rather than id. Changed markup of highlighted search terms, to look a little cleaner in the browse/search cards. [ref #1111]
  • Loading branch information
mheppler committed Feb 24, 2015
1 parent 60786b4 commit 27a1472
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public String find() throws IOException, UnsupportedEncodingException {
String dataverseSubtree = "";
if (dataverse != null) {
if (!dataverse.equals(dataverseServiceBean.findRootDataverse())) {
dataverseSubtree = "&id=" + dataverse.getId();
dataverseSubtree = "&alias=" + dataverse.getAlias();
}
}

Expand Down
30 changes: 15 additions & 15 deletions src/main/webapp/search-include-fragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,12 @@
<ui:fragment rendered="#{result.highlightsAsList.size() gt 0}">
<ui:repeat value="#{result.highlightsAsList}" var="highlight">
<ui:repeat value="#{highlight.snippets}" var="snippet">
<br/>
<ui:param value="#{highlight.solrField.nameFacetable}:intentional" name="unfriendly"/>
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery('name:intentional').get(0)}"/>-->
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery(unfriendly).get(0)}: "/>-->
<h:outputText value="#{highlight.solrField.nameSearchable}: "/>
<h:outputText value="#{snippet}" escape="false"/>
<div>
<h:outputText value="#{highlight.solrField.nameSearchable}: #{snippet}" escape="false"/>
<ui:param value="#{highlight.solrField.nameFacetable}:intentional" name="unfriendly"/>
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery('name:intentional').get(0)}"/>-->
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery(unfriendly).get(0)}: "/>-->
</div>
</ui:repeat>
</ui:repeat>
</ui:fragment>
Expand Down Expand Up @@ -641,12 +641,12 @@
<ui:fragment rendered="#{result.highlightsAsList.size() > 0}">
<ui:repeat value="#{result.highlightsAsList}" var="highlight">
<ui:repeat value="#{highlight.snippets}" var="snippet">
<br/>
<!--<ui:param value="#{highlight.solrField.nameFacetable}:intentional" name="unfriendly"/>-->
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery('name:intentional').get(0)}"/>-->
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery(unfriendly).get(0)}: "/>-->
<h:outputText value="#{highlight.displayName}: "/>
<h:outputText value="#{snippet}" escape="false"/>
<div>
<h:outputText value="#{highlight.displayName}: #{snippet}" escape="false"/>
<!--<ui:param value="#{highlight.solrField.nameFacetable}:intentional" name="unfriendly"/>-->
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery('name:intentional').get(0)}"/>-->
<!--<h:outputText value="#{SearchIncludeFragment.getFriendlyNamesFromFilterQuery(unfriendly).get(0)}: "/>-->
</div>
</ui:repeat>
</ui:repeat>
</ui:fragment>
Expand Down Expand Up @@ -722,9 +722,9 @@
<div jsf:rendered="#{result.highlightsAsList.size() > 0}">
<ui:repeat value="#{result.highlightsAsList}" var="highlight">
<ui:repeat value="#{highlight.snippets}" var="snippet">
<h:outputText value="#{highlight.displayName}: "/>
<h:outputText value="#{snippet}" escape="false"/>
<br/>
<div>
<h:outputText value="#{highlight.displayName}: #{snippet}" escape="false"/>
</div>
</ui:repeat>
</ui:repeat>
</div>
Expand Down

0 comments on commit 27a1472

Please sign in to comment.