Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/SiteAssets/library/template.html
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/SiteAssets/library/template.html?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/SiteAssets/library/template.html
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/SiteAssets/library/template.html
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,515 @@
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+ -->
+ 
+ <div id="cmisbrowser-templates">
+
+       <script id="cmis-library-template" type="text/template">
+               <div class="errors"></div>
+               <div style="display: none;" class="login">
+                       <div class="cmis-form">
+                               <h1>Login<span>Please fill all the texts in the 
fields.</span></h1>
+                               <p>
+                                       <label>
+                                               <span>Username :</span>
+                                               <input id="username" 
type="text" name="username" placeholder="Your User Name" autocomplete="off">
+                                       </label>
+                                       <label>
+                                               <span>Password :</span>
+                                               <input id="password" 
type="password" name="password" placeholder="Your Password">
+                                       </label>
+                                       <label>
+                                               <span>Remember you?</span>
+                                               <input id="remember" 
type="checkbox" name="remember">
+                                       </label>
+                                       <label>
+                                               <span>&nbsp;</span>
+                                               <input type="button" 
class="button" value="Login" id="login">
+                                       </label>
+                               </p>
+                       </div>
+               </div>
+               <div style="display: none;" class="library">
+                       <div class="action-header">
+                               <div class="query">
+                                       <input autocomplete="off" 
id="queryValue" placeholder="Search document(s)..." type="text">
+                                       <div id="queryButton"></div>
+                                       <div style="display: none;" 
id="queryClean"></div>
+                                       <div class="advanced-search"></div>
+                               </div>
+                               <div class="item logout">Logout</div>
+                               <div class="item welcome">Welcome<span 
class="username"></span>.</div>
+                               <div class="uploadDocument">
+                                       <div class="addDocument">Add new 
document.</div>
+                                       <div class="uploadarea">
+                                               <div class="uploadform">
+                                                       <div class="container">
+                                                               <label 
for="fileselect">Files to upload:</label>
+                                                               <input 
multiple="multiple" name="fileselect[]" id="fileselect" autocomplete="off" 
type="file">
+                                                               <br>
+                                                               <button 
type="submit">Upload Files</button>
+                                                       </div>
+                                               </div>
+                                               <div id="filedrag">
+                                                       <div 
class="container">or drop files here...</div>
+                                               </div>
+                                       </div>
+                               </div>
+                       </div>
+                       <div class="documentlist panel">
+                               <table class="table" cellspan="0">
+                                       <thead class="tableHeader"></thead>
+                                       <tbody class="tableBody"></tbody>
+                               </table>
+                               <div class="pagination">
+                                       <div class="label">Page(s): </div>
+                               </div>
+                       </div>
+                       <div class="documentdetail panel"></div>
+                       <div class="documentversion panel"></div>
+                       <div class="documentpreview panel"></div>
+                       <div class="advanced-search-form panel"></div>
+               </div>
+               <div style="display: none;" id="overlay"></div>
+       </script>
+
+       <script id="cmis-library-header-template" type="text/template">
+                       <tr class="cmis-library-header">
+                               <td class="cmis-library-cell icon"></td>
+                               <td class="cmis-library-cell sortable" 
field="cmis:name">Name</td>
+                               <td class="cmis-library-cell sortable" 
field="cmis:lastModificationDate">Modified</td>
+                               <td class="cmis-library-cell sortable" 
field="cmis:lastModifiedBy">Modifier</td>
+                               <td class="cmis-library-cell"></td>
+                       </tr>
+               </script>
+
+       <script id="cmis-library-row-template" type="text/template">
+                       <tr class="cmis-library-row" id="${cmis:objectId}" 
versionSeriesId="${cmis:versionSeriesId}" baseTypeId="${cmis:baseTypeId}" 
objectTypeId="${cmis:objectTypeId}" mimetype="${cmis:contentStreamMimeType}">
+                               <td class="cmis-library-cell icon"></td>
+                               <td class="cmis-library-cell 
cmis-name">${cmis:name}</td>
+                               <td 
class="cmis-library-cell">${cmis:lastModificationDate}</td>
+                               <td 
class="cmis-library-cell">${cmis:lastModifiedBy}</td>
+                               <td class="cmis-library-cell actions">
+                                       <!-- <div class="icon icon-edit" 
enabled="${canUpdateProperties}" title="Edit Properties"></div> -->
+                                       <!-- <div class="icon icon-applyACL" 
enabled="${canApplyACL}" title="Manage Permissions"></div> -->
+                                       <div class="icon icon-download" 
enabled="${canGetContentStream}" title="Download"></div>
+                                       <div class="icon icon-preview" 
enabled="${canGetContentStream}" mimeType=${cmis:contentStreamMimeType} 
title="Preview"></div>
+                               </td>
+                               <td class="cmis-library-cell more-actions">
+                                       <span class="icon-more" title="More 
action(s)">...</span>
+                                       <div class="more-actions-popup 
detail-actions" style="display:none;">
+                                               <div class="icon icon-close" 
enabled="true" title="Close"></div>
+                                               <div class="icon icon-download" 
enabled="${canGetContentStream}" title="Download">Download</div>
+                                               <div class="icon icon-preview" 
enabled="${canGetContentStream}" mimeType=${cmis:contentStreamMimeType} 
title="Preview">Preview</div>
+                                               <div class="icon icon-view" 
enabled="${canGetProperties}" title="View Details">View Details</div>
+                                               <div class="icon icon-version" 
enabled="${canGetAllVersions}" title="Check Versions">Check Versions</div>
+                                               <div class="icon icon-checkin" 
enabled="${canCheckIn}" title="Check-In">Check-In</div>
+                                               <div class="icon 
icon-cancel-checkout" enabled="${canCancelCheckOut}" title="Cancel 
Check-Out">Cancel Check-Out</div>
+                                               <div class="icon icon-checkout" 
enabled="${canCheckOut}" title="Check-Out">Check-Out</div>
+                                               <div class="icon icon-update" 
enabled="${canSetContentStream}" title="Update">Update</div>
+                                               <div class="icon icon-delete" 
enabled="${canDeleteObject}" title="Delete">Delete</div>
+                                       </div>
+                               </td>
+                       </tr>
+               </script>
+
+       <script id="cmis-library-detail-template" type="text/template"
+               cmisType="_global">
+                       <div class="detail">
+                               <h2>Document Detail</h2>
+                               <table>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Object Type Id</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:objectTypeId}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Object Id</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:versionSeriesId}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Name</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:name}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">MIME Type</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:contentStreamMimeType}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Creation Date</td>
+                                               <td 
class="cmis-library-detail-value date">${cmis:creationDate}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Created By</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:createdBy}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Last Modified Date</td>
+                                               <td 
class="cmis-library-detail-value date">${cmis:lastModificationDate}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Last Modified By</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:lastModifiedBy}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Is Checked Out?</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:isVersionSeriesCheckedOut}</td>
+                                       </tr>
+                               </table>
+                       </div>
+                       <div class="detail-actions" id="${cmis:objectId}" 
versionSeriesId="${cmis:versionSeriesId}">
+                               <div class="icon icon-back icon-back-documents" 
enabled="true">Back to documents list</div>
+                               <div class="icon icon-download" 
enabled="${canGetContentStream}"><a href="${cmis:contentUrl}">Download</a></div>
+                               <div class="icon icon-version" 
enabled="${canGetAllVersions}">Check Versions</div>
+                               <!-- <div class="icon icon-applyACL" 
enabled="${canApplyACL}">Manage Permissions</div> -->
+                               <div class="icon icon-delete" 
enabled="${canDeleteObject}">Delete Document</div>
+                       </div>
+               </script>
+
+       <script id="cmis-library-detail-template" type="text/template"
+               cmisType="cmis:folder">
+                       <div class="detail">
+                               <h2>Document Detail</h2>
+                               <table>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Object Type Id</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:objectTypeId}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Object Id</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:objectId}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Name</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:name}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Creation Date</td>
+                                               <td 
class="cmis-library-detail-value date">${cmis:creationDate}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Created By</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:createdBy}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Last Modified Date</td>
+                                               <td 
class="cmis-library-detail-value date">${cmis:lastModificationDate}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Last Modified By</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:lastModifiedBy}</td>
+                                       </tr>
+                               </table>
+                       </div>
+                       <div class="detail-actions" id="${cmis:objectId}" 
versionSeriesId="${cmis:versionSeriesId}">
+                               <div class="icon icon-back icon-back-documents" 
enabled="true">Back to documents list</div>
+                               <!-- <div class="icon icon-applyACL" 
enabled="${canApplyACL}">Manage Permissions</div> -->
+                               <div class="icon icon-delete" 
enabled="${canDeleteObject}">Delete Document</div>
+                       </div>
+               </script>
+
+       <script id="cmis-library-version-template" type="text/template">
+                       <div class="version" id="${cmis:objectId}" 
versionSeriesId="${cmis:versionSeriesId}">
+                               <table>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Version</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:versionLabel}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Name</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:name}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Last Modified Date</td>
+                                               <td 
class="cmis-library-detail-value date">${cmis:lastModificationDate}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label">Last Modified By</td>
+                                               <td 
class="cmis-library-detail-value">${cmis:lastModifiedBy}</td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-detail-label"></td>
+                                               <td 
class="cmis-library-detail-value download"><div class="icon-download 
icon">Download</td>
+                                       </tr>
+                               </table>
+                       </div>
+               </script>
+
+       <script id="cmis-library-advanced-search-template-content" 
class="cmis-library-advanced-search-template" type="text/template" 
cmisType="cmis:document" title="Content">
+                       <div class="search-form">
+                               <table align="center">
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Name</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input 
field="cmis:name" cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Title</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input field="cm:title" 
cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Description</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input 
field="cm:description" cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Mimetype</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <select 
field="cmis:contentStreamMimeType" cmisPropertyType="string">
+                                                               <option 
value="">Unknown</option>
+                                                               <option 
value="video/3gpp">3G Video</option>
+                                                               <option 
value="video/3gpp2">3G2 Video</option>
+                                                               <option 
value="application/vnd.adobe.xdp+xml">Adobe Acrobat XML Data Package</option>
+                                                               <option 
value="application/vnd.adobe.aftereffects.project">Adobe AfterEffects 
Project</option>
+                                                               <option 
value="application/vnd.adobe.aftereffects.template">Adobe AfterEffects 
Template</option>
+                                                               <option 
value="application/vnd.adobe.air-application-installer-package+zip">Adobe 
AIR</option>
+                                                               <option 
value="image/x-raw-adobe">Adobe Digital Negative Image</option>
+                                                               <option 
value="application/x-zip">Adobe Flex Project File</option>
+                                                               <option 
value="application/framemaker">Adobe FrameMaker</option>
+                                                               <option 
value="application/illustrator">Adobe Illustrator File</option>
+                                                               <option 
value="application/x-indesign">Adobe InDesign Document</option>
+                                                               <option 
value="application/pagemaker">Adobe PageMaker</option>
+                                                               <option 
value="application/pdf">Adobe PDF Document</option>
+                                                               <option 
value="image/vnd.adobe.photoshop">Adobe Photoshop</option>
+                                                               <option 
value="image/vnd.adobe.premiere">Adobe Premiere</option>
+                                                               <option 
value="audio/vnd.adobe.soundbooth">Adobe SoundBooth</option>
+                                                               <option 
value="audio/x-aiff">AIFF Audio</option>
+                                                               <option 
value="application/acp">Alfresco Content Package</option>
+                                                               <option 
value="application/vnd.android.package-archive">Android Package</option>
+                                                               <option 
value="image/x-portable-anymap">Anymap Image</option>
+                                                               <option 
value="application/vnd.apple.keynote">Apple iWork Keynote</option>
+                                                               <option 
value="application/vnd.apple.numbers">Apple iWork Numbers</option>
+                                                               <option 
value="application/vnd.apple.pages">Apple iWork Pages</option>
+                                                               <option 
value="image/vnd.dwg">AutoCAD Drawing</option>
+                                                               <option 
value="image/x-dwt">AutoCAD Template</option>
+                                                               <option 
value="audio/basic">Basic Audio</option>
+                                                               <option 
value="application/octet-stream">Binary File (Octet Stream)</option>
+                                                               <option 
value="image/bmp">Bitmap Image</option>
+                                                               <option 
value="image/x-raw-canon">Canon RAW Image</option>
+                                                               <option 
value="image/cgm">CGM Image</option>
+                                                               <option 
value="text/csv">Comma Separated Values (CSV)</option>
+                                                               <option 
value="application/dita+xml">DITA</option>
+                                                               <option 
value="message/rfc822">EMail</option>
+                                                               <option 
value="application/eps">EPS Type PostScript</option>
+                                                               <option 
value="audio/x-flac">FLAC Audio</option>
+                                                               <option 
value="application/x-fla">Flash Source</option>
+                                                               <option 
value="video/x-flv">Flash Video</option>
+                                                               <option 
value="image/x-raw-fuji">Fuji RAW Image</option>
+                                                               <option 
value="image/gif">GIF Image</option>
+                                                               <option 
value="image/x-portable-graymap">Greymap Image</option>
+                                                               <option 
value="application/x-gzip">GZIP</option>
+                                                               <option 
value="application/x-gtar">GZIP Tarball</option>
+                                                               <option 
value="image/x-raw-hasselblad">Hasselblad RAW Image</option>
+                                                               <option 
value="text/html">HTML</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.text-web">HTML Document 
Template</option>
+                                                               <option 
value="text/calendar">iCalendar File</option>
+                                                               <option 
value="image/ief">IEF Image</option>
+                                                               <option 
value="application/java">Java Class</option>
+                                                               <option 
value="application/x-javascript">Java Script</option>
+                                                               <option 
value="image/jp2">JPEG 2000 Image</option>
+                                                               <option 
value="image/jpeg">JPEG Image</option>
+                                                               <option 
value="application/json">JSON</option>
+                                                               <option 
value="image/x-raw-kodak">Kodak RAW Image</option>
+                                                               <option 
value="application/x-latex">LaTeX</option>
+                                                               <option 
value="image/x-raw-leica">Leica RAW Image</option>
+                                                               <option 
value="application/x-troff-man">Man Page</option>
+                                                               <option 
value="text/x-markdown">Markdown</option>
+                                                               <option 
value="text/mediawiki">MediaWiki Markup</option>
+                                                               <option 
value="application/vnd.ms-excel">Microsoft Excel</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">Microsoft
 Excel 2007</option>
+                                                               <option 
value="application/vnd.ms-excel.addin.macroenabled.12">Microsoft Excel 2007 
add-in</option>
+                                                               <option 
value="application/vnd.ms-excel.sheet.binary.macroenabled.12">Microsoft Excel 
2007 binary workbook</option>
+                                                               <option 
value="application/vnd.ms-excel.sheet.macroenabled.12">Microsoft Excel 2007 
macro-enabled workbook</option>
+                                                               <option 
value="application/vnd.ms-excel.template.macroenabled.12">Microsoft Excel 2007 
macro-enabled workbook template</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.spreadsheetml.template">Microsoft
 Excel template 2007</option>
+                                                               <option 
value="application/vnd.ms-outlook">Microsoft Outlook Message</option>
+                                                               <option 
value="application/vnd.ms-powerpoint">Microsoft PowerPoint</option>
+                                                               <option 
value="application/vnd.ms-powerpoint.addin.macroenabled.12">Microsoft 
PowerPoint 2007 add-in</option>
+                                                               <option 
value="application/vnd.ms-powerpoint.presentation.macroenabled.12">Microsoft 
PowerPoint 2007 macro-enabled presentation</option>
+                                                               <option 
value="application/vnd.ms-powerpoint.template.macroenabled.12">Microsoft 
PowerPoint 2007 macro-enabled presentation template</option>
+                                                               <option 
value="application/vnd.ms-powerpoint.slide.macroenabled.12">Microsoft 
PowerPoint 2007 macro-enabled slide</option>
+                                                               <option 
value="application/vnd.ms-powerpoint.slideshow.macroenabled.12">Microsoft 
PowerPoint 2007 macro-enabled slide show</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.presentationml.presentation">Microsoft
 PowerPoint 2007 presentation</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.presentationml.slide">Microsoft
 PowerPoint 2007 slide</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.presentationml.slideshow">Microsoft
 PowerPoint 2007 slide show</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.presentationml.template">Microsoft
 PowerPoint 2007 template</option>
+                                                               <option 
value="application/vnd.ms-project">Microsoft Project</option>
+                                                               <option 
value="application/vnd.visio">Microsoft Visio</option>
+                                                               <option 
value="application/msword">Microsoft Word</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.wordprocessingml.document">Microsoft
 Word 2007</option>
+                                                               <option 
value="application/vnd.ms-word.document.macroenabled.12">Microsoft Word 2007 
macro-enabled document</option>
+                                                               <option 
value="application/vnd.ms-word.template.macroenabled.12">Microsoft Word 2007 
macro-enabled document template</option>
+                                                               <option 
value="application/vnd.openxmlformats-officedocument.wordprocessingml.template">Microsoft
 Word 2007 template</option>
+                                                               <option 
value="image/x-raw-minolta">Minolta RAW Image</option>
+                                                               <option 
value="audio/mpeg">MPEG Audio</option>
+                                                               <option 
value="video/mp2t">MPEG Transport Stream</option>
+                                                               <option 
value="video/mpeg">MPEG Video</option>
+                                                               <option 
value="video/mpeg2">MPEG2 Video</option>
+                                                               <option 
value="audio/mp4">MPEG4 Audio</option>
+                                                               <option 
value="video/mp4">MPEG4 Video</option>
+                                                               <option 
value="video/x-m4v">MPEG4 Video (m4v)</option>
+                                                               <option 
value="video/x-ms-asf">MS ASF Streaming Video</option>
+                                                               <option 
value="video/x-msvideo">MS Video</option>
+                                                               <option 
value="audio/x-ms-wma">MS WMA Streaming Audio</option>
+                                                               <option 
value="video/x-ms-wmv">MS WMV Streaming Video</option>
+                                                               <option 
value="image/x-raw-nikon">Nikon RAW Image</option>
+                                                               <option 
value="audio/ogg">Ogg Audio</option>
+                                                               <option 
value="application/ogg">Ogg Multiplex</option>
+                                                               <option 
value="video/ogg">Ogg Video</option>
+                                                               <option 
value="audio/vorbis">Ogg Vorbis Audio</option>
+                                                               <option 
value="image/x-raw-olympus">Olympus RAW Image</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.chart">OpenDocument Chart</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.database">OpenDocument 
Database</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.graphics">OpenDocument 
Drawing</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.graphics-template">OpenDocument 
Drawing Template</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.formula">OpenDocument Formula</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.image">OpenDocument Image</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.text-master">OpenDocument Master 
Document</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.presentation">OpenDocument 
Presentation</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.presentation-template">OpenDocument 
Presentation Template</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.spreadsheet">OpenDocument 
Spreadsheet</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.spreadsheet-template">OpenDocument 
Spreadsheet Template</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.text">OpenDocument Text (OpenOffice 
2.0)</option>
+                                                               <option 
value="application/vnd.oasis.opendocument.text-template">OpenDocument Text 
Template</option>
+                                                               <option 
value="application/vnd.sun.xml.calc">OpenOffice 1.0/StarOffice6.0 Calc 
6.0</option>
+                                                               <option 
value="application/vnd.sun.xml.calc.template">OpenOffice 1.0/StarOffice6.0 Calc 
6.0 Template</option>
+                                                               <option 
value="application/vnd.sun.xml.draw">OpenOffice 1.0/StarOffice6.0 Draw 
6.0</option>
+                                                               <option 
value="application/vnd.sun.xml.impress">OpenOffice 1.0/StarOffice6.0 Impress 
6.0</option>
+                                                               <option 
value="application/vnd.sun.xml.impress.template">OpenOffice 1.0/StarOffice6.0 
Impress 6.0 Template</option>
+                                                               <option 
value="application/vnd.sun.xml.writer">OpenOffice 1.0/StarOffice6.0 Writer 
6.0</option>
+                                                               <option 
value="application/vnd.sun.xml.writer.template">OpenOffice 1.0/StarOffice6.0 
Writer 6.0 Template</option>
+                                                               <option 
value="image/x-raw-panasonic">Panasonic RAW Image</option>
+                                                               <option 
value="image/x-raw-pentax">Pentax RAW Image</option>
+                                                               <option 
value="image/x-portable-pixmap">Pixmap Image</option>
+                                                               <option 
value="text/plain">Plain Text</option>
+                                                               <option 
value="image/png">PNG Image</option>
+                                                               <option 
value="image/x-portable-bitmap">Portable Bitmap</option>
+                                                               <option 
value="application/postscript">PostScript</option>
+                                                               <option 
value="application/remote-printing">Printer Text File</option>
+                                                               <option 
value="video/quicktime">Quicktime Video</option>
+                                                               <option 
value="video/x-rad-screenplay">RAD Screen Display</option>
+                                                               <option 
value="image/x-cmu-raster">Raster Image</option>
+                                                               <option 
value="image/x-raw-red">RED RAW Image</option>
+                                                               <option 
value="image/x-rgb">RGB Image</option>
+                                                               <option 
value="text/richtext">Rich Text</option>
+                                                               <option 
value="application/rtf">Rich Text Format</option>
+                                                               <option 
value="application/rss+xml">RSS</option>
+                                                               <option 
value="image/svg+xml">Scalable Vector Graphics Image</option>
+                                                               <option 
value="video/x-sgi-movie">SGI Video</option>
+                                                               <option 
value="text/sgml">SGML (Human Readable)</option>
+                                                               <option 
value="application/sgml">SGML (Machine Readable)</option>
+                                                               <option 
value="application/x-sh">Shell Script</option>
+                                                               <option 
value="application/x-shockwave-flash">Shockwave Flash</option>
+                                                               <option 
value="image/x-raw-sigma">Sigma RAW Image</option>
+                                                               <option 
value="image/x-raw-sony">Sony RAW Image</option>
+                                                               <option 
value="application/vnd.stardivision.chart">StaChart 5.x</option>
+                                                               <option 
value="application/vnd.stardivision.calc">StarCalc 5.x</option>
+                                                               <option 
value="application/vnd.stardivision.draw">StarDraw 5.x</option>
+                                                               <option 
value="application/vnd.stardivision.impress">StarImpress 5.x</option>
+                                                               <option 
value="application/vnd.stardivision.impress-packed">StarImpress Packed 
5.x</option>
+                                                               <option 
value="application/vnd.stardivision.math">StarMath 5.x</option>
+                                                               <option 
value="application/vnd.stardivision.writer">StarWriter 5.x</option>
+                                                               <option 
value="application/vnd.stardivision.writer-global">StarWriter 5.x 
global</option>
+                                                               <option 
value="text/css">Style Sheet</option>
+                                                               <option 
value="text/tab-separated-values">Tab Separated Values</option>
+                                                               <option 
value="application/x-tar">Tarball</option>
+                                                               <option 
value="application/x-tex">Tex</option>
+                                                               <option 
value="application/x-texinfo">Tex Info</option>
+                                                               <option 
value="image/tiff">TIFF Image</option>
+                                                               <option 
value="x-world/x-vrml">VRML</option>
+                                                               <option 
value="audio/x-wav">WAV Audio</option>
+                                                               <option 
value="video/webm">WebM Video</option>
+                                                               <option 
value="application/wordperfect">WordPerfect</option>
+                                                               <option 
value="image/x-xbitmap">XBitmap Image</option>
+                                                               <option 
value="application/xhtml+xml">XHTML</option>
+                                                               <option 
value="text/xml">XML</option>
+                                                               <option 
value="image/x-xpixmap">XPixmap Image</option>
+                                                               <option 
value="image/x-xwindowdump">XWindow Dump</option>
+                                                               <option 
value="application/x-compress">Z Compress</option>
+                                                               <option 
value="application/zip">ZIP</option>
+                                                       </select>
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Modified Date</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <div><input 
field="cmis:lastModificationDate" cmisPropertyType="date" rangeOperator="from" 
placeHolder="From (YYYY-MM-DD)"/></div>
+                                                       <div><input 
field="cmis:lastModificationDate" cmisPropertyType="date" rangeOperator="to" 
placeHolder="To (YYYY-MM-DD)" /></div>
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Modifier</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input 
field="cmis:lastModifiedBy" cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Content Size</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <div><input 
field="cmis:contentStreamLength" cmisPropertyType="int" rangeOperator="from" 
placeHolder="From"/></div>
+                                                       <div><input 
field="cmis:contentStreamLength" cmisPropertyType="int" rangeOperator="to" 
placeHolder="To" /></div>
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td colspan="2">
+                                                       <button type="button" 
class="search-button">Search</button>
+                                               </td>
+                                       </tr>
+                               </table>
+                       </div>
+               </script>
+
+       <script id="cmis-library-advanced-search-template-folder" 
class="cmis-library-advanced-search-template" type="text/template" 
cmisType="cmis:folder" title="Folder">
+                       <div class="search-form">
+                               <table align="center">
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Name</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input 
field="cmis:name" cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Title</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input field="cm:title" 
cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Description</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input 
field="cm:description" cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td 
class="cmis-library-search-form-label">Modifier</td>
+                                               <td 
class="cmis-library-search-form-input">
+                                                       <input 
field="cmis:lastModifiedBy" cmisPropertyType="string" />
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td colspan="2">
+                                                       <button type="button" 
class="search-button">Search</button>
+                                               </td>
+                                       </tr>
+                               </table>
+                       </div>
+               </script>
+</div>
\ No newline at end of file

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/SiteAssets/library/template.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.css
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.css?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.css
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.css
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,118 @@
+/* Body style, for the entire document */
+body
+{
+    background: #F3F3F4;
+    color: #1E1E1F;
+    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
+    padding: 0;
+    margin: 0;
+}
+
+/* Header1 style, used for the main title */
+h1
+{
+    padding: 10px 0px 10px 10px;
+    font-size: 21pt;
+    background-color: #E2E2E2;
+    border-bottom: 1px #C1C1C2 solid; 
+    color: #201F20;
+    margin: 0;
+    font-weight: normal;
+}
+
+/* Header2 style, used for "Overview" and other sections */
+h2
+{
+    font-size: 18pt;
+    font-weight: normal;
+    padding: 15px 0 5px 0;
+    margin: 0;
+}
+
+/* Header3 style, used for sub-sections, such as project name */
+h3
+{
+    font-weight: normal;
+    font-size: 15pt;
+    margin: 0;
+    padding: 15px 0 5px 0;
+    background-color: transparent;
+}
+
+/* Color all hyperlinks one color */
+a
+{
+    color: #1382CE;
+}
+
+/* Table styles */ 
+table
+{
+    border-spacing: 0 0;
+    border-collapse: collapse;
+    font-size: 10pt;
+}
+
+table th
+{
+    background: #E7E7E8;
+    text-align: left;
+    text-decoration: none;
+    font-weight: normal;
+    padding: 3px 6px 3px 6px;
+}
+
+table td
+{
+    vertical-align: top;
+    padding: 3px 6px 5px 5px;
+    margin: 0px;
+    border: 1px solid #E7E7E8;
+    background: #F7F7F8;
+}
+
+/* Local link is a style for hyperlinks that link to file:/// content, there 
are lots so color them as 'normal' text until the user mouse overs */
+.localLink
+{
+    color: #1E1E1F;
+    background: #EEEEED;
+    text-decoration: none;
+}
+
+.localLink:hover
+{
+    color: #1382CE;
+    background: #FFFF99;
+    text-decoration: none;
+}
+
+/* Center text, used in the over views cells that contain message level counts 
*/ 
+.textCentered
+{
+    text-align: center;
+}
+
+/* The message cells in message tables should take up all avaliable space */
+.messageCell
+{
+    width: 100%;
+}
+
+/* Padding around the content after the h1 */ 
+#content 
+{
+       padding: 0px 12px 12px 12px; 
+}
+
+/* The overview table expands to width, with a max width of 97% */ 
+#overview table
+{
+    width: auto;
+    max-width: 75%; 
+}
+
+/* The messages tables are always 97% width */
+#messages table
+{
+    width: 97%;
+}
\ No newline at end of file

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.xslt
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.xslt?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.xslt
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.xslt
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,558 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:msxsl='urn:schemas-microsoft-com:xslt'>
+  <xsl:output omit-xml-declaration="yes" />
+
+  <!-- Keys -->
+  <xsl:key name="ProjectKey" match="Event" use="@Project" />
+
+  <!-- String split template -->
+  <xsl:template name="SplitString">
+    <xsl:param name="source"      select="''" />
+    <xsl:param name="separator" select="','" />
+    <xsl:if test="not($source = '' or $separator = '')">
+      <xsl:variable name="head" select="substring-before(concat($source, 
$separator), $separator)" />
+      <xsl:variable name="tail" select="substring-after($source, $separator)" 
/>
+      <part>
+        <xsl:value-of select="$head"/>
+      </part>
+      <xsl:call-template name="SplitString">
+        <xsl:with-param name="source" select="$tail" />
+        <xsl:with-param name="separator" select="$separator" />
+      </xsl:call-template>
+    </xsl:if>
+  </xsl:template>
+
+  <!-- Intermediate Templates -->
+  <xsl:template match="UpgradeReport" mode="ProjectOverviewXML">
+    <Projects>
+      <xsl:for-each select="Event[generate-id(.) = 
generate-id(key('ProjectKey', @Project))]">
+        <Project>
+          <xsl:variable name="pNode" select="current()" />
+          <xsl:variable name="errorCount" select="count(../Event[@Project = 
current()/@Project and @ErrorLevel=2])" />
+          <xsl:variable name="warningCount" select="count(../Event[@Project = 
current()/@Project and @ErrorLevel=1])" />
+          <xsl:variable name="messageCount" select="count(../Event[@Project = 
current()/@Project and @ErrorLevel=0])" />
+          <xsl:variable name="pathSplitSeparator">
+            <xsl:text>\</xsl:text>
+          </xsl:variable>
+          <xsl:variable name="projectName">
+            <xsl:choose>
+              <xsl:when test="@Project = ''">Solution</xsl:when>
+              <xsl:otherwise>
+                <xsl:value-of select="@Project"/>
+              </xsl:otherwise>
+            </xsl:choose>
+          </xsl:variable>
+          <xsl:attribute name="IsSolution">
+            <xsl:value-of select="@Project = ''"/>
+          </xsl:attribute>
+          <xsl:attribute name="Project">
+            <xsl:value-of select="$projectName"/>
+          </xsl:attribute>
+          <xsl:attribute name="ProjectDisplayName">
+
+            <xsl:variable name="localProjectName" select="@Project" />
+
+            <!-- Sometimes it is possible to have project name set to a path 
over a real project name,
+                 we split the string on '\' and if we end up with >1 part in 
the resulting tokens set
+                 we format the ProjectDisplayName as ..\prior\last -->
+            <xsl:variable name="pathTokens">
+              <xsl:call-template name="SplitString">
+                <xsl:with-param name="source" select="$localProjectName" />
+                <xsl:with-param name="separator" select="$pathSplitSeparator" 
/>
+              </xsl:call-template>
+            </xsl:variable>
+
+            <xsl:choose>
+              <xsl:when test="count(msxsl:node-set($pathTokens)/part) > 1">
+                <xsl:value-of select="concat('..', $pathSplitSeparator, 
msxsl:node-set($pathTokens)/part[last() - 1], $pathSplitSeparator, 
msxsl:node-set($pathTokens)/part[last()])"/>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:value-of select="$localProjectName"/>
+              </xsl:otherwise>
+            </xsl:choose>
+
+          </xsl:attribute>
+          <xsl:attribute name="ProjectSafeName">
+            <xsl:value-of select="translate($projectName, '\', '-')"/>
+          </xsl:attribute>
+          <xsl:attribute name="Solution">
+            <xsl:value-of 
select="/UpgradeReport/Properties/Property[@Name='Solution']/@Value"/>
+          </xsl:attribute>
+          <xsl:attribute name="Source">
+            <xsl:value-of select="@Source"/>
+          </xsl:attribute>
+          <xsl:attribute name="Status">
+            <xsl:choose>
+              <xsl:when test="$errorCount > 0">Error</xsl:when>
+              <xsl:when test="$warningCount > 0">Warning</xsl:when>
+              <xsl:otherwise>Success</xsl:otherwise>
+            </xsl:choose>
+          </xsl:attribute>
+          <xsl:attribute name="ErrorCount">
+            <xsl:value-of select="$errorCount" />
+          </xsl:attribute>
+          <xsl:attribute name="WarningCount">
+            <xsl:value-of select="$warningCount" />
+          </xsl:attribute>
+          <xsl:attribute name="MessageCount">
+            <xsl:value-of select="$messageCount" />
+          </xsl:attribute>
+          <xsl:attribute name="TotalCount">
+            <xsl:value-of select="$errorCount + $warningCount + 
$messageCount"/>
+          </xsl:attribute>
+          <xsl:for-each select="../Event[@Project = $pNode/@Project and 
@ErrorLevel=3]">
+            <ConversionStatus>
+              <xsl:value-of select="@Description"/>
+            </ConversionStatus>
+          </xsl:for-each>
+          <Messages>
+            <xsl:for-each select="../Event[@Project = $pNode/@Project and 
@ErrorLevel&lt;3]">
+              <Message>
+                <xsl:attribute name="Level">
+                  <xsl:value-of select="@ErrorLevel" />
+                </xsl:attribute>
+                <xsl:attribute name="Status">
+                  <xsl:choose>
+                    <xsl:when test="@ErrorLevel = 0">Message</xsl:when>
+                    <xsl:when test="@ErrorLevel = 1">Warning</xsl:when>
+                    <xsl:when test="@ErrorLevel = 2">Error</xsl:when>
+                    <xsl:otherwise>Message</xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:attribute name="Source">
+                  <xsl:value-of select="@Source"/>
+                </xsl:attribute>
+                <xsl:attribute name="Message">
+                  <xsl:value-of select="@Description"/>
+                </xsl:attribute>
+              </Message>
+            </xsl:for-each>
+          </Messages>
+        </Project>
+      </xsl:for-each>
+    </Projects>
+  </xsl:template>
+
+
+
+  <!-- Project Overview template -->
+  <xsl:template match="Projects" mode="ProjectOverview">
+
+    <table>
+      <tr>
+        <th></th>
+        <th _locID="ProjectTableHeader">Project</th>
+        <th _locID="PathTableHeader">Path</th>
+        <th _locID="ErrorsTableHeader">Errors</th>
+        <th _locID="WarningsTableHeader">Warnings</th>
+        <th _locID="MessagesTableHeader">Messages</th>
+      </tr>
+
+      <xsl:for-each select="Project">
+
+        <xsl:sort select="@ErrorCount" order="descending" />
+        <xsl:sort select="@WarningCount" order="descending" />
+        <!-- Always make solution last within a group -->
+        <xsl:sort select="@IsSolution" order="ascending" />
+        <xsl:sort select="@ProjectSafeName" order="ascending" />
+
+        <tr>
+          <td>
+            <img width="16" height="16">
+              <xsl:attribute name="src">
+                <xsl:choose>
+                  <xsl:when test="@Status = 
'Error'">_UpgradeReport_Files\UpgradeReport_Error.png</xsl:when>
+                  <xsl:when test="@Status = 
'Warning'">_UpgradeReport_Files\UpgradeReport_Warning.png</xsl:when>
+                  <xsl:when test="@Status = 
'Success'">_UpgradeReport_Files\UpgradeReport_Success.png</xsl:when>
+                </xsl:choose>
+              </xsl:attribute>
+              <xsl:attribute name="alt">
+                <xsl:value-of select="@Status" />
+              </xsl:attribute>
+            </img>
+          </td>
+          <td>
+            <strong>
+              <a>
+                <xsl:attribute name="href">
+                  <xsl:value-of select="concat('#', @ProjectSafeName)"/>
+                </xsl:attribute>
+                <xsl:choose>
+                  <xsl:when test="@ProjectDisplayName = ''">
+                    <span _locID="OverviewSolutionSpan">Solution</span>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="@ProjectDisplayName" />
+                  </xsl:otherwise>
+                </xsl:choose>
+              </a>
+            </strong>
+          </td>
+          <td>
+            <xsl:value-of select="@Source" />
+          </td>
+          <td class="textCentered">
+            <a>
+              <xsl:if test="@ErrorCount > 0">
+                <xsl:attribute name="href">
+                  <xsl:value-of select="concat('#', @ProjectSafeName, 
'Error')"/>
+                </xsl:attribute>
+              </xsl:if>
+              <xsl:value-of select="@ErrorCount" />
+            </a>
+          </td>
+          <td class="textCentered">
+            <a>
+              <xsl:if test="@WarningCount > 0">
+                <xsl:attribute name="href">
+                  <xsl:value-of select="concat('#', @ProjectSafeName, 
'Warning')"/>
+                </xsl:attribute>
+              </xsl:if>
+              <xsl:value-of select="@WarningCount" />
+            </a>
+          </td>
+          <td class="textCentered">
+            <a href="#">
+              <xsl:if test="@MessageCount > 0">
+                <xsl:attribute name="onclick">
+                  <xsl:variable name="apos">
+                    <xsl:text>'</xsl:text>
+                  </xsl:variable>
+                  <xsl:variable name="JS" 
select="concat('ScrollToFirstVisibleMessage(', $apos, @ProjectSafeName, $apos, 
')')" />
+                  <xsl:value-of select="concat($JS, '; return false;')"/>
+                </xsl:attribute>
+              </xsl:if>
+              <xsl:value-of select="@MessageCount" />
+            </a>
+          </td>
+        </tr>
+      </xsl:for-each>
+    </table>
+  </xsl:template>
+
+  <!-- Show messages row -->
+  <xsl:template match="Project" mode="ProjectShowMessages">
+    <tr>
+      <xsl:attribute name="name">
+        <xsl:value-of select="concat('MessageRowHeaderShow', 
@ProjectSafeName)"/>
+      </xsl:attribute>
+      <td>
+        <img width="16" height="16" 
src="_UpgradeReport_Files\UpgradeReport_Information.png" />
+      </td>
+      <td class="messageCell">
+        <xsl:variable name="apos">
+          <xsl:text>'</xsl:text>
+        </xsl:variable>
+        <xsl:variable name="toggleRowsJS" 
select="concat('ToggleMessageVisibility(', $apos, @ProjectSafeName, $apos, 
')')" />
+
+        <a _locID="ShowAdditionalMessages" href="#">
+          <xsl:attribute name="name">
+            <xsl:value-of select="concat(@ProjectSafeName, 'Message')"/>
+          </xsl:attribute>
+          <xsl:attribute name="onclick">
+            <xsl:value-of select="concat($toggleRowsJS, '; return false;')"/>
+          </xsl:attribute>
+          Show <xsl:value-of select="@MessageCount" /> additional messages
+        </a>
+      </td>
+    </tr>
+  </xsl:template>
+
+  <!-- Hide messages row -->
+  <xsl:template match="Project" mode="ProjectHideMessages">
+    <tr style="display: none">
+      <xsl:attribute name="name">
+        <xsl:value-of select="concat('MessageRowHeaderHide', 
@ProjectSafeName)"/>
+      </xsl:attribute>
+      <td>
+        <img width="16" height="16" 
src="_UpgradeReport_Files\UpgradeReport_Information.png" />
+      </td>
+      <td class="messageCell">
+        <xsl:variable name="apos">
+          <xsl:text>'</xsl:text>
+        </xsl:variable>
+        <xsl:variable name="toggleRowsJS" 
select="concat('ToggleMessageVisibility(', $apos, @ProjectSafeName, $apos, 
')')" />
+
+        <a _locID="HideAdditionalMessages" href="#">
+          <xsl:attribute name="name">
+            <xsl:value-of select="concat(@ProjectSafeName, 'Message')"/>
+          </xsl:attribute>
+          <xsl:attribute name="onclick">
+            <xsl:value-of select="concat($toggleRowsJS, '; return false;')"/>
+          </xsl:attribute>
+          Hide <xsl:value-of select="@MessageCount" /> additional messages
+        </a>
+      </td>
+    </tr>
+  </xsl:template>
+
+  <!-- Message row templates -->
+  <xsl:template match="Message">
+    <tr>
+      <xsl:attribute name="name">
+        <xsl:value-of select="concat(@Status, 'RowClass', 
../../@ProjectSafeName)"/>
+      </xsl:attribute>
+
+      <xsl:if test="@Level = 0">
+        <xsl:attribute name="style">display: none</xsl:attribute>
+      </xsl:if>
+      <td>
+        <a>
+          <xsl:attribute name="name">
+            <xsl:value-of select="concat(../../@ProjectSafeName, @Status)"/>
+          </xsl:attribute>
+        </a>
+        <img width="16" height="16">
+          <xsl:attribute name="src">
+            <xsl:choose>
+              <xsl:when test="@Status = 
'Error'">_UpgradeReport_Files\UpgradeReport_Error.png</xsl:when>
+              <xsl:when test="@Status = 
'Warning'">_UpgradeReport_Files\UpgradeReport_Warning.png</xsl:when>
+              <xsl:when test="@Status = 
'Message'">_UpgradeReport_Files\UpgradeReport_Information.png</xsl:when>
+            </xsl:choose>
+          </xsl:attribute>
+          <xsl:attribute name="alt">
+            <xsl:value-of select="@Status" />
+          </xsl:attribute>
+        </img>
+      </td>
+      <td class="messageCell">
+        <strong>
+          <xsl:value-of select="@Source"/>:
+        </strong>
+        <span>
+          <xsl:value-of select="@Message"/>
+        </span>
+      </td>
+    </tr>
+  </xsl:template>
+
+  <!-- Project Details Template -->
+  <xsl:template match="Projects" mode="ProjectDetails">
+
+    <xsl:for-each select="Project">
+      <xsl:sort select="@ErrorCount" order="descending" />
+      <xsl:sort select="@WarningCount" order="descending" />
+      <!-- Always make solution last within a group -->
+      <xsl:sort select="@IsSolution" order="ascending" />
+      <xsl:sort select="@ProjectSafeName" order="ascending" />
+
+      <a>
+        <xsl:attribute name="name">
+          <xsl:value-of select="@ProjectSafeName"/>
+        </xsl:attribute>
+      </a>
+      <xsl:choose>
+        <xsl:when test="@ProjectDisplayName = ''">
+          <h3 _locID="ProjectDisplayNameHeader">Solution</h3>
+        </xsl:when>
+        <xsl:otherwise>
+          <h3>
+            <xsl:value-of select="@ProjectDisplayName"/>
+          </h3>
+        </xsl:otherwise>
+      </xsl:choose>
+
+      <table>
+        <tr>
+          <xsl:attribute name="id">
+            <xsl:value-of select="concat(@ProjectSafeName, 'HeaderRow')"/>
+          </xsl:attribute>
+          <th></th>
+          <th class="messageCell" _locID="MessageTableHeader">Message</th>
+        </tr>
+
+        <!-- Errors and warnings -->
+        <xsl:for-each select="Messages/Message[@Level &gt; 0]">
+          <xsl:sort select="@Level" order="descending" />
+          <xsl:apply-templates select="." />
+        </xsl:for-each>
+
+        <xsl:if test="@MessageCount > 0">
+          <xsl:apply-templates select="." mode="ProjectShowMessages" />
+        </xsl:if>
+
+        <!-- Messages -->
+        <xsl:for-each select="Messages/Message[@Level = 0]">
+          <xsl:apply-templates select="." />
+        </xsl:for-each>
+
+        <xsl:choose>
+          <!-- Additional row as a 'place holder' for 'Show/Hide' additional 
messages -->
+          <xsl:when test="@MessageCount > 0">
+            <xsl:apply-templates select="." mode="ProjectHideMessages" />
+          </xsl:when>
+          <!-- No messages at all, show blank row -->
+          <xsl:when test="@TotalCount = 0">
+            <tr>
+              <td>
+                <img width="16" height="16" 
src="_UpgradeReport_Files\UpgradeReport_Information.png" />
+              </td>
+              <xsl:choose>
+                <xsl:when test="@ProjectDisplayName = ''">
+                  <td class="messageCell" _locID="NoMessagesRow2">
+                    Solution logged no messages.
+                  </td>
+                </xsl:when>
+                <xsl:otherwise>
+                  <td class="messageCell" _locID="NoMessagesRow">
+                    <xsl:value-of select="@ProjectDisplayName" /> logged no 
messages.
+                  </td>
+                </xsl:otherwise>
+              </xsl:choose>
+            </tr>
+          </xsl:when>
+        </xsl:choose>
+      </table>
+    </xsl:for-each>
+  </xsl:template>
+
+  <!-- Document, matches "UpgradeReport" -->
+  <xsl:template match="UpgradeReport">
+    <!-- Output doc type the 'Mark of the web' which disabled prompting to run 
JavaScript from local HTML Files in IE -->
+    <!-- NOTE: The whitespace around the 'Mark of the web' is important it 
must be exact -->
+    <xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html>
+<!-- saved from url=(0014)about:internet -->
+]]>
+    </xsl:text>
+    <html>
+      <head>
+        <meta content="en-us" http-equiv="Content-Language" />
+        <meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
+        <link type="text/css" rel="stylesheet" 
href="_UpgradeReport_Files\UpgradeReport.css" />
+        <title _locID="ConversionReport0">
+          Migration Report
+        </title>
+
+        <script type="text/javascript" language="javascript">
+          <xsl:text disable-output-escaping="yes">
+          <![CDATA[
+          
+            // Startup 
+            // Hook up the the loaded event for the document/window, to 
linkify the document content
+            var startupFunction = function() { linkifyElement("messages"); };
+            
+            if(window.attachEvent)
+            {
+              window.attachEvent('onload', startupFunction);
+            }
+            else if (window.addEventListener) 
+            {
+              window.addEventListener('load', startupFunction, false);
+            }
+            else 
+            {
+              document.addEventListener('load', startupFunction, false);
+            } 
+            
+            // Toggles the visibility of table rows with the specified name 
+            function toggleTableRowsByName(name)
+            {
+               var allRows = document.getElementsByTagName('tr');
+               for (i=0; i < allRows.length; i++)
+               {
+                  var currentName = allRows[i].getAttribute('name');
+                  if(!!currentName && currentName.indexOf(name) == 0)
+                  {
+                      var isVisible = allRows[i].style.display == ''; 
+                      isVisible ? allRows[i].style.display = 'none' : 
allRows[i].style.display = '';
+                  }
+               }
+            }
+            
+            function scrollToFirstVisibleRow(name) 
+            {
+               var allRows = document.getElementsByTagName('tr');
+               for (i=0; i < allRows.length; i++)
+               {
+                  var currentName = allRows[i].getAttribute('name');
+                  var isVisible = allRows[i].style.display == ''; 
+                  if(!!currentName && currentName.indexOf(name) == 0 && 
isVisible)
+                  {
+                     allRows[i].scrollIntoView(true); 
+                     return true; 
+                  }
+               }
+               
+               return false;
+            }
+            
+            // Linkifies the specified text content, replaces candidate links 
with html links 
+            function linkify(text)
+            {
+                 if(!text || 0 === text.length)
+                 {
+                     return text; 
+                 }
+
+                 // Find http, https and ftp links and replace them with hyper 
links 
+                 var urlLink = 
/(http|https|ftp)\:\/\/[a-zA-Z0-9\-\.]+(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9\-\._\?\,\/\\\+&%\$#\=~;\{\}])*/gi;
+                 
+                 return text.replace(urlLink, '<a href="$&">$&</a>') ;
+            }
+            
+            // Linkifies the specified element by ID
+            function linkifyElement(id)
+            {
+                var element = document.getElementById(id);
+                if(!!element)
+                {
+                  element.innerHTML = linkify(element.innerHTML); 
+                }
+            }
+            
+            function ToggleMessageVisibility(projectName)
+            {
+              if(!projectName || 0 === projectName.length)
+              {
+                return; 
+              }
+              
+              toggleTableRowsByName("MessageRowClass" + projectName);
+              toggleTableRowsByName('MessageRowHeaderShow' + projectName);
+              toggleTableRowsByName('MessageRowHeaderHide' + projectName); 
+            }
+            
+            function ScrollToFirstVisibleMessage(projectName)
+            {
+              if(!projectName || 0 === projectName.length)
+              {
+                return; 
+              }
+              
+              // First try the 'Show messages' row
+              if(!scrollToFirstVisibleRow('MessageRowHeaderShow' + 
projectName))
+              {
+                // Failed to find a visible row for 'Show messages', try an 
actual message row 
+                scrollToFirstVisibleRow('MessageRowClass' + projectName); 
+              }
+            }
+          ]]>
+        </xsl:text>
+        </script>
+      </head>
+      <body>
+        <h1 _locID="ConversionReport">
+          Migration Report - <xsl:value-of 
select="Properties/Property[@Name='Solution']/@Value"/>
+        </h1>
+
+        <div id="content">
+          <h2 _locID="OverviewTitle">Overview</h2>
+          <xsl:variable name="projectOverview">
+            <xsl:apply-templates select="self::node()" 
mode="ProjectOverviewXML" />
+          </xsl:variable>
+
+          <div id="overview">
+            <xsl:apply-templates select="msxsl:node-set($projectOverview)/*" 
mode="ProjectOverview" />
+          </div>
+
+          <h2 _locID="SolutionAndProjectsTitle">Solution and projects</h2>
+
+          <div id="messages">
+            <xsl:apply-templates select="msxsl:node-set($projectOverview)/*" 
mode="ProjectDetails" />
+          </div>
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport.xslt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Error.png
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Error.png?rev=1642272&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Error.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Information.png
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Information.png?rev=1642272&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Information.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Success.png
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Success.png?rev=1642272&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Success.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Warning.png
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Warning.png?rev=1642272&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/_UpgradeReport_Files/UpgradeReport_Warning.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/key.snk
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/key.snk?rev=1642272&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.SiteAssets/key.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts.sln
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts.sln?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts.sln
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts.sln
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,33 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = 
"CMIS.Sharepoint.WebParts", 
"CMIS.Sharepoint.WebParts\CMIS.Sharepoint.WebParts.csproj", 
"{1CEFA895-B680-4738-9793-816E426D3BA7}"
+       ProjectSection(ProjectDependencies) = postProject
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A} = 
{61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}
+       EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = 
"CMIS.Sharepoint.SiteAssets", 
"..\CMIS.Sharepoint.SiteAssets\CMIS.Sharepoint.SiteAssets.csproj", 
"{61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|Any CPU = Debug|Any CPU
+               Release|Any CPU = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {1CEFA895-B680-4738-9793-816E426D3BA7}.Debug|Any CPU.ActiveCfg 
= Debug|Any CPU
+               {1CEFA895-B680-4738-9793-816E426D3BA7}.Debug|Any CPU.Build.0 = 
Debug|Any CPU
+               {1CEFA895-B680-4738-9793-816E426D3BA7}.Debug|Any CPU.Deploy.0 = 
Debug|Any CPU
+               {1CEFA895-B680-4738-9793-816E426D3BA7}.Release|Any 
CPU.ActiveCfg = Release|Any CPU
+               {1CEFA895-B680-4738-9793-816E426D3BA7}.Release|Any CPU.Build.0 
= Release|Any CPU
+               {1CEFA895-B680-4738-9793-816E426D3BA7}.Release|Any CPU.Deploy.0 
= Release|Any CPU
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}.Debug|Any CPU.ActiveCfg 
= Debug|Any CPU
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}.Debug|Any CPU.Build.0 = 
Debug|Any CPU
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}.Debug|Any CPU.Deploy.0 = 
Debug|Any CPU
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}.Release|Any 
CPU.ActiveCfg = Release|Any CPU
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}.Release|Any CPU.Build.0 
= Release|Any CPU
+               {61F0EDA5-B65B-4109-A5BA-ECD57899DB2A}.Release|Any CPU.Deploy.0 
= Release|Any CPU
+       EndGlobalSection
+       GlobalSection(SolutionProperties) = preSolution
+               HideSolutionNode = FALSE
+       EndGlobalSection
+EndGlobal

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,76 @@
+<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
+<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, 
PublicKeyToken=71e9bce111e9429c" %> 
+<%@ Register Tagprefix="SharePoint" 
Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, 
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
+<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" 
Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, 
PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="asp" Namespace="System.Web.UI" 
Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=31bf3856ad364e35" %>
+<%@ Import Namespace="Microsoft.SharePoint" %> 
+<%@ Register Tagprefix="WebPartPages" 
Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, 
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Browser.ascx.cs" 
Inherits="CMIS.Sharepoint.WebParts.Browser.Browser" %>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Browser</title>
+
+<!-- CMIS Dependencies -->
+<SharePoint:ScriptLink ID="jquery" runat="server" 
Name="~SiteCollection/SiteAssets/dependencies/jquery-1.11.1.min.js" />
+<SharePoint:ScriptLink ID="cmis" runat="server" 
Name="~SiteCollection/SiteAssets/lib/cmis.js" />
+<SharePoint:ScriptLink ID="CMISBrowserJS" runat="server" 
Name="~SiteCollection/SiteAssets/browser/browser.js" />
+<asp:literal ID="CMISBrowserCSS" runat="server" Text="&lt;link 
href='"/><SharePoint:ProjectProperty ID="ProjectProperty2" Property="SiteUrl" 
runat="server" /><asp:literal ID="Literal4" runat="server" 
Text="/SiteAssets/browser/browser.css' rel='stylesheet' type='text/css'/&gt;"/>
+<SharePoint:ScriptLink ID="CMISWebParts" runat="server" 
Name="~SiteCollection/SiteAssets/dependencies/cmiswebparts.js" />
+</head>
+<body>
+
+       <div id="browser" class="cmisbrowser"></div>
+
+    <script type="text/javascript">
+        var hiddenField = document.getElementById('BrowserWebPartProperties');
+        if (hiddenField != undefined && hiddenField != null) {
+            webpartProperies = eval("(" + hiddenField.value + ")");
+        }
+
+        var initPath = null;
+        if (webpartProperies.InitialPath.length > 0)
+            initPath = webpartProperies.InitialPath;
+
+        var initObjectId = null;
+        if (webpartProperies.InitialObjectID.length > 0)
+            initObjectId = webpartProperies.InitialObjectID;
+
+        var browserOptions = {
+            cmis: {
+                serverUrl: webpartProperies.Url,
+                username: webpartProperies.Username,
+                password: webpartProperies.Password,
+                initObjectId: initObjectId,
+                initPath: initPath
+            }
+        };
+
+        // Override if an object has been created in the windows
+        if (typeof cmisBrowserOptions !== 'undefined')
+            $.extend(true, browserOptions, cmisBrowserOptions);
+
+        var browser = $("#browser").cmisbrowser(browserOptions);
+    </script>
+    <!-- 
+    /**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+        -->
+</body>
+</html>
\ No newline at end of file

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.cs
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.cs?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.cs
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.cs
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,218 @@
+using System;
+using System.Linq;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Text;
+using System.Configuration;
+using Microsoft.SharePoint;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace CMIS.Sharepoint.WebParts.Browser
+{
+    [ToolboxItemAttribute(false)]
+    public partial class Browser : WebPart, IWebEditable
+    {
+
+        private string _cmisConnectionName = "";
+        private string _cmisConnectionUrl = "";
+        private string _cmisConnectionUser = "";
+        private string _cmisConnectionPassword = "";
+
+        private string _cmisInitialObjectID = "";
+        private string _cmisInitialPath = "";
+
+        // Hide the property so it will not show in toolpane
+        [WebBrowsable(false),
+        Personalizable(PersonalizationScope.Shared),
+        DefaultValue("")]
+        public string CMISConnectionName
+        {
+            get
+            {
+                return _cmisConnectionName;
+            }
+            set
+            {
+                _cmisConnectionName = value;
+            }
+        }
+        // Hide the property so it will not show in toolpane
+        [WebBrowsable(false),
+        Personalizable(PersonalizationScope.Shared),
+        DefaultValue("")]
+        public string CMISConnectionUrl
+        {
+            get
+            {
+                return _cmisConnectionUrl;
+            }
+            set
+            {
+                _cmisConnectionUrl = value;
+            }
+        }
+        // Hide the property so it will not show in toolpane
+        [WebBrowsable(false),
+        Personalizable(PersonalizationScope.Shared),
+        DefaultValue("")]
+        public string CMISConnectionUser
+        {
+            get
+            {
+                return _cmisConnectionUser;
+            }
+            set
+            {
+                _cmisConnectionUser = value;
+            }
+        }
+        // Hide the property so it will not show in toolpane
+        [WebBrowsable(false),
+        Personalizable(PersonalizationScope.Shared),
+        DefaultValue("")]
+        public string CMISConnectionPassword
+        {
+            get
+            {
+                return _cmisConnectionPassword;
+            }
+            set
+            {
+                _cmisConnectionPassword = value;
+            }
+        }
+
+        // Hide the property so it will not show in toolpane
+        [WebBrowsable(false),
+        Personalizable(PersonalizationScope.Shared),
+        DefaultValue("")]
+        public string CMISInitialObjectID
+        {
+            get
+            {
+                return _cmisInitialObjectID;
+            }
+            set
+            {
+                _cmisInitialObjectID = value;
+            }
+        }
+
+        // Hide the property so it will not show in toolpane
+        [WebBrowsable(false),
+        Personalizable(PersonalizationScope.Shared),
+        DefaultValue("")]
+        public string CMISInitialPath
+        {
+            get
+            {
+                return _cmisInitialPath;
+            }
+            set
+            {
+                _cmisInitialPath = value;
+            }
+        }
+
+        // Uncomment the following SecurityPermission attribute only when 
doing Performance Profiling on a farm solution
+        // using the Instrumentation method, and then remove the 
SecurityPermission attribute when the code is ready
+        // for production. Because the SecurityPermission attribute bypasses 
the security check for callers of
+        // your constructor, it's not recommended for production purposes.
+        // 
[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert,
 UnmanagedCode = true)]
+        public Browser()
+        {
+        }
+
+        protected override void OnInit(EventArgs e)
+        {
+            base.OnInit(e);
+            InitializeControl();
+        }
+
+        protected void Page_Load(object sender, EventArgs e)
+        {
+        }
+        protected override void CreateChildControls()
+        {
+            this.Controls.Clear();
+
+            HiddenField hiddenWebPartProperties = new HiddenField() { ID = 
"BrowserWebPartProperties", ClientIDMode = System.Web.UI.ClientIDMode.Static };
+            this.Controls.Add(hiddenWebPartProperties);
+
+            base.CreateChildControls();
+
+        }
+        protected override void OnPreRender(EventArgs e)
+        {
+            base.OnPreRender(e);
+
+            // use a JSON array for the the WebPart Properties
+            string webPartPropertiesJSON = string.Empty;
+
+            if (CMISConnectionName != null && CMISConnectionName.Length > 0)
+            {
+                // get connection variables from the CMIS Connection list
+                using (SPSite siteCollection = new 
SPSite(SPContext.Current.Web.Url))
+                {
+                    using (SPWeb web = siteCollection.OpenWeb())
+                    {
+                        SPListItemCollection iColl = web.Lists["CMIS 
Connections"].Items;
+                        foreach (SPListItem item in iColl)
+                        {
+                            if 
(item["Title"].ToString().Equals(CMISConnectionName))
+                            {
+                                CMISConnectionUrl = item["Url"].ToString();
+                                CMISConnectionUser = 
item["UserName1"].ToString();
+                                CMISConnectionPassword = 
item["Password"].ToString();
+                            }
+                        }
+                    }
+                }
+
+                webPartPropertiesJSON = "{ 'ConnectionName': '" + 
CMISConnectionName + "', 'Url': '" + CMISConnectionUrl + "', 'Username': '" + 
CMISConnectionUser + "', 'Password': '" + CMISConnectionPassword + "', 
'InitialObjectID': '" + (CMISInitialObjectID == null ? "" : 
CMISInitialObjectID) + "', 'InitialPath': '" + (CMISInitialPath == null ? "" : 
CMISInitialPath) + "' }";
+
+            }
+            else
+            {
+                webPartPropertiesJSON = "{ 'ConnectionName': '', 'Url': '', 
'Username': '', 'Password': '', 'InitialObjectID': '" + (CMISInitialObjectID == 
null ? "" : CMISInitialObjectID) + "', 'InitialPath': '" + (CMISInitialPath == 
null ? "" : CMISInitialPath) + "' }";
+            }
+            ((HiddenField)this.FindControl("BrowserWebPartProperties")).Value 
= webPartPropertiesJSON;
+        }
+
+        // load the custom editor panek
+        EditorPartCollection IWebEditable.CreateEditorParts()
+        {
+            var editors = new List<EditorPart>();
+            BrowserEditorWebPart editorPart = new BrowserEditorWebPart();
+            editorPart.ID = ID + "_editorPart";
+            editors.Add(editorPart);
+            return new EditorPartCollection(editors);
+        }
+
+        object IWebEditable.WebBrowsableObject
+        {
+            get { return this; }
+        }
+
+    }
+}

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.g.cs
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.g.cs?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.g.cs
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.ascx.g.cs
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,216 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18444
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CMIS.Sharepoint.WebParts.Browser {
+    using System.Web.UI.WebControls.Expressions;
+    using System.Web.UI.HtmlControls;
+    using System.Collections;
+    using System.Text;
+    using System.Web.UI;
+    using System.Collections.Generic;
+    using System.Linq;
+    using System.Xml.Linq;
+    using Microsoft.SharePoint.WebPartPages;
+    using System.Web.SessionState;
+    using System.Configuration;
+    using Microsoft.SharePoint;
+    using System.Web;
+    using System.Web.DynamicData;
+    using System.Web.Caching;
+    using System.Web.Profile;
+    using System.ComponentModel.DataAnnotations;
+    using System.Web.UI.WebControls;
+    using System.Web.Security;
+    using System;
+    using Microsoft.SharePoint.Utilities;
+    using System.Text.RegularExpressions;
+    using System.Collections.Specialized;
+    using System.Web.UI.WebControls.WebParts;
+    using Microsoft.SharePoint.WebControls;
+    
+    
+    public partial class Browser {
+        
+        protected global::Microsoft.SharePoint.WebControls.ScriptLink jquery;
+        
+        protected global::Microsoft.SharePoint.WebControls.ScriptLink cmis;
+        
+        protected global::Microsoft.SharePoint.WebControls.ScriptLink 
CMISBrowserJS;
+        
+        protected global::System.Web.UI.WebControls.Literal CMISBrowserCSS;
+        
+        protected global::Microsoft.SharePoint.WebControls.ProjectProperty 
ProjectProperty2;
+        
+        protected global::System.Web.UI.WebControls.Literal Literal4;
+        
+        protected global::Microsoft.SharePoint.WebControls.ScriptLink 
CMISWebParts;
+        
+        public static implicit operator 
global::System.Web.UI.TemplateControl(Browser target) 
+        {
+            return target == null ? null : target.TemplateControl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::Microsoft.SharePoint.WebControls.ScriptLink 
@__BuildControljquery() {
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl;
+            @__ctrl = new 
global::Microsoft.SharePoint.WebControls.ScriptLink();
+            this.jquery = @__ctrl;
+            @__ctrl.ID = "jquery";
+            @__ctrl.Name = 
"~SiteCollection/SiteAssets/dependencies/jquery-1.11.1.min.js";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::Microsoft.SharePoint.WebControls.ScriptLink 
@__BuildControlcmis() {
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl;
+            @__ctrl = new 
global::Microsoft.SharePoint.WebControls.ScriptLink();
+            this.cmis = @__ctrl;
+            @__ctrl.ID = "cmis";
+            @__ctrl.Name = "~SiteCollection/SiteAssets/lib/cmis.js";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::Microsoft.SharePoint.WebControls.ScriptLink 
@__BuildControlCMISBrowserJS() {
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl;
+            @__ctrl = new 
global::Microsoft.SharePoint.WebControls.ScriptLink();
+            this.CMISBrowserJS = @__ctrl;
+            @__ctrl.ID = "CMISBrowserJS";
+            @__ctrl.Name = "~SiteCollection/SiteAssets/browser/browser.js";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::System.Web.UI.WebControls.Literal 
@__BuildControlCMISBrowserCSS() {
+            global::System.Web.UI.WebControls.Literal @__ctrl;
+            @__ctrl = new global::System.Web.UI.WebControls.Literal();
+            this.CMISBrowserCSS = @__ctrl;
+            @__ctrl.ID = "CMISBrowserCSS";
+            @__ctrl.Text = "<link href=\'";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::Microsoft.SharePoint.WebControls.ProjectProperty 
@__BuildControlProjectProperty2() {
+            global::Microsoft.SharePoint.WebControls.ProjectProperty @__ctrl;
+            @__ctrl = new 
global::Microsoft.SharePoint.WebControls.ProjectProperty();
+            this.ProjectProperty2 = @__ctrl;
+            @__ctrl.ID = "ProjectProperty2";
+            @__ctrl.Property = "SiteUrl";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::System.Web.UI.WebControls.Literal 
@__BuildControlLiteral4() {
+            global::System.Web.UI.WebControls.Literal @__ctrl;
+            @__ctrl = new global::System.Web.UI.WebControls.Literal();
+            this.Literal4 = @__ctrl;
+            @__ctrl.ID = "Literal4";
+            @__ctrl.Text = "/SiteAssets/browser/browser.css\' 
rel=\'stylesheet\' type=\'text/css\'/>";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private global::Microsoft.SharePoint.WebControls.ScriptLink 
@__BuildControlCMISWebParts() {
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl;
+            @__ctrl = new 
global::Microsoft.SharePoint.WebControls.ScriptLink();
+            this.CMISWebParts = @__ctrl;
+            @__ctrl.ID = "CMISWebParts";
+            @__ctrl.Name = 
"~SiteCollection/SiteAssets/dependencies/cmiswebparts.js";
+            return @__ctrl;
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        private void 
@__BuildControlTree(global::CMIS.Sharepoint.WebParts.Browser.Browser @__ctrl) {
+            System.Web.UI.IParserAccessor @__parser = 
((System.Web.UI.IParserAccessor)(@__ctrl));
+            @__parser.AddParsedSubObject(new 
System.Web.UI.LiteralControl("\r\n<html>\r\n<head>\r\n<meta 
charset=\"utf-8\">\r\n<title>Browser</title>\r\n\r\n<!-- CMIS Dep" +
+                        "endencies -->\r\n"));
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl1;
+            @__ctrl1 = this.@__BuildControljquery();
+            @__parser.AddParsedSubObject(@__ctrl1);
+            @__parser.AddParsedSubObject(new 
System.Web.UI.LiteralControl("\r\n"));
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl2;
+            @__ctrl2 = this.@__BuildControlcmis();
+            @__parser.AddParsedSubObject(@__ctrl2);
+            @__parser.AddParsedSubObject(new 
System.Web.UI.LiteralControl("\r\n"));
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl3;
+            @__ctrl3 = this.@__BuildControlCMISBrowserJS();
+            @__parser.AddParsedSubObject(@__ctrl3);
+            @__parser.AddParsedSubObject(new 
System.Web.UI.LiteralControl("\r\n"));
+            global::System.Web.UI.WebControls.Literal @__ctrl4;
+            @__ctrl4 = this.@__BuildControlCMISBrowserCSS();
+            @__parser.AddParsedSubObject(@__ctrl4);
+            global::Microsoft.SharePoint.WebControls.ProjectProperty @__ctrl5;
+            @__ctrl5 = this.@__BuildControlProjectProperty2();
+            @__parser.AddParsedSubObject(@__ctrl5);
+            global::System.Web.UI.WebControls.Literal @__ctrl6;
+            @__ctrl6 = this.@__BuildControlLiteral4();
+            @__parser.AddParsedSubObject(@__ctrl6);
+            @__parser.AddParsedSubObject(new 
System.Web.UI.LiteralControl("\r\n"));
+            global::Microsoft.SharePoint.WebControls.ScriptLink @__ctrl7;
+            @__ctrl7 = this.@__BuildControlCMISWebParts();
+            @__parser.AddParsedSubObject(@__ctrl7);
+            @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(@"
+</head>
+<body>
+
+       <div id=""browser"" class=""cmisbrowser""></div>
+
+    <script type=""text/javascript"">
+        var hiddenField = document.getElementById('BrowserWebPartProperties');
+        if (hiddenField != undefined && hiddenField != null) {
+            webpartProperies = eval(""("" + hiddenField.value + "")"");
+        }
+
+        var initPath = null;
+        if (webpartProperies.InitialPath.length > 0)
+            initPath = webpartProperies.InitialPath;
+
+        var initObjectId = null;
+        if (webpartProperies.InitialObjectID.length > 0)
+            initObjectId = webpartProperies.InitialObjectID;
+
+        var browserOptions = {
+            cmis: {
+                serverUrl: webpartProperies.Url,
+                username: webpartProperies.Username,
+                password: webpartProperies.Password,
+                initObjectId: initObjectId,
+                initPath: initPath
+            }
+        };
+
+        // Override if an object has been created in the windows
+        if (typeof cmisBrowserOptions !== 'undefined')
+            $.extend(true, browserOptions, cmisBrowserOptions);
+
+        var browser = $(""#browser"").cmisbrowser(browserOptions);
+    </script>
+
+</body>
+</html>"));
+        }
+        
+        private void InitializeControl() {
+            this.@__BuildControlTree(this);
+            this.Load += new global::System.EventHandler(this.Page_Load);
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        protected virtual object Eval(string expression) {
+            return 
global::System.Web.UI.DataBinder.Eval(this.Page.GetDataItem(), expression);
+        }
+        
+        
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
+        protected virtual string Eval(string expression, string format) {
+            return 
global::System.Web.UI.DataBinder.Eval(this.Page.GetDataItem(), expression, 
format);
+        }
+    }
+}

Added: 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.webpart
URL: 
http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.webpart?rev=1642272&view=auto
==============================================================================
--- 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.webpart
 (added)
+++ 
chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.WebParts/CMIS.Sharepoint.WebParts/Browser/Browser.webpart
 Fri Nov 28 08:44:28 2014
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<webParts>
+  <webPart xmlns="http://schemas.microsoft.com/WebPart/v3";>
+    <metaData>
+      <type name="CMIS.Sharepoint.WebParts.Browser.Browser, 
$SharePoint.Project.AssemblyFullName$" />
+      
<importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
+    </metaData>
+    <data>
+      <properties>
+        <property name="Title" type="string">Browser</property>
+        <property name="Description" type="string">This component can be used 
to browse a CMIS 1.1 compliant repository using a tree folder.</property>
+      </properties>
+    </data>
+  </webPart>
+</webParts>
+<!--
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+-->


Reply via email to