Author Notes: |
function topButtonControl(name,lit,dis) {{try {{window.top.topframe[''icon''+name+''lit'']=lit;window.top.topframe[''icon''+name+''disabled'']=dis;window.top.topframe[''toggle''+name]();}} catch(e) {{ }}}}var inframeset=false;try {{ inframeset=window.top.inframeset; }} catch(e) {{}};if (inframeset==false) {{ window.top.document.location.href=''common-appframeset.aspx?page=edition-panelcopy&query=id%3d900243890%26panelid%3d1049%26immediateeditmode%3d1%26returnurl%3dedition-hub.aspx%253fhub_id%253d'';}} else {{try {{try {{window.top.topframe.iconinboxspecial=false;}} catch ( e ) {{}}topButtonControl(''menu'',false,true);topButtonControl(''works'',true,true);topButtonControl(''impressions'',false,true);topButtonControl(''contacts'',false,true);topButtonControl(''groups'',false,true);topButtonControl(''contracts'',false,true);topButtonControl(''subrights'',false,true);topButtonControl(''royalties'',false,true);topButtonControl(''inventory'',false,true);topButtonControl(''inbox'',false,true);topButtonControl(''reports'',false,true);topButtonControl(''logout'',false,true);function topButtonControlAll(dis) {{topButtonControl(''menu'',false,dis);topButtonControl(''works'',true,dis);topButtonControl(''impressions'',false,dis);topButtonControl(''contacts'',false,dis);topButtonControl(''groups'',false,dis);topButtonControl(''contracts'',false,dis);topButtonControl(''subrights'',false,dis);topButtonControl(''royalties'',false,dis);topButtonControl(''inventory'',false,dis);topButtonControl(''inbox'',false,dis);topButtonControl(''reports'',false,dis);topButtonControl(''logout'',false,dis);}}window.top.topframe.$(''pagehelp'').setValue(''edition-panelcopy'');window.top.topframe.$(''queryhelp'').setValue(''id%3d900243890%26panelid%3d1049%26immediateeditmode%3d1%26returnurl%3dedition-hub.aspx%253fhub_id%253d'');}} catch (e) {{}}}} window.focus(); try {{ window.top.username=''tomi.onabanjo@macmillan.com'' }} catch(exception){{}} window.top.window.isPopup = true; var inframeset=false;try {{ inframeset=window.top.inframeset }} catch(e) {{}};if (inframeset!=false) {{ if (window.top.frames.leftframe && window.top.frames.leftframe.LeftChecksum!=2071298) {{ try {{ window.top.frames.leftframe.document.location.href=''leftmenu.aspx?page=edition-panelcopy&disable=1&setfield1=&loadpage=&mainreturnurl=edition-hub.aspx%3fhub_id%3d''; }} catch(e) {{}} }} else {{ try {{ window.top.frames.leftframe.setLeftMenuState(false,''''); }} catch(e) {{}} }}}}function clearLeftMenuState() {{window.top.frames.leftframe.clearLeftMenuState();}}function setLeftMenuState(state,content) {{ window.top.frames.leftframe.setLeftMenuState(state,content); }} function loadid(ID, fromSearch, forcedReturnUrl) {{ document.location.href = ''/macmillanusa1/edition-panelcopy.aspx?'' + (!!forcedReturnUrl ? ''returnurl=edition-hub.aspx%3fhub_id%3d&'' : (forcedReturnUrl != '''' ? (''returnurl='' + forcedReturnUrl + ''&'') : '''')) + ''id='' + ID + ( fromSearch ? ''&fromsearch=1'' : '''' ) ;}} Out of Thin Air: Running Wisdom and Magic from Above the Clouds in Ethiopia 9781472975324 Michael Crawley 01/12/2021 function toggleAlertsPopUp( ){{var e = $( ''alertsPopUp'' );togglePopUp( $( ''headerAlertIcon'' ), ''alertsPopUp'', 15 );if( e.visible( ) ) e.update( '' Please Wait '' );ajaxCall(''Dashboard.RenderAlertItemsForHeader'', ''900243890&edition-panelcopy'', drawAlerts, true,false,''ac57fe0a-8310-4ddd-ae20-d226cbac0e86'', ''edition-panelcopy'');}} function drawAlerts( result ){{var e = $( ''alertsPopUp'' );result += '''';e.update( result.replace( ''!!!JS CODE!!!'', '''' ) ); if( e.getElementsBySelector( ''tr[id^=alertitem]'' ).size() == 0 ){{e.update( '' No alerts found '' );}}else {{var colSpan = 0; e.getElementsBySelector( ''tr[id^=alertitem]'' ).first( ).childElements( ).each( function( e ){{ colSpan += ( e.getAttribute( ''colspan'' ) ? e.getAttribute( ''colspan'' ) : 1 ) * 1; }} );colSpan += 1;e.getElementsBySelector( ''tr[id^=alerttype]'' ).each( function( e ){{ e.firstDescendant( ).setAttribute( ''colSpan'', colSpan ); }} );}} }} 1 function controlState(state) {{setLeftMenuState(state,'''');}} document.all.origPageHeader.innerHTML=document.all.pageHeader.innerHTML; var textStore=''''; var elemStyle=''''; var reopenDivAferDragging=false; function openDiv(id) {{ if($(''status'' + id).value != ''deleted'' && $(''synced'' + id).value != ''1'') {{ $(''opendiv''+id).style.display=''block''; $(''closeddiv''+id).style.display=''none''; $(''status'' + id).value = ''changed''; }} }} function handleGroupSync(response) {{ if(response != ''''){{ response = response.evalJSON(); var img = $(''SyncMemberIcon'' + response.ID); if(response.Value) {{ img.src = ''images/copy-synced.png''; }} else {{ img.src = ''images/copy-not-synced.png''; }} }} }} function closeDiv(id) {{ $(''closeddiv''+id).style.display=''block''; $(''opendiv''+id).style.display=''none''; updateWithChanges(id); }} function isDivOpen(id) {{ return $(''opendiv''+id).style.display==''block''; }} function updateWithChanges(id) {{ var obj = getEditableTextElement(id); if (obj == null) return null; var text = obj.innerHTML; var sequenceDiv = $(''sequence''+id); var titleDiv = $(''titlediv''+id); var ftitle = $(''item'' + id + ''field5''); if (ftitle && titleDiv) {{ if (ftitle.value != '''') titleDiv.innerHTML = '' '' + ftitle.value + '': '' + chopText(text) + getExtraInfo(id); else titleDiv.innerHTML = '''' + chopText(text) + getExtraInfo(id); }} else if (titleDiv != null && sequenceDiv != null) {{ titleDiv.innerHTML = '''' + chopText(text) + getExtraInfo(id); }} if (titleDiv != null && sequenceDiv != null) {{ $(''textdiv''+id).innerHTML = '' '' + sequenceDiv.outerHTML + '''' + titleDiv.outerHTML + ''''; }} else {{ $(''textdiv''+id).innerHTML = text; }} setChanged(id, text); }} function chopText(text) {{ if(text.length> 5000) return text.substring(0,5000) + ''...''; else return text }} function addExtraInfo(id) {{ $(''textdiv''+id).innerHTML += getExtraInfo(id); }} function getExtraInfo(id) {{ var _rc = ''''; var source = ''''; var reviewer = ''''; var elem = $(''item'' + id + ''field0''); if(elem!=null) source = elem.value; elem = $(''item'' + id + ''field2''); if(elem!=null) reviewer = elem.value; var text = reviewer + (reviewer == '''' || source == '''' ? '''' : '', '') + '' '' + source + '' ''; if(reviewer != '''' || source != '''' ) _rc += '' - '' + text; return _rc; }} function getEditableTextElement(id) {{ var opendiv = $(''opendiv''+id); if(opendiv==null) return null; if(opendiv.down(''iframe'')==null) return null; return opendiv.down(''iframe'').contentWindow.document.getElementsByTagName(''body'')[0]; }} function getFieldRef(id) {{ var fieldref = $(''fieldref'' + id); if(fieldref==null) return ''''; return $(''fieldref'' + id).value; }} function setChanged(id, text) {{ if($(''status'' + id).value == ''deleted'') return; var changed = ($(''field'' + getFieldRef(id)).innerHTML.unescapeHTML() != text); if(!changed) {{ for(var i=0; i
|