Revision: 17410
          http://sourceforge.net/p/gate/code/17410
Author:   valyt
Date:     2014-02-24 17:19:45 +0000 (Mon, 24 Feb 2014)
Log Message:
-----------
Show number of indexed documents on the index details page for local indexes.

Modified Paths:
--------------
    mimir/branches/5.0/mimir-cloud/.project
    mimir/branches/5.0/mimir-web/.classpath
    
mimir/branches/5.0/mimir-web/grails-app/controllers/gate/mimir/web/LocalIndexController.groovy
    mimir/branches/5.0/mimir-web/grails-app/views/layouts/mimir.gsp
    mimir/branches/5.0/mimir-web/grails-app/views/localIndex/show.gsp

Modified: mimir/branches/5.0/mimir-cloud/.project
===================================================================
--- mimir/branches/5.0/mimir-cloud/.project     2014-02-24 17:13:35 UTC (rev 
17409)
+++ mimir/branches/5.0/mimir-cloud/.project     2014-02-24 17:19:45 UTC (rev 
17410)
@@ -32,7 +32,6 @@
                <nature>org.eclipse.jdt.core.javanature</nature>
                
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
                <nature>com.google.gwt.eclipse.core.gwtNature</nature>
-               <nature>org.apache.ivyde.eclipse.ivynature</nature>
        </natures>
        <linkedResources>
                <link>

Modified: mimir/branches/5.0/mimir-web/.classpath
===================================================================
--- mimir/branches/5.0/mimir-web/.classpath     2014-02-24 17:13:35 UTC (rev 
17409)
+++ mimir/branches/5.0/mimir-web/.classpath     2014-02-24 17:19:45 UTC (rev 
17410)
@@ -14,6 +14,101 @@
        <classpathentry kind="src" path="grails-app/utils"/>
        <classpathentry kind="src" path="test/integration"/>
        <classpathentry kind="src" path="test/unit"/>
+       <classpathentry 
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
 kind="src" path=".link_to_grails_plugins/gwt-0.8/grails-app/conf">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/gwt-0.8/grails-app/controllers">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/gwt-0.8/grails-app/i18n">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/gwt-0.8/grails-app/resourceMappers">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/gwt-0.8/grails-app/services">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/gwt-0.8/src/groovy">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/gwt-0.8/src/java">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/hibernate-2.2.3/grails-app/i18n">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/release-2.0.3/src/groovy">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/release-2.0.3/src/java">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry 
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
 kind="src" path=".link_to_grails_plugins/resources-1.2.RC2/grails-app/conf">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/resources-1.2.RC2/grails-app/i18n">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/resources-1.2.RC2/grails-app/resourceMappers">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/resources-1.2.RC2/grails-app/taglib">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/resources-1.2.RC2/src/groovy">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/resources-1.2.RC2/src/java">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/rest-client-builder-1.0.2/src/groovy">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry 
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
 kind="src" path=".link_to_grails_plugins/webxml-1.4.1/grails-app/conf">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" 
path=".link_to_grails_plugins/webxml-1.4.1/src/groovy">
+               <attributes>
+                       <attribute 
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+               </attributes>
+       </classpathentry>
        <classpathentry kind="con" 
path="org.grails.ide.eclipse.core.CLASSPATH_CONTAINER"/>
        <classpathentry kind="output" path="target-eclipse/classes"/>
 </classpath>

Modified: 
mimir/branches/5.0/mimir-web/grails-app/controllers/gate/mimir/web/LocalIndexController.groovy
===================================================================
--- 
mimir/branches/5.0/mimir-web/grails-app/controllers/gate/mimir/web/LocalIndexController.groovy
      2014-02-24 17:13:35 UTC (rev 17409)
+++ 
mimir/branches/5.0/mimir-web/grails-app/controllers/gate/mimir/web/LocalIndexController.groovy
      2014-02-24 17:19:45 UTC (rev 17410)
@@ -43,7 +43,8 @@
       flash.message = "LocalIndex not found with id ${params.id}"
       redirect(controller:'indexManagement', action:'home')
     }
-    else { return [ localIndexInstance : localIndexInstance ]
+    else { return [ localIndexInstance : localIndexInstance,
+      indexedDocs: 
localIndexService.getIndex(localIndexInstance)?.getIndexedDocumentsCount() ]
     }
   }
   

Modified: mimir/branches/5.0/mimir-web/grails-app/views/layouts/mimir.gsp
===================================================================
--- mimir/branches/5.0/mimir-web/grails-app/views/layouts/mimir.gsp     
2014-02-24 17:13:35 UTC (rev 17409)
+++ mimir/branches/5.0/mimir-web/grails-app/views/layouts/mimir.gsp     
2014-02-24 17:19:45 UTC (rev 17410)
@@ -36,7 +36,7 @@
         <div id="content">
           <g:layoutBody />
                                  <div align="center">
-                                   <p>M&iacute;mir <mimir:version />,  &copy; 
<a href="http://gate.ac.uk";>GATE</a> 
${Calendar.getInstance().get(Calendar.YEAR);}.</p>
+                                   <p>M&iacute;mir <mimir:version />,  &copy; 
<a href="http://gate.ac.uk";>GATE</a> 
${Calendar.getInstance().get(Calendar.YEAR)}.</p>
                                  </div>
         </div>
         <r:layoutResources/>

Modified: mimir/branches/5.0/mimir-web/grails-app/views/localIndex/show.gsp
===================================================================
--- mimir/branches/5.0/mimir-web/grails-app/views/localIndex/show.gsp   
2014-02-24 17:13:35 UTC (rev 17409)
+++ mimir/branches/5.0/mimir-web/grails-app/views/localIndex/show.gsp   
2014-02-24 17:19:45 UTC (rev 17410)
@@ -67,6 +67,11 @@
                </tr>
 
     <tr class="prop">
+      <td valign="top" class="name">Indexed documents count:</td>
+      <td valign="top" class="value">${indexedDocs}</td>
+    </tr>
+
+    <tr class="prop">
       <td valign="top" class="name">Scorer:</td>
 
       <td valign="top" class="value">

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to