Fix CONNECTORS-813.

git-svn-id: https://svn.apache.org/repos/asf/manifoldcf/integration/sharepoint-2010/trunk@1544794 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 9ddce6e..16384fc 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -3,6 +3,9 @@
 
 ======================= 0.4-dev =====================
 
+CONNECTORS-813: Include a URL that should be used to send to the
+output connector for a given list item.
+
 ======================= Release 0.3 =====================
 
 CONNECTORS-772: SharePoint on AWS does not permit using the
diff --git a/webservice/MCPermissions.cs b/webservice/MCPermissions.cs
index 6ae3cb3..675beaa 100644
--- a/webservice/MCPermissions.cs
+++ b/webservice/MCPermissions.cs
@@ -130,6 +130,10 @@
                                     XmlAttribute idAttribute = doc.CreateAttribute("FileRef");

                                     idAttribute.Value = oListItem.Url;

                                     resultNode.Attributes.Append(idAttribute);

+                                    XmlAttribute urlAttribute = doc.CreateAttribute("ListItemURL");

+                                    //urlAttribute.Value = oListItem.ParentList.DefaultViewUrl;

+                                    urlAttribute.Value = string.Format("{0}?ID={1}", oListItem.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].ServerRelativeUrl, oListItem.ID);

+                                    resultNode.Attributes.Append(urlAttribute);

                                     getListItemsNode.AppendChild(resultNode);

                                 }

                                 counter++;