manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1298665 - in /incubator/lcf/trunk/connectors/alfresco/connector/src/main: java/org/apache/manifoldcf/crawler/connectors/alfresco/ native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/ resources/org/apache/manifoldcf/crawler/conne...
Date Fri, 09 Mar 2012 00:25:07 GMT
Author: kwright
Date: Fri Mar  9 00:25:07 2012
New Revision: 1298665

URL: http://svn.apache.org/viewvc?rev=1298665&view=rev
Log:
Fix the Alfresco connector UI

Added:
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties
      - copied, changed from r1298652, incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties
      - copied, changed from r1298652, incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
Removed:
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
Modified:
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
    incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js

Modified: incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java?rev=1298665&r1=1298664&r2=1298665&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java
Fri Mar  9 00:25:07 2012
@@ -654,20 +654,16 @@ public class AlfrescoRepositoryConnector
   public void viewSpecification(IHTTPOutput out, Locale locale, DocumentSpecification ds)
       throws ManifoldCFException, IOException {
     int i = 0;
-    boolean seenAny = false;
     ConfigParams specificationParams = new ConfigParams();
+    String luceneQuery = "";
     while (i < ds.getChildCount()) {
       SpecificationNode sn = ds.getChild(i);
       if (sn.getType().equals(JOB_STARTPOINT_NODE_TYPE)) {
-        if (seenAny == false) {
-          seenAny = true;
-        }
-        specificationParams.setParameter(
-            AlfrescoConfig.LUCENE_QUERY_PARAM.toUpperCase(),
-            sn.getAttributeValue(AlfrescoConfig.LUCENE_QUERY_PARAM));
+        luceneQuery = sn.getAttributeValue(AlfrescoConfig.LUCENE_QUERY_PARAM);
       }
       i++;
     }
+    specificationParams.setParameter(AlfrescoConfig.LUCENE_QUERY_PARAM.toUpperCase(), luceneQuery);
     outputResource(VIEW_SPEC_FORWARD, out, locale, specificationParams);
   }
 

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties
(from r1298652, incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8&r1=1298652&r2=1298665&rev=1298665&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties.utf8
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_en_US.properties
Fri Mar  9 00:25:07 2012
@@ -38,7 +38,7 @@ AlfrescoConnector.PathEquals=path=
 AlfrescoConnector.TheUsernameMustNotBeNull=The username must not be null
 AlfrescoConnector.ThePasswordMustNotBeNull=The password must not be null
 AlfrescoConnector.ServerNameMustNotBeNull=Server name must not be null
-AlfrescoConnector.ServerCantContainSlash=Server name can't contain the character '/'
+AlfrescoConnector.ServerNameCantContainSlash=Server name can't contain the character '/'
 AlfrescoConnector.ThePortMustNotBeNull=The port must not be null
 AlfrescoConnector.TheServerPortMustBeAValidInteger=The server port must be a valid integer
 AlfrescoConnector.PathMustNotBeNull=Path must not be null

Copied: incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties
(from r1298652, incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8)
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties?p2=incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties&p1=incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8&r1=1298652&r2=1298665&rev=1298665&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties.utf8
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/native2ascii/org/apache/manifoldcf/crawler/connectors/alfresco/common_ja_JP.properties
Fri Mar  9 00:25:07 2012
@@ -38,7 +38,7 @@ AlfrescoConnector.PathEquals=パã‚�
 AlfrescoConnector.TheUsernameMustNotBeNull=ユーザ名を入力してください
 AlfrescoConnector.ThePasswordMustNotBeNull=パスワードを入力してください
 AlfrescoConnector.ServerNameMustNotBeNull=サーバ名を入力してください
-AlfrescoConnector.ServerCantContainSlash=サーバ名に文字「/」を含めないでください
+AlfrescoConnector.ServerNameCantContainSlash=サーバ名に文字「/」を含めないでください
 AlfrescoConnector.ThePortMustNotBeNull=ポート番号を入力してください
 AlfrescoConnector.TheServerPortMustBeAValidInteger=サーバポートには整数を入力してください
 AlfrescoConnector.PathMustNotBeNull=パスを入力してください

Modified: incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js?rev=1298665&r1=1298664&r2=1298665&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
(original)
+++ incubator/lcf/trunk/connectors/alfresco/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/editConfiguration.js
Fri Mar  9 00:25:07 2012
@@ -21,7 +21,7 @@ function checkConfig()
 {
   return true;
 }
- 
+
 function checkConfigForSave()
 {
   if (editconnection.username.value == "")



Mime
View raw message