reference :

https://powersearching.wordpress.com/2013/06/05/custom-meta-tags-for-web-pages-in-sharepoint-search/

 

https://social.technet.microsoft.com/wiki/contents/articles/18091.sharepoint-2013-crawled-properties-for-html-meta-tags.aspx

 

search scope gone

http://itgroove.net/brainlitter/2013/03/22/sharepoint-2013-search-scopes-are-gone-but-dont-fret/

query rule & result source

https://blogs.technet.microsoft.com/mspfe/2013/02/01/how-to-customize-sharepoint-2013-search-results-using-query-rules-and-result-sources/

  1. By default “All Day Event” checked using JavaScript

 

http://~~~~~/jquery.js

$(function() {

// checks All Day Event
//$(“span[title=’All Day Event’] > input”).attr(“checked”,”checked”);

//instead check the box, better to call the click event
if( !$(“span[title=’All Day Event’] > input”).attr(“checked”) ){
$(“span[title=’All Day Event’] > input”).click();
}
//hide the fields
$(“tr:has(span[title=’All Day Event’])”).not(“tr:has(tr)”).hide();
$(“tr:has(span[title=’Recurrence’])”).not(“tr:has(tr)”).hide();

});

 

 

strQuery = “<View><Query> ………………………….</Query><RowLimit>5</RowLimit></View>”;

 

camlQuery.set_viewXml(strQuery);
if(glbNextPagingInfo){ ////”Paged=TRUE&p_GoLiveDate=20161118%2016%3a00%3a00&p_ID=12″
var position = new SP.ListItemCollectionPosition();
position.set_pagingInfo(glbNextPagingInfo);
camlQuery.set_listItemCollectionPosition(position);
}

 

var glbNextPagingInfo;

function managePagerControl() {

var footerHtml = “”;
$(“#footerShowMoreLink”).remove();

if (collListItems_Breakers.get_listItemCollectionPosition()) {
glbNextPagingInfo = collListItems_Breakers.get_listItemCollectionPosition().get_pagingInfo();

footerHtml = “<a href=\”#\” onclick=\”showMoreClick();\” id=\”footerShowMoreLink\”>[Show next ” + glbPageSize + “]</a>”;

} else {
glbNextPagingInfo = null;
}

document.getElementById(“divFooter”).innerHTML += footerHtml;

}

function showMoreClick() {
getItemsFromList();
}

 

 

//reference from : https://code.msdn.microsoft.com/sharepoint/SharePoint-JSOM-list-5104ca92

If you set ‘Content Approval’ for the list, this OOTB field will be added into list.

Internal name : _ModerationStatus

Display name : Approval Status

fieldtype : ModStat

1. Caml Query :

Approved

/* CamlQuery viewXml
<Eq> <FieldRef Name=’_ModerationStatus’ /><Value Type=’ModStat’>Approved</Value>\
</Eq>\
*/

 

oListItem.get_item(‘_ModerationComments’);

oListItem.get_item(‘_ModerationStatus’);

2. Rest Query

/_api/Web/lists/getbytitle(‘LIST_DISPLAYNAME’)/Items&$filter=_ModerationStatus eq 0

data.d.results[i].OData_ModerationComments

data.d.results[i].OData_ModerationStatus

public enum SPModerationStatusType
{
Approved, //0
Denied, //1
Pending, //2
Draft, //3
Scheduled //4
}

SPModerationStatusType.Approved