You are here: Foswiki>Tasks Web>Item12975 (29 Jul 2014, MichaelDaum)Edit Attach

Item12975: Fix TopicTitles for sub-webs in WebFacetWidget

pencil
Priority: Low
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: SolrPlugin
Branches: trunk
Reported By: StephanOsthold
Waiting For:
Last Change By: MichaelDaum
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
 
Topic revision: r3 - 29 Jul 2014, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy