Priority: Low
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: SolrPlugin
Branches: trunk
The
WebFacetWidget displays the title of the web's
WebHome instead of the web name.
Unfortunately this does not work for deeply nested webs, because only the first slash is replaced with a dot.
I think this file needs fixing:
Index: pub/System/SolrPlugin/widgets/WebFacetWidget.uncompressed.js
===================================================================
--- pub/System/SolrPlugin/widgets/WebFacetWidget.uncompressed.js (revision 17824)
+++ pub/System/SolrPlugin/widgets/WebFacetWidget.uncompressed.js (working copy)
@@ -16,7 +16,7 @@
for (var i = 0, l = facetCounts.length; i < l; i++) {
facet = facetCounts[i].facet;
//self.keyOfValue[facet] = facetCounts[i].key = _(facet.slice(facet.lastIndexOf('.') + 1));
- self.keyOfValue[facet] = facetCounts[i].key = _(facet.replace(/\./,"/"));
+ self.keyOfValue[facet] = facetCounts[i].key = _(facet.replace(/\./g,"/"));
}
facetCounts.sort(function(a,b) {
--
StephanOsthold - 29 Jul 2014
Thanks for the patch. This is checked in. Will release together with a couple of other fixes.
--
MichaelDaum - 29 Jul 2014