This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://mycompany.sharepoint.com/_api/search/query?querytext='owsTileAudience:"Office J" Path:"https://mycompany.sharepoint.com/Lists/AudienceTileLinks/*"'&selectproperties='owsTileAudience,TileNameOWSTEXT,TileURLOWSTEXT' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://mycompany.sharepoint.com/_api/search/query?querytext='owsTileAudience:"Office J" Path:"https://mycompany.sharepoint.com/Lists/AudienceTileLinks/*"'&selectproperties='owsTileAudience,TileNameOWSTEXT,TileURLOWSTEXT' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://mycompany.sharepoint.com/_api/search/query?querytext='owsTileAudience:"Office J" Path:"https://mycompany.sharepoint.com/Lists/AudienceTileLinks/*"'&selectproperties='owsTileAudience,TileNameOWSTEXT,TileURLOWSTEXT' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _refiner = $getClientControl(document.getElementById($('div[refinername="owsRegion"]').attr('id'))); | |
_refiner.addRefinementFilter('owsRegion','\"UK Region\"'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://awesome.sharepoint.com/sites/search/Pages/Results.aspx?k=owsRegion="UK Region"#Default={"k":"owsRegion=\"UK Region\"","r":[{"n":"owsRegion","t":["\"UK Region\""],"o":"and","k":false,"m":null}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://awesome.sharepoint.com/sites/search/Pages/Results.aspx?k=owsRegion="UK Region"#Default={"k":"owsRegion=\"UK Region\"","r":[{"n":"owsRegion","t":["\"ǂǂ554b4d454120526567696f6e\""],"o":"and","k":false,"m":null}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stringToHex = function(s) { | |
var _hex = ''; | |
for (var i = 0; i < s.length; i++) { | |
_hex += (s.charCodeAt(i).toString(16)); | |
} | |
return _hex.toLowerCase(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _filter = $('div[refinername="owsRegion"]'); | |
var _selection = _filter.find('a.ms-displayBlock div:contains("UK Region")'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loadFilteredResults = function (prop, value) { | |
window.location.href = window.location.protocol + '//' + window.location.hostname + '/sites/search/pages/Results.aspx?k=' + escape(prop + '="' + value) + '"#Default={"k":"' + escape(prop + ':\\"' + value) + '\\"","r":[{"n":"' + prop + '","t":["\\"' + unescape('%u01C2') + unescape('%u01C2') + stringToHex(value) + '\\""],"o":"and","k":false,"m":null}]}'; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loadFilteredResults = function (prop, value) { | |
var _isRefiner; | |
var _baseUrl = window.location.protocol + '//' + window.location.hostname + '/sites/search/pages/Results.aspx?k=' + escape(prop + '="' + value) + '"'"; | |
switch (prop) { | |
case "owsRegion": | |
case "owsCountry": | |
case "owsEmpire": | |
case "owsGalaxy": | |
_isRefiner = true; |