[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"alexanderstreet_foundation","theme_token":"x4wipy7mMMAO0eB7Gex6BlXcEidMePbC7uHS3otvx70","jquery_version":"1.9"},"GA":{"isCuratedView":null,"isLive":true},"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":"R2fUQ1Guqs0DfsZhpqXvR9yax_BK7cPl0dnU99Exudc","enabled":true,"debug":false},"SquidSolutions":{"libraryUrl":"https:\/\/cdn.alexanderstreet.com\/js\/tracker.js","tagUrl":"https:\/\/cdn.alexanderstreet.com\/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\/genre_hierarchy\/Genre","referrerUri":null,"isFromAdvancedSearchPage":false},"domain":".alexanderstreet.com","metaData":{"mpa":null,"mut":"page","mpid":"asp","oneadminid":""},"wid":"asp01","uid":"540","enabled":true,"debug":false},"SiQ":{"libraryUrl":"\/\/asptag.scholarlyiq.com\/siqpagetag.js","tagUrl":"\/\/asptag.scholarlyiq.com\/siqpagetag.gif","supportedEvents":{"SIQ_EVENT_RESULT_CLICK":"resultclick","SIQ_EVENT_SEARCH":"search","SIQ_EVENT_UCV_SEARCH":"ucv:search","SIQ_EVENT_UNIPLAYER_SEARCH":"uniplayer:search","SIQ_EVENT_RECORD_VIEW":"record_view","SIQ_EVENT_ACCESS_DENIED":"access_denied","SIQ_EVENT_ACCESS_BOOK_DENIED":"access_book_denied","SIQ_EVENT_ACCESS_DB_DENIED":"access_db_denied","SIQ_EVENT_BOOK_SEARCH":"booksearch","SIQ_EVENT_PLAYLIST":"playlist","SIQ_EVENT_RECORD_VIEW_PLAYLIST":"record_view_playlist","SIQ_EVENT_PLAYBACK":"uniplayer:playback","SIQ_EVENT_AGGREGATED_PLAYBACK":"uniplayer:aggregated_playback","SIQ_EVENT_CACHE_AGGREGATED_PLAYBACK":"uniplayer:cache_aggregated_playback","SIQ_EVENT_CITED":"cited","SIQ_EVENT_SHARED":"shared","SIQ_EVENT_EMBEDDED":"embedded","SIQ_EVENT_PLAYLIST_CREATE":"playlist_create","SIQ_EVENT_PLAYLIST_ADD":"playlist_add","SIQ_EVENT_EXTRACTED":"extracted","SIQ_EVENT_ANNOTATION_CREATE":"ann_create","SIQ_EVENT_ANNOTATION_VIEW":"ann_view","SIQ_EVENT_USE_CASE_FEEDBACK":"feedback"},"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\/genre_hierarchy\/Genre","referrerUri":null,"isFromAdvancedSearchPage":false},"isOnTrial":false,"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 Genre","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 val = val.replace(\/\u0022\/g, \u0027%22\u0027);\n\n return \u0027\u0022\u0027 + val + \u0027\u0022\u0027;\n }\n\n function bindAgain(attribute) {\n var targetInput = $(\u0027div.form-type-textfield\u0027).find(\u0027input[name=\u0022\u0027 + attribute + \u0027\u0022]\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\n \/\/ Add the values seperated by comma.\n $(\u0027div.selectterm-option\u0027).find(\u0027input[type=\u0022checkbox\u0022]\u0027).each(function() {\n var escapedString;\n\n if ($(this).attr(\u0027checked\u0027)) {\n escapedString = escapeString($(this).val());\n\n if (inputArray.length \u0026\u0026 $.inArray(escapedString, inputArray) !== -1) {\n \/\/Do nothing.\n } else {\n \/\/ Quote the string\n oldValue = oldValue ? oldValue + \u0027,\u0027 + escapedString : escapedString;\n }\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(\u0027genre_hierarchy\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 ..."}]