[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"alexanderstreet_foundation","theme_token":"YXXspycsh3HliRJLNgU6Rp2DSE2rM-cqCfWN93Mklvc","jquery_version":"1.9"},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Close","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px"},"Statistics":{"metaDataUrl":"\/ajax\/statistics\/event\/meta-data","supportedEvents":{"EVENT_PLAYLIST_VIEW":"playlist:view","EVENT_ENTITY_VIEW":"record_view","EVENT_CLIP_VIEW":"clip:view","EVENT_EMBEDDED_PLAYLIST_VIEW":"embedded_playlist:view","EVENT_EMBEDDED_ENTITY_VIEW":"embedded_entity:view","EVENT_EMBEDDED_CLIP_VIEW":"embedded_clip:view","EVENT_SEARCH":"search","EVENT_SEARCH_RESULT_CLICK":"search_result:click","EVENT_UCV_SEARCH":"ucv:search","EVENT_UNIPLAYER_SEARCH":"uniplayer:search","EVENT_ACCESS_DENIED":"access_denied","EVENT_PLAYLIST_CREATE":"playlist:create","EVENT_PLAYLIST_ADD":"playlist:add","EVENT_UNIPLAYER_FEEDBACK":"uniplayer:feedback","EVENT_UNIPLAYER_PLAYBACK":"uniplayer:playback","EVENT_UNIPLAYER_AGGREGATE_PLAYBACK":"uniplayer:aggregated_playback","EVENT_UNIPLAYER_CACHE_AGGREGATE_PLAYBACK":"uniplayer:cache_aggregated_playback","EVENT_SESSION_START":"session_start"},"blackListedEvents":[],"securityToken":"z-79zzMlVz-xoIZ3xLGVu5evr7-lrsvIupDUgRUhGfc","enabled":true,"debug":false},"SquidSolutions":{"libraryUrl":"https:\/\/d3crmev290s45i.cloudfront.net\/js\/tracker.js","tagUrl":"https:\/\/d3crmev290s45i.cloudfront.net\/t.gif","supportedEvents":{"SQUID_SOLUTIONS_EVENT_RESULT_CLICK":"resultclick","SQUID_SOLUTIONS_EVENT_SEARCH":"search","SQUID_SOLUTIONS_EVENT_UCV_SEARCH":"ucv:search","SQUID_SOLUTIONS_EVENT_UNIPLAYER_SEARCH":"uniplayer:search","SQUID_SOLUTIONS_EVENT_RECORD_VIEW":"record_view","SQUID_SOLUTIONS_EVENT_ACCESS_DENIED":"access_denied","SQUID_SOLUTIONS_EVENT_ACCESS_BOOK_DENIED":"access_book_denied","SQUID_SOLUTIONS_EVENT_ACCESS_DB_DENIED":"access_db_denied","SQUID_SOLUTIONS_EVENT_BOOK_SEARCH":"booksearch","SQUID_SOLUTIONS_EVENT_PLAYLIST":"playlist","SQUID_SOLUTIONS_EVENT_RECORD_VIEW_PLAYLIST":"record_view_playlist","SQUID_SOLUTIONS_EVENT_FEEDBACK":"uniplayer:feedback","SQUID_SOLUTIONS_EVENT_PLAYBACK":"uniplayer:playback","SQUID_SOLUTIONS_EVENT_AGGREGATED_PLAYBACK":"uniplayer:aggregated_playback","SQUID_SOLUTIONS_EVENT_CACHE_AGGREGATED_PLAYBACK":"uniplayer:cache_aggregated_playback","SQUID_SOLUTIONS_EVENT_CITED":"cited","SQUID_SOLUTIONS_EVENT_SHARED":"shared","SQUID_SOLUTIONS_EVENT_EMBEDDED":"embedded","SQUID_SOLUTIONS_EVENT_PLAYLIST_CREATE":"playlist_create","SQUID_SOLUTIONS_EVENT_PLAYLIST_PLAY":"playlist_play","SQUID_SOLUTIONS_EVENT_PLAYLIST_ITEM_PLAY":"playlist_item_play","SQUID_SOLUTIONS_EVENT_PLAYLIST_ADD":"playlist_add","SQUID_SOLUTIONS_EVENT_EXTRACTED":"extracted","SQUID_SOLUTIONS_EVENT_ANNOTATION_CREATE":"ann_create","SQUID_SOLUTIONS_EVENT_ANNOTATION_VIEW":"ann_view","SQUID_SOLUTIONS_EVENT_USE_CASE_FEEDBACK":"feedback","SQUID_SOLUTIONS_EVENT_SESSION_START":"session_start"},"blackListedEvents":[],"context":{"isSearchPage":false,"isSearchResultsPage":false,"isSearchWithinPage":false,"isFromSearchResultsPage":false,"isFromSearchWithinPage":false,"isFromAdvancedSearchResultPage":false,"isFromCitePage":false,"hasSearchString":false,"searchString":null,"fromSearchString":null,"isEntityViewPage":false,"isPlaylistViewPage":false,"isPlaylistBrowsePage":false,"isPlaylistPage":false,"isContentItemEmbedPage":false,"isContentItemPopoutPlayerPage":false,"isEntityPreviewPage":false,"isAdvancedSearchPage":false,"isClipBrowsePage":false,"isAccessDeniedPage":false,"isWayfishPage":false,"isFrontPage":false,"isBrowsePage":false,"isCollectionsBrowsePage":false,"isCitePage":false,"isLandingPage":false,"isWayfPage":false,"isLoginPage":false,"isUserPage":false,"isHelpPage":false,"isAboutInformationPage":false,"isECommercePage":false,"isErrorPage":false,"isContextDetailPage":false,"isEntityMobileViewPage":false,"playlistId":null,"playlistToken":null,"entityId":null,"entityToken":null,"clipId":null,"clipToken":null,"uri":"\/ajax\/advanced-search\/selectterms\/design_house_discussed\/Design%2BHouse%2BDiscussed","referrerUri":null,"isFromAdvancedSearchPage":false},"domain":".alexanderstreet.com","metaData":{"mpa":null,"mut":"page","mpid":"asp","oneadminid":""},"wid":"asp01","uid":"540","enabled":true,"debug":false},"hotjar":{"hjid":287473,"hjsv":5},"applicationName":"pharos_ui","environment":{"isProduction":true,"isPreProduction":false,"isStaging":false},"themeName":"alexanderstreet_foundation","themePath":"\/sites\/all\/themes\/custom\/alexanderstreet_foundation","countryCode":"US","LTI":{"helpPageUrl":"https:\/\/alexanderstreet.com\/page\/link-and-embed-best-practices#lti"}},"merge":true},{"command":"modal_display","title":"Select terms for Design House Discussed","output":"\u003Cscript type=\u0022text\/javascript\u0022\u003E\/* global jQuery *\/\n\n(function(window, $) {\n \u0027use strict\u0027;\n\n $(window.document).ready(function() {\n function escapeString(val) {\n return \u0027\u0022\u0027 + val.replace(\/\u0022\/g, \u0027%22\u0027) + \u0027\u0022\u0027;\n }\n\n function bindAgain(attribute) {\n var targetInput = $(\u0027input.text-selectterms-field[name=\u0022\u0027 + attribute + \u0027\u0022]\u0027);\n var mediumInput = $(\u0027input[name=\u0022medium-\u0027 + attribute + \u0027\u0022]\u0027);\n var selectedTermsContainer = mediumInput.siblings(\u0027.selected-terms\u0027);\n \/\/ Sticky the value.\n var inputArray = [];\n var e;\n\n if (targetInput.val().length) {\n inputArray = targetInput.val().split(\u0027,\u0027);\n for (e in inputArray) {\n $(\u0027div.selectterm-option\u0027).find(\u0027input[type=\u0022checkbox\u0022]\u0027).each(function() {\n var escapedString = escapeString($(this).val());\n\n if (escapedString === inputArray[e]) {\n $(this).prop(\u0027checked\u0027, true);\n }\n });\n }\n }\n\n $(\u0027div.selectterm-option\u0027).find(\u0027input[type=\u0022checkbox\u0022]\u0027).bind(\u0027click\u0027, function() {\n $(this).siblings(\u0027label\u0027).toggleClass(\u0027checkbox-selected\u0027, $(this).attr(\u0027checked\u0027));\n });\n\n $(\u0027.selectterm_close\u0027).bind(\u0027click\u0027, function(e) {\n var oldValue;\n\n e.preventDefault();\n targetInput.focus();\n oldValue = targetInput.val().length ? targetInput.val() : \u0027\u0027;\n selectedTermsContainer.html(\u0027\u0027);\n\n \/\/ Add the values seperated by comma.\n $(\u0027div.selectterm-option\u0027).find(\u0027input[type=\u0022checkbox\u0022]\u0027).each(function() {\n if ($(this).attr(\u0027checked\u0027)) {\n var escapedString = escapeString($(this).val());\n\n if (!inputArray.length || $.inArray(escapedString, inputArray) === -1) {\n \/\/ Quote the string\n oldValue = oldValue ? oldValue + \u0027,\u0027 + escapedString : escapedString;\n }\n\n \/\/ Add selected term blocks to \u003Cdiv class=\u0022selected-terms\u0022 \/\u003E\n \/\/ \u003Cbutton class=\u0022selected-term\u0022 data-machine=\u0022keyword\u0022\u003E\n \/\/ Keyword\u003Cspan aria-hidden=\u0022true\u0022\u003Ex\u003C\/span\u003E\n \/\/ \u003C\/button\u003E\n var label = $(this).siblings(\u0027label\u0027).text();\n var $selectedTermDiv = $(\u0027\u003Cbutton class=\u0022selected-term\u0022\u003E\u0027)\n .attr(\u0027data-machine\u0027, escapedString)\n .html(label + \u0027\u003Cspan aria-hidden=\u0022true\u0022\u003Ex\u003C\/span\u003E\u0027);\n\n \/\/ Click to remove selected term and trigger ajax.\n $selectedTermDiv.click(function(e) {\n e.preventDefault();\n var machineName = $(this).attr(\u0027data-machine\u0027);\n var updatedTargetValue = targetInput.val()\n .replace(machineName, \u0027\u0027)\n .replace(\u0027,,\u0027, \u0027,\u0027)\n .replace(\/^,\/, \u0027\u0027)\n .replace(\/,$\/, \u0027\u0027);\n\n targetInput.val(updatedTargetValue);\n targetInput.trigger(\u0027change\u0027);\n\n $(this).fadeOut();\n });\n selectedTermsContainer.append($selectedTermDiv);\n }\n });\n targetInput.val(oldValue);\n\n \/\/ Trigger update count ajax.\n targetInput.blur();\n targetInput.trigger(\u0027change\u0027);\n\n \/\/ Close the popup.\n $(\u0027div.modal-header\u0027).find(\u0027a.close\u0027).click();\n });\n\n $(\u0027.selectterms-pagination\u0027)\n .find(\u0027li.other-page\u0027)\n .find(\u0027a\u0027)\n .bind(\u0027click\u0027, function(e) {\n e.preventDefault();\n loadSelectTerms(attribute, $(this).text());\n });\n }\n\n\n \/\/ Load the selectterm results by page.\n function loadSelectTerms(attribute, page, objectSubtype, joinTo, joinFrom) {\n var url;\n\n if (objectSubtype) {\n url = \u0027ajax\/advanced-search\/selectterms-pagination\/\u0027\n + attribute + \u0027\/\u0027 + page + \u0027\/\u0027 + objectSubtype + \u0027\/\u0027 + joinTo + \u0027\/\u0027 + joinFrom;\n } else {\n url = \u0027ajax\/advanced-search\/selectterms-pagination\/\u0027 + attribute + \u0027\/\u0027 + page;\n }\n $.ajax({\n url: (window.Drupal.settings.basePath || \u0027\/\u0027) + url,\n success: function(data) {\n $(\u0027#modal-content\u0027).html(data[1].data);\n \/\/ After load options, bind the events again.\n bindAgain(attribute);\n }\n });\n }\n\n \/\/ Load the first page.\n loadSelectTerms(\u0027design_house_discussed\u0027, 1, \u0027\u0027, \u0027\u0027, \u0027\u0027);\n\n $(\u0027#modal-title\u0027).unbind(\u0027click\u0027);\n\n $(\u0027div.screenreader\u0027)\n .html($(\u0027h1\u0027).html() + \u0027 popup\u0027)\n .focus();\n });\n}(this, jQuery));\n\u003C\/script\u003Eloading ..."}]