1function ImportArticlesForSelectedDocument() { 2 var ctx = SP.ClientContext.get_current(); 3 var webId = _spPageContextInfo.webId; 4 var items = SP.ListOperation.Selection.getSelectedItems(ctx); 5 if (!items || items.length === 0) { 6 alert('Please select a document.'); 7 return; 8 } 9 var itemId = items[0].id; 10 var libId = SP.ListOperation.Selection.getSelectedList(); 11 var url = '/_layouts/15/RoedlWWW/ImportArticles.aspx?iid=' + encodeURIComponent(itemId) 12 + '&lid=' + encodeURIComponent(libId) 13 + '&wid=' + encodeURIComponent(webId.toString()); 14 window.location.href = url; 15}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.