1 2 <html lang="en"> 3 4 5 6 7 8<head> 9<!-- <title>bproicaew-42</title> --> 10<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 11 12<link rel="icon" href="" sizes="16x16" type="image/png"> 13<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet"/> 14<meta charset="UTF-8"> 15<!-- Google Tag Manager -->
16<script>
vendor: 331 bytes, lines 16-20
16(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 17new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 18j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 19'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 20})(window,document,'script','dataLayer','
20GTM-KJ5ZC6WD
vendor: 3 bytes, line 20
20');
20</script>
20 21<!-- End Google Tag Manager --> 22 23 24 25 26 27 28 29 30 31
32<script> 33 window.fiveStarSession = "CB7F061C3A87F9F59B16B095938A9FB7"; 34 </script>
34 35 36 37 38 39<meta property="og:url" content="https://www.icaewbloomsburypro.com/bproicaew/search-results" /> 40<meta property="og:title" content="" /> 41<meta property="og:description" content="" /> 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107<input type="hidden" id="counterhiddenInput" value=""/> 108 109 110 111<input type="hidden" id="session-timeout-Value" value="30"/> 112 113 114 115 116 117 <meta name="description" content="Search Results - search the Bloomsbury Accounting and Tax Service collections"> 118 <meta name="keywords" content="Search Results"> 119 120 121 122 <title>Bloomsbury Accounting and Tax Service - Search Results</title> 123<meta name="ST.PlatformAPIKey" content="7a3867cfb8324d83" /> 124 125 126<!-- CSS --> 127<link href="/static-assets/bloomsbury_assets/bloomsbury/css/support.css" rel="stylesheet" type="text/css"> 128<link href="/static-assets/bloomsbury_assets/bloomsbury/css/custom-select.css" rel="stylesheet" type="text/css"> 129<link href="/static-assets/bloomsbury_assets/bloomsbury/css/owl-carousel-new.css" rel="stylesheet" type="text/css"> 130<link href="/static-assets/bloomsbury_assets/bloomsbury/css/checkbox.css" rel="stylesheet" type="text/css"> 131<link href="/static-assets/bloomsbury_assets/bloomsbury/css/all.min.css" rel="stylesheet" type="text/css"> 132<link href="/bloomsbury_assets/bproicaew/css/plyr.css" rel="stylesheet" type="text/css"> 133<link href="/static-assets/bloomsbury_assets/bloomsbury/css/bootstrap-slider.css" rel="stylesheet" type="text/css"> 134<link href="/static-assets/bloomsbury_assets/bloomsbury/css/support-ui.css" rel="stylesheet" type="text/css"> 135 136 137 138 139 <link href="/bloomsbury_assets/bproicaew/css/bproicaew.css?v=42.1.6" rel="stylesheet" type="text/css"> 140 <link href="/bloomsbury_assets/bproicaew/css/product.css?v=42.1.6" rel="stylesheet" type="text/css"> 141 142 143<!--<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" 144 integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ==" 145 crossorigin=""/>--> 146 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css" integrity="sha384-sHL9NAb7lN7rfvG5lfHpm643Xkcjzp4jFvuavGOndn6pjVqS6ny56CAt3nsEVT4H" crossorigin="anonymous"> 147 148 149<!-- JS -->
150<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery.min.js"></script>
vendor: 2 bytes, line 150
150
151<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/custom.min.js"></script>
vendor: 2 bytes, line 151
151
152<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/owl-carousel-new.min.js"></script>
vendor: 2 bytes, line 152
152
153<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/custom-select.min.js"></script>
vendor: 2 bytes, line 153
153
154<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/plyr.js"></script>
154 155 156
157<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/bootstrap-slider.min.js"></script>
vendor: 2 bytes, line 157
157
158<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/custom-ui.min.js"></script>
vendor: 2 bytes, line 158
158
159<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/mousescroll.min.js"></script>
vendor: 2 bytes, line 159
159
160<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery-show-first.min.js"></script>
vendor: 2 bytes, line 160
160
161<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/clipboard.min.js"></script>
vendor: 2 bytes, line 161
161
162<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery.mark.min.js"></script>
vendor: 2 bytes, line 162
162
163<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery.cloudinary.js"></script>
vendor: 2 bytes, line 163
163
164<script type="text/javascript" src="/bloomsbury_assets/bloomsbury/js/bloomsbury.min.js?v=42.1.6"></script>
vendor: 70 bytes, lines 164-165
164 165<script src='https://www.recaptcha.net/recaptcha/api.js'></script>
166<!--
166<script src="https://unpkg.com/[email protected]/dist/leaflet.js" 167 integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log==" 168 crossorigin=""></script>
168--> 169
169<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.js" integrity="sha384-cxOPjt7s7Iz04uaHJceBmS+qpjv2JkIHNVcuOrM+YHwZOmJGBXI00mdUXEq65HTH" crossorigin="anonymous"></script>
169 170
170<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/leaflet.ChineseTmsProviders.js"></script>
vendor: 2 bytes, line 170
170
171<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery.cookie.min.js"></script>
vendor: 2 bytes, line 171
171
172<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery.truncation.js"></script>
vendor: 2 bytes, line 172
172
173<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/openseadragon.min.js"></script>
vendor: 2 bytes, line 173
173
174<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/openseadragon-svg-overlay.js"></script>
vendor: 2 bytes, line 174
174
175<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/snap.svg-min.js"></script>
175 176
177<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/jquery.numeric.min.js"></script>
vendor: 2 bytes, line 177
177
178<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/raphael.min.js"></script>
vendor: 2 bytes, line 178
178
179<script type="text/javascript" src="/static-assets/bloomsbury_assets/bloomsbury/js/URI.min.js"></script>
179 180<!--
180<script src="https://ssl.geoplugin.net/json.gp?k=a79c8a904f5edab4&jsoncallback=getGeolocationData"></script>
180 -->
181<script> 182 $.ajax({ 183 type: "GET", 184 url: '/app/getmylocat', 185 success: function(response){ 186 getGeolocationData(response); 187 }, 188 error: function(error){ 189 console.log(error); 190 } 191 }); 192</script>
192 193 194<!-- OneTrust Cookies Consent Notice start for icaewbloomsburypro.com -->
195<script src="https://cdn-ukwest.onetrust.com/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="01980960-4acf-7613-852c-7cb16d2cb97b" ></script>
vendor: 1 bytes, line 195
195
196<script type="text/javascript"> 197function OptanonWrapper() { } 198</script>
198 199<!-- OneTrust Cookies Consent Notice end for icaewbloomsburypro.com --> 200</head> 201 202<body> 203<!-- Google Tag Manager (noscript) -->
vendor: 69 bytes, lines 203-204
203 204<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=
204GTM-KJ5ZC6WD
vendor: 86 bytes, lines 204-205
204 " 205height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
206<!-- End Google Tag Manager (noscript) --> 207 208 <div style="position: absolute;top:-10000px;" class="skip-content-div"> 209 <a href="javascript:void(0);" id="skip-content" aria-label="Skip to main content">Skip to main content</a> 210 </div> 211 212<input type="hidden" id="copytocliptxt" name="copytoclipboard" value="Copy to Clipboard"/> 213<input type="hidden" id="copiedtocliptxt" name="copiedtoclipboard" value="Copied"/> 214<input id="counterEnabled" type="hidden" value="true"> 215<input id="instanceValue" type="hidden" value="instance2"> 216<div id="messageBoxFull" aria-live="assertive" style="position:absolute;top:-10000;left:-10000" aria-relevant="additions removals"></div> 217 218 219<div class="loading-hidden hide"> 220 <div class="loading-image"><img src="/static-assets/bloomsbury_assets/bloomsbury/images/loader.gif" alt="Loading" title="Loading"> </div> 221</div> 222 223<div class="content-loader hide"> 224 <img src="/static-assets/bloomsbury_assets/bloomsbury/images/loader.gif" alt="Loading" title="Loading" class="loader-icon"/> 225</div> 226 227<input type="hidden" id="imageAuthEnabled" value="false"/> 228
229<script> 230var sqtrkq = sqtrkq || []; 231window.analyticsFlag = false; 232function showAjaxLoader(element) { 233 $(".content-loader").clone().removeClass("hide").appendTo(element); 234} 235 236function hideAjaxLoader(element) { 237 $(element).find(".content-loader").remove(); 238} 239 240 241var signupEventFlag=localStorage.getItem("signup-success"); 242if (signupEventFlag && signupEventFlag == "true") { 243 dataLayer.push({ 244 'event' : 'sign_up' 245 }); 246} 247localStorage.removeItem("signup-success"); 248 249 // default language code setting 250 if (typeof $.cookie('seleLang') === 'undefined'){ 251 $.cookie("seleLang", "en"); 252 $.cookie("taxonomy", ""); 253 $.cookie("contenttype", ""); 254 $.cookie("fromYear", ""); 255 $.cookie("toYear", ""); 256 } 257 258 259 $(document).ready(function() { 260 $(window).resize(function() { 261 var width = $(window).width(); 262 if (width >= 1024) { 263 } else if ((width <= 1023) && (width >= 768)) { 264 } else { 265 } 266 }); 267 268 $(".lang_list a").on("click",function(){ 269 var oldLang = $(".lang_list a.active").attr("data-lang"); 270 var newLang = $(this).attr("data-lang"); 271 $.cookie("seleLang", newLang); 272 location.reload(); 273 }); 274 }); 275 276function getCoverSheetDate(){ 277 var d = new Date(); 278 var year = d.getFullYear(); 279 var month = d.toLocaleString([], { month: "short" }); 280 var day = d.toLocaleString([], { day: "2-digit" }); 281 var time = d.getTime(); 282 var minutes = d.getTimezoneOffset(); 283 var offset = minutes / 60; 284 var utc = day + ' ' + month + ' ' + year +' at '+ d.getUTCHours() + ':'+d.getUTCMinutes()+':'+ d.getUTCSeconds() + "." + d.getUTCMilliseconds() + ''+ Math.floor(offset) + ":00"; 285 return utc; 286 } 287 288 function isIEBrowser() { 289 var ua = window.navigator.userAgent; 290 var msie = ua.indexOf("MSIE"); 291 // If Internet Explorer 292 if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) 293 { 294 return true; 295 } 296 else 297 { 298 return false; 299 } 300 } 301 302 function downloadPDF(filePath, downloadName) { 303 if (isIEBrowser()){ 304 var _window = window.open(filePath, '_blank'); 305 //_window.document.close(); 306 //_window.document.execCommand('SaveAs', true, downloadName) 307 //_window.close(); 308 } else { 309 var link=document.createElement('a'); 310 link.href= filePath; 311 link.download= downloadName; 312 var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification); 313 if (isSafari) { 314 window.location.href=filePath; 315 } else { 316 var evt = document.createEvent('MouseEvents'); 317 evt.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null); 318 link.dispatchEvent(evt); 319 } 320 } 321 } 322 function getMobileOperatingSystem() { 323 var userAgent = navigator.userAgent || navigator.vendor || window.opera; 324 325 // Windows Phone must come first because its UA also contains "Android" 326 if (/windows phone/i.test(userAgent)) { 327 return "Windows Phone"; 328 } 329 330 if (/android/i.test(userAgent)) { 331 return "Android"; 332 } 333 334 // iOS detection from: http://stackoverflow.com/a/9039885/177710 335 if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { 336 return "iOS"; 337 } 338 339 return "unknown"; 340} 341 342 function openPrint(content) { 343 var OS = getMobileOperatingSystem(); 344 if (OS == "iOS") { 345 $("#printFrame").remove(); 346 } 347 var frame1 = document.createElement('iframe'); 348 frame1.name = "frame1"; 349 frame1.id = "printFrame"; 350 frame1.style.position = "absolute"; 351 frame1.style.top = "-1000000px"; 352 document.body.appendChild(frame1); 353 var frameDoc = frame1.contentWindow ? frame1.contentWindow : frame1.contentDocument.document ? frame1.contentDocument.document : frame1.contentDocument; 354 if (OS == "Android") { 355 var originalContents = document.body.innerHTML; 356 document.body.innerHTML = xmlreq.responseText; 357 setTimeout(function() { 358 window.print(); 359 document.body.innerHTML = originalContents; 360 showProgress(); 361 location.reload(); 362 }, 1000); 363 } else if (OS == "iOS") { 364 frameDoc.document.open(); 365 frameDoc.document.write(xmlreq.responseText); 366 frameDoc.document.close(); 367 setTimeout(function () { 368 window.frames["frame1"].focus(); 369 window.frames["frame1"].print(); 370 //document.body.removeChild(frame1); 371 }, 1000); 372 } else { 373 frameDoc.document.open(); 374 frameDoc.document.write(xmlreq.responseText); 375 frameDoc.document.close(); 376 setTimeout(function () { 377 window.frames["frame1"].focus(); 378 window.frames["frame1"].print(); 379 document.body.removeChild(frame1); 380 }, 500); 381 } 382 } 383</script>
383 384 385 386 387 388<div role="dialog" aria-modal="true" aria-labelledby="myModalLabel" class="modal fade" id="signin_modal" tabindex="-1" data-backdrop="static" data-keyboard="false"> 389 <div class="vertical-alignment-helper"> 390 <div class="modal-dialog signin-modal vertical-align-center" role="document"> 391 <div class="modal-content"> 392 <div class="modal-body"> 393 <div class="signin_close"> 394 <button class="closebtn" type="button" data-dismiss="modal" aria-label="Close" title="Close"> 395 <img src="/static-assets/bloomsbury_assets/bloomsbury/images/signin_close.png" alt="" role="presentation"> 396 </button> 397 </div> 398 <h2 id="myModalLabel" aria-label="Sign in to Your Personal Account ">Sign in to Your Personal Account </h2> 399 <div tabindex="0" class="signinwith hide hide signup_social" aria-label="Sign in with"><span>Sign in with:</span> 400 <a href="javascript:;" onclick="if(confirm('You are being redirected to an external link. Do you wish to continue?')) {gp_login();return false;} 401 else {return false;}" title="Google"><span class="icon-Social_Google" title="Google"></span></a> 402 <a href="javascript:;" onclick="if(confirm('You are being redirected to an external link. Do you wish to continue?')) {fb_login();return false;} 403 else {return false;}" title="Facebook"><span class="icon-Social_Facebook" title="Facebook"></span></a> 404 <a href="javascript:;" onclick="if(confirm('You are being redirected to an external link. Do you wish to continue?')) {tw_login();return false;} 405 else {return false;}" title="Twitter"><span class="icon-Social_Twitter" title="Twitter"></span></a> 406 </div> 407 <p align="center" tabindex="0" aria-label="or" class="hide hide">Or</p> 408 <form method="post" id="signin-form">
409 <span class="err-msg hide" id="signinerr" tabindex="0" aria-live="polite" aria-label="Incorrect Email Address or password. Please try again.">Incorrect Email Address or password. Please try again.</span> 410 <div class="form-group"> 411 <label aria-label="Email Address">Email Address</label> 412 <input type="email" class="form-control" aria-label="email address" id="signin-username" name="signin-username" autocomplete="off"> 413 <span class="err-msg hide" tabindex="0" aria-live="assertive" aria-label="Invalid Email Address">Invalid Email Address</span> 414 </div> 415 <div class="form-group"> 416 <label aria-label="Password">Password</label> 417 <input type="password" class="form-control" id="signin-password" name="signin-password" autocomplete="off"> 418 <!-- <span class="err-msg hide" tabindex="0" aria-label="Invalid Password">Invalid Password</span> --> 419 <div class="forget_pass"><a class="forget-passwordlink" href="pre-forgot-password">Forgot Password?</a></div> 420 </div> 421 <div class="clearfix"></div> 422 <div class="form-group" align="center"> 423 <input role="button" id="signin-btn" class="primary_btn disabled-btn" aria-label="signin" value="Sign in"> 424 </div> 425 <div> 426 With a personal account, you can save books, chapters, images or other items to view later. 427 </div> 428 </form> 429 <p class="personal_acc" aria-label="Don't have a personal account yet? Sign up now"> 430 Don't have a personal account yet?<br> 431 <!-- <a href="sign-up?recentUrl=/search-results?any=&su=commentary">Sign up now.</a> --> 432 <a class="personal_acclabel" href="https://p13n-bloomsbury.highwire.org/register?return-url=https://www.icaewbloomsburypro.com%2Fsearch-results%3Fany%3D%26su%3Dcommentary">Sign up now.</a> 433 </p> 434 </div> 435 </div> 436 </div> 437 </div> 438</div> 439 440 441<div role="dialog" aria-modal="true" aria-labelledby="commontool-changePassword" aria-describedby="changePassword-dialog-description" class="modal fade" id="changepass" tabindex="-1" data-backdrop="static" data-keyboard="false"> 442 <div class="vertical-alignment-helper"> 443 <div class="modal-dialog signin-modal change_password vertical-align-center" role="document"> 444 <div class="modal-content"> 445 <div class="modal-body"> 446 <div class="close_icon"> 447 <button type="button" data-dismiss="modal" aria-label="Close" title="Close"> 448 <img src="/static-assets/bloomsbury_assets/bloomsbury/images/signin_close.png" alt="" role="presentation"> 449 </button> 450 </div> 451 <h2 id="head-changepwd" tabindex="0" aria-labelledby="head-changepwd">Change Password</h2> 452 <form method="post" id="change-password-form"> 453 <div class="form-group"> 454 <label id="head-currentpwd" tabindex="0" aria-labelledby="head-currentpwd">Current Password</label> 455 <input name="oldpassword" id="change-old-pwd" type="password" class="form-control" placeholder="Enter Current Password" maxlength="20" autocomplete="off"> 456 <span id="head-currentpwd-err" class="err-msg hide" tabindex="0" aria-live="polite" aria-labelledby="head-currentpwd">Current Password doesn't match</span> 457 </div> 458 <div class="form-group"> 459 <label id="head-newpwd" tabindex="0" aria-labelledby="head-newpwd">New Password</label> 460 <input name="newpassword" id="change-new-pwd" type="password" class="form-control" placeholder="Enter new password" maxlength="20" autocomplete="off"> 461 <span id="head-newpwd-err" class="err-msg hide" tabindex="0" aria-l
461ive="polite" aria-labelledby="head-newpwd-err">Enter min 6 Characters</span> 462 </div> 463 <div class="form-group"> 464 <label id="head-confirm-newpwd" tabindex="0" aria-labelledby="head-confirm-newpwd">Confirm New Password</label> 465 <input name="confnewpassword" id="change-confirm-pwd" type="password" class="form-control" placeholder="Re-enter password" maxlength="20" autocomplete="off"> 466 <span id="head-confirm-newpwd-err" class="err-msg hide" tabindex="0" aria-live="polite" aria-labelledby="head-confirm-newpwd">Entered password does not match</span> 467 </div> 468 <div class="form-group no_margin" align="center"> 469 <input type="button" id="change-pwd-btn" value="Save" class="primary_btn disabled-btn" aria-label="save"> 470 <input type="button" value="Cancel" class="secondary_btn" data-dismiss="modal" aria-label="cancel"> 471 </div> 472 </form> 473 </div> 474 </div> 475 </div> 476 </div> 477</div> 478 479 480<!-- Signup via Social Media Modal starts Here--> 481<div role="dialog" aria-modal="true" aria-labelledby="signup-social-media" aria-describedby="signup-social-media-description" class="modal fade" id="signup-social-media" tabindex="-1" data-backdrop="static" data-keyboard="false"> 482 <div class="modal-dialog" role="document"> 483 <div class="modal-content"> 484 <div class="modal-body fb-signup"> 485 <div class="signin_close"> 486 <button type="button" data-dismiss="modal" aria-label="Close" title="Close"> 487 <img src="/static-assets/bloomsbury_assets/bloomsbury/images/signin_close.png" alt="" role="presentation"> 488 </button> 489 </div> 490 <h3 id="sn-signup-media-title" tabindex="0" aria-labelledby="sn-signup-media-title">Sign Up Via FaceBook</h3> 491 492 <!-- <div class="row prof-pic"> --> 493 <!-- <div class="col-lg-3 col-sm-3 col-md-3 col-xs-3 profile-icon"> --> 494 <!-- <img id="sn-profile-pic" src="/static-assets/bloomsbury_assets/bloomsbury/images/fb-prof-pic.jpg" style="margin: 0 auto; width: 70px; height: 70px;" class="img-rounded" alt="prof pic" tabindex="0"> --> 495 <!-- </div> --> 496 <!-- <div class="col-lg-9 col-sm-9 col-md-9 col-xs-9"> --> 497 <!-- <h5 id="sn-full-name" tabindex="0" aria-labelledby="sn-full-name">John Doe</h5> --> 498 <!-- <p id="sn-email" class="mail-id" tabindex="0" aria-labelledby="sn-email">[email protected]</p> --> 499 <!-- <div class="fb-icon"> --> 500 <!-- <img id="sn-signup-icon" src="/static-assets/bloomsbury_assets/bloomsbury/images/fb-signup-icon.png" alt="fb-icon" tabindex="0"> --> 501 <!-- <span id="signup-social-label" tabindex="0" aria-labelledby="signup-social-label"> Facebook</span></div> --> 502 <!-- </div> --> 503 <!-- </div> --> 504 505 <div class="clearfix prof-pic"> 506 <div class="profile-icon"> 507 <img id="sn-profile-pic" src="/static-assets/bloomsbury_assets/bloomsbury/images/fb-prof-pic.jpg" width="75" height="75" class="img-rounded" alt="prof pic" tabindex="0"> 508 </div> 509 <div class="profile-text"> 510 <h5 id="sn-full-name" tabindex="0" aria-labelledby="sn-full-name">John Doe</h5> 511 <p id="sn-email" class="mail-id" tabindex="0" aria-labelledby="sn-email">[email protected]</p> 512 <div class="fb-icon"> 513 <img id="sn-signup-icon" src="/static-assets/bloomsbury_assets/bloomsbury/images/fb-signup-icon.png" width="25" height="25" alt="fb-icon" tabindex="0">
514 <span id="signup-social-label" tabindex="0" aria-labelledby="signup-social-label"> Facebook</span></div> 515 </div> 516 </div> 517 518 <div class="clearfix"></div> 519 520 <h4 id="head-addInfo" tabindex="0" aria-labelledby="head-addInfo">Additional info required</h4> 521 <div class="row"> 522 <form id="sn-signup-form" class="fb-signup-form" method="post"> 523 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 signup-title hide"> 524 <div class="title_cont"> 525 <div class="form-group clearfix"> 526 <label id="head-social-titlab" tabindex="0" aria-labelledby="head-social-titlab">Title<sup>*</sup></label> 527 <div class="clearfix"></div> 528 <select id="sn-signup-title-option" name="title" class="selectpicker form-control title_style col-lg-6 col-md-6 col-sm-6 col-xs-6"> 529 <option value="">Select</option> 530 <option value="Mr."> Mr. </option> 531 <option value="Mrs."> Mrs. </option> 532 <option value="Miss."> Miss. </option> 533 <option value="Ms."> Ms. </option> 534 <option value="Dr."> Dr. </option> 535 <option value="Prof."> Prof. </option> 536 <option value="Other"> Other </option> 537 </select> 538 <input type="text" id="sn-signup-other-txt-box" name="otherTitle" class="hide form-control title_style other-txt-box col-lg-6 col-md-6 col-sm-6 col-xs-6" autocomplete="off"> 539 </div> 540 </div> 541 </div> 542 <div class="clearfix"></div> 543 544 <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"> 545 <div class="form-group"> 546 <label id="head-social-frsnme" tabindex="0" aria-labelledby="head-social-frsnme">First Name<sup>*</sup></label> 547 <input id="sn-signup-first-name" name="firstname" type="text" class="form-control" placeholder="First Name" maxlength="30" autocomplete="off"> 548 </div> 549 </div> 550 551 <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 hide"> 552 <div class="form-group"> 553 <label id="head-social-surnme" tabindex="0" aria-labelledby="head-social-surnme">Surname<sup>*</sup></label> 554 <input id="sn-signup-sur-name" class="form-control" name="surname" type="text" class="form-control" placeholder="Surname" maxlength="30" autocomplete="off"> 555 </div> 556 </div> 557 <div class="clearfix"></div> 558 559 <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 hide"> 560 <div class="form-group"> 561 <label id="head-social-occup" tabindex="0" aria-labelledby="head-social-occup">Occupation<sup>*</sup></label> 562 <select id="sn-signup-occupation-select" name="occupation" class="selectpicker form-control"> 563 <option value="">Select</option> 564 <option value="Librarian"> Librarian </option> 565 <option value="Academic/Faculty"> Academic/Faculty </option> 566 <option value="Administrator"> Administrator </option> 567 <option value="Student"> Student </option> 568 <option value="Other"> Other </option> 569 </select> 570 </div> 571 <div class="clearfix"></div> 572 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 no_pad"> 573 <input type="text" id="sn-signup-occupation-text-box" name="occupationTitle" class="hide form-control" autocomplete="off"> 574 </div> 575 </div> 576 577 <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 hide"> 578 <div class="form-group"> 579 <label id="head-social-crty" tabindex="0" aria-labelledby="head-social-crty">Country<sup>*</sup></label> 580 <select id="sn-signup-country" name="signup-country" class="selectpicker form-control"> 581 <option value="">Select</option> 582 <option value="af" title="Afghanistan">Afghanistan</option> 583 <option value="ax" title="Aland Islands">Aland Islands</option> 584 <option value="al" title="Albania">Albania</option> 585 <option value="dz" title="Algeria">Algeria</option> 586 <option value="as" title="American Samoa">American Samoa</option> 587 <option value="ad" title="Andorra">Andorra</option> 588 <option value="ao" title="Angola">Angola</option> 589 <option value="ai" title="Anguilla">Anguilla</option> 590 <option value="aq" title="Antarctica">Antarctica</option> 591 <option value="ag" title="Antigua and Barbuda">Antigua and Barbuda</option> 592 <option value="ar" title="Argentina">Argentina</option> 593 <option value="am" title="Armenia">Armenia</option> 594 <option value="aw" title="Aruba">Aruba</option> 595 <option value="au" title="Australia">Australia</option> 596 <option value="at" title="Austria">Austria</option> 597 <option value="az" title="Azerbaijan">Azerbaijan</option> 598 <option value="bs" title="Bahamas">Bahamas</option> 599 <option value="bh" title="Bahrain">Bahrain</option> 600 <option value="bd" title="Bangladesh">Bangladesh</option> 601 <option value="bb" title="Barbados">Barbados</option> 602 <option value="by" title="Belarus">Belarus</option> 603 <option value="be" title="Belgium">Belgium</option> 604 <option value="bz" title="Belize">Belize</option> 605 <option value="bj" title="Benin">Benin</option> 606 <option value="bm" title="Bermuda">Bermuda</option> 607 <option value="bt" title="Bhutan">Bhutan</option> 608 <option value="bo" title="Bolivia, Plurinational State of">Bolivia, Plurinational State of</option> 609 <option value="bq" title="Bonaire, Sint Eustatius and Saba">Bonaire, Sint Eustatius and Saba</option> 610 <option value="ba" title="Bosnia and Herzegovina">Bosnia and Herzegovina</option> 611 <option value="bw" title="Botswana">Botswana</option> 612 <option value="bv" title="Bouvet Island">Bouvet Island</option> 613 <option value="br" title="Brazil">Brazil</option> 614 <option value="io" title="British Indian Ocean Territory">British Indian Ocean Territory</option> 615 <option value="bn" title="Brunei Darussalam">Brunei Darussalam</option> 616 <option value="bg" title="Bulgaria">Bulgaria</option> 617 <option value="bf" title="Burkina Faso">Burkina Faso</option> 618 <option value="bi" title="Burundi">Burundi</option> 619 <option value="kh" title="Cambodia">Cambodia</option> 620 <option value="cm" title="Cameroon">Cameroon</option> 621 <option value="ca" title="Canada">Canada</option> 622 <option value="cv" title="Cape Verde">Cape Verde</option> 623 <option value="ky" title="Cayman Islands">Cayman Islands</option> 624 <option value="cf" title="Central African Republic">Central African Republic</option> 625 <option value="td" title="Chad">Chad</option> 626 <option value="cl" title="Chile">Chile</option> 627 <option value="cn" title="China">China</option> 628 <option value="cx" title="Christmas Island">Christmas Island</option> 629 <option value="cc" title="Cocos (Keeling) Islands">Cocos (Keeling) Islands</option> 630 <option value="co" title="Colombia">Colombia</option> 631 <option value="km" title="Comoros">Comoros</option> 632 <option value="cg" title="Congo">Congo</option> 633 <option value="cd" title="Congo, the Democratic Republic of the">
633Congo, the Democratic Republic of the</option> 634 <option value="ck" title="Cook Islands">Cook Islands</option> 635 <option value="cr" title="Costa Rica">Costa Rica</option> 636 <option value="ci" title="Côte d'Ivoire">Côte d'Ivoire</option> 637 <option value="hr" title="Croatia">Croatia</option> 638 <option value="cu" title="Cuba">Cuba</option> 639 <option value="cw" title="Curaçao">Curaçao</option> 640 <option value="cy" title="Cyprus">Cyprus</option> 641 <option value="cz" title="Czech Republic">Czech Republic</option> 642 <option value="dk" title="Denmark">Denmark</option> 643 <option value="dj" title="Djibouti">Djibouti</option> 644 <option value="dm" title="Dominica">Dominica</option> 645 <option value="do" title="Dominican Republic">Dominican Republic</option> 646 <option value="ec" title="Ecuador">Ecuador</option> 647 <option value="eg" title="Egypt">Egypt</option> 648 <option value="sv" title="El Salvador">El Salvador</option> 649 <option value="gq" title="Equatorial Guinea">Equatorial Guinea</option> 650 <option value="er" title="Eritrea">Eritrea</option> 651 <option value="ee" title="Estonia">Estonia</option> 652 <option value="et" title="Ethiopia">Ethiopia</option> 653 <option value="fk" title="Falkland Islands (Malvinas)">Falkland Islands (Malvinas)</option> 654 <option value="fo" title="Faroe Islands">Faroe Islands</option> 655 <option value="fj" title="Fiji">Fiji</option> 656 <option value="fi" title="Finland">Finland</option> 657 <option value="fr" title="France">France</option> 658 <option value="gf" title="French Guiana">French Guiana</option> 659 <option value="pf" title="French Polynesia">French Polynesia</option> 660 <option value="tf" title="French Southern Territories">French Southern Territories</option> 661 <option value="ga" title="Gabon">Gabon</option> 662 <option value="gm" title="Gambia">Gambia</option> 663 <option value="ge" title="Georgia">Georgia</option> 664 <option value="de" title="Germany">Germany</option> 665 <option value="gh" title="Ghana">Ghana</option> 666 <option value="gi" title="Gibraltar">Gibraltar</option> 667 <option value="gr" title="Greece">Greece</option> 668 <option value="gl" title="Greenland">Greenland</option> 669 <option value="gd" title="Grenada">Grenada</option> 670 <option value="gp" title="Guadeloupe">Guadeloupe</option> 671 <option value="gu" title="Guam">Guam</option> 672 <option value="gt" title="Guatemala">Guatemala</option> 673 <option value="gg" title="Guernsey">Guernsey</option> 674 <option value="gn" title="Guinea">Guinea</option> 675 <option value="gw" title="Guinea-Bissau">Guinea-Bissau</option> 676 <option value="gy" title="Guyana">Guyana</option> 677 <option value="ht" title="Haiti">Haiti</option> 678 <option value="hm" title="Heard Island and McDonald Islands">Heard Island and McDonald Islands</option> 679 <option value="va" title="Holy See (Vatican City State)">Holy See (Vatican City State)</option> 680 <option value="hn" title="Honduras">Honduras</option> 681 <option value="hk" title="Hong Kong">Hong Kong</option> 682 <option value="hu" title="Hungary">Hungary</option> 683 <option value="is" title="Iceland">Iceland</option> 684 <option value="in" title="India">India</option> 685 <option value="id" title="Indonesia">Indonesia</option>
686 <option value="ir" title="Iran, Islamic Republic of">Iran, Islamic Republic of</option> 687 <option value="iq" title="Iraq">Iraq</option> 688 <option value="ie" title="Ireland">Ireland</option> 689 <option value="im" title="Isle of Man">Isle of Man</option> 690 <option value="il" title="Israel">Israel</option> 691 <option value="it" title="Italy">Italy</option> 692 <option value="jm" title="Jamaica">Jamaica</option> 693 <option value="jp" title="Japan">Japan</option> 694 <option value="je" title="Jersey">Jersey</option> 695 <option value="jo" title="Jordan">Jordan</option> 696 <option value="kz" title="Kazakhstan">Kazakhstan</option> 697 <option value="ke" title="Kenya">Kenya</option> 698 <option value="ki" title="Kiribati">Kiribati</option> 699 <option value="kp" title="Korea, Democratic People's Republic of">Korea, Democratic People's Republic of</option> 700 <option value="kr" title="Korea, Republic of">Korea, Republic of</option> 701 <option value="kw" title="Kuwait">Kuwait</option> 702 <option value="kg" title="Kyrgyzstan">Kyrgyzstan</option> 703 <option value="la" title="Lao People's Democratic Republic">Lao People's Democratic Republic</option> 704 <option value="lv" title="Latvia">Latvia</option> 705 <option value="lb" title="Lebanon">Lebanon</option> 706 <option value="ls" title="Lesotho">Lesotho</option> 707 <option value="lr" title="Liberia">Liberia</option> 708 <option value="ly" title="Libya">Libya</option> 709 <option value="li" title="Liechtenstein">Liechtenstein</option> 710 <option value="lt" title="Lithuania">Lithuania</option> 711 <option value="lu" title="Luxembourg">Luxembourg</option> 712 <option value="mo" title="Macao">Macao</option> 713 <option value="mk" title="Macedonia, the Former Yugoslav Republic of">Macedonia, the Former Yugoslav Republic of</option> 714 <option value="mg" title="Madagascar">Madagascar</option> 715 <option value="mw" title="Malawi">Malawi</option> 716 <option value="my" title="Malaysia">Malaysia</option> 717 <option value="mv" title="Maldives">Maldives</option> 718 <option value="ml" title="Mali">Mali</option> 719 <option value="mt" title="Malta">Malta</option> 720 <option value="mh" title="Marshall Islands">Marshall Islands</option> 721 <option value="mq" title="Martinique">Martinique</option> 722 <option value="mr" title="Mauritania">Mauritania</option> 723 <option value="mu" title="Mauritius">Mauritius</option> 724 <option value="yt" title="Mayotte">Mayotte</option> 725 <option value="mx" title="Mexico">Mexico</option> 726 <option value="fm" title="Micronesia, Federated States of">Micronesia, Federated States of</option> 727 <option value="md" title="Moldova, Republic of">Moldova, Republic of</option> 728 <option value="mc" title="Monaco">Monaco</option> 729 <option value="mn" title="Mongolia">Mongolia</option> 730 <option value="me" title="Montenegro">Montenegro</option> 731 <option value="ms" title="Montserrat">Montserrat</option> 732 <option value="ma" title="Morocco">Morocco</option> 733 <option value="mz" title="Mozambique">Mozambique</option> 734 <option value="mm" title="Myanmar">Myanmar</option> 735 <option value="na" title="Namibia">Namibia</option> 736 <option value="nr" title="Nauru">Nauru</option> 737 <option value="np" title="Nepal">Nepal</option> 738 <option value="nl" title="Netherlands">Netherlands</option> 739 <option value="nc" title="New Caledonia">New Caledonia</option> 740 <option value="nz" title="New Zealand">New Zealand</option> 741 <option value="ni" title="Nicaragua">Nicaragua</option> 742 <option value="ne" title="Niger">Niger</option> 743 <option value="ng" title="Nigeria">Nigeria</option> 744 <option value="nu" title="Niue">Niue</option> 745 <option value="nf" title="Norfolk Island">Norfolk Island</option> 746 <option value="mp" title="Northern Mariana Islands">Northern Mariana Islands</option> 747 <option value="no" title="Norway">Norway</option> 748 <option value="om" title="Oman">Oman</option> 749 <option value="pk" title="Pakistan">Pakistan</option> 750 <option value="pw" title="Palau">Palau</option> 751 <option value="ps" title="Palestine, State of">Palestine, State of</option> 752 <option value="pa" title="Panama">Panama</option> 753 <option value="pg" title="Papua New Guinea">Papua New Guinea</option> 754 <option value="py" title="Paraguay">Paraguay</option> 755 <option value="pe" title="Peru">Peru</option> 756 <option value="ph" title="Philippines">Philippines</option> 757 <option value="pn" title="Pitcairn">Pitcairn</option> 758 <option value="pl" title="Poland">Poland</option> 759 <option value="pt" title="Portugal">Portugal</option> 760 <option value="pr" title="Puerto Rico">Puerto Rico</option> 761 <option value="qa" title="Qatar">Qatar</option> 762 <option value="re" title="Réunion">Réunion</option> 763 <option value="ro" title="Romania">Romania</option> 764 <option value="ru" title="Russian Federation">Russian Federation</option> 765 <option value="rw" title="Rwanda">Rwanda</option> 766 <option value="bl" title="Saint Barthélemy">Saint Barthélemy</option> 767 <option value="sh" title="Saint Helena, Ascension and Tristan da Cunha">Saint Helena, Ascension and Tristan da Cunha</option> 768 <option value="kn" title="Saint Kitts and Nevis">Saint Kitts and Nevis</option> 769 <option value="lc" title="Saint Lucia">Saint Lucia</option> 770 <option value="mf" title="Saint Martin (French part)">Saint Martin (French part)</option> 771 <option value="pm" title="Saint Pierre and Miquelon">Saint Pierre and Miquelon</option> 772 <option value="vc" title="Saint Vincent and the Grenadines">Saint Vincent and the Grenadines</option> 773 <option value="ws" title="Samoa">Samoa</option> 774 <option value="sm" title="San Marino">San Marino</option> 775 <option value="st" title="Sao Tome and Principe">Sao Tome and Principe</option> 776 <option value="sa" title="Saudi Arabia">Saudi Arabia</option> 777 <option value="sn" title="Senegal">Senegal</option> 778 <option value="rs" title="Serbia">Serbia</option> 779 <option value="sc" title="Seychelles">Seychelles</option> 780 <option value="sl" title="Sierra Leone">Sierra Leone</option> 781 <option value="sg" title="Singapore">Singapore</option> 782 <option value="sx" title="Sint Maarten (Dutch part)">Sint Maarten (Dutch part)</option> 783 <option value="sk" title="Slovakia">Slovakia</option> 784 <option value="si" title="Slovenia">Slovenia</option> 785 <option value="sb" title="Solomon Islands">Solomon Islands</option> 786 <option value="so" title="Somalia">Somalia</option> 787 <option value="za" title="South Africa">South Africa</option> 788 <option value="gs" title="South Georgia and the South Sandwich Islands">South Georgia and the South Sandwich Islands</option> 789 <option value="ss" title="South Sudan">South Sudan</option> 790 <option value="es" title="Spain">Spain</option> 791 <option value="lk" title="Sri Lanka">Sri Lanka</option> 792 <option value="sd" title="Sudan">Sudan</option> 793 <option value="sr" title="Suriname">Suriname</option> 794 <option value="sj" title="Svalbard and Jan Mayen">Svalbard and Jan Mayen</option> 795 <option value="sz" title="Swaziland">Swaziland</option> 796 <option value="se" title="Sweden">Sweden</option> 797 <option value="ch" title="Switzerland">Switzerland</option> 798 <option value="sy" title="Syrian Arab Republic">Syrian Arab Republic</option> 799 <option value="tw" title="Taiwan, Province of China">Taiwan, Province of China</option> 800 <option value="tj" title="Tajikistan">Tajikistan</option> 801 <option value="tz" title="Tanzania, United Republic of">Tanzania, United Republic of</option> 802 <option value="th" title="Thailand">Thailand</option> 803 <option value="tl" title="Timor-Leste">Timor-Leste</option> 804 <option value="tg" title="Togo">Togo</option> 805 <option value="tk" title="Tokelau">Tokelau</option> 806 <option value="to" title="Tonga">Tonga</option> 807 <option value="tt" title="Trinidad and Tobago">Trinidad and Tobago</option> 808 <option value="tn" title="Tunisia">Tunisia</option> 809 <option value="tr" title="Turkey">Turkey</option> 810 <option value="tm" title="Turkmenistan">Turkmenistan</option> 811 <option value="tc" title="Turks and Caicos Islands">Turks and Caicos Islands</option> 812 <option value="tv" title="Tuvalu">Tuvalu</option> 813 <option value="ug" title="Uganda">Uganda</option> 814 <option value="ua" title="Ukraine">Ukraine</option> 815 <option value="ae" title="United Arab Emirates">United Arab Emirates</option> 816 <option value="gb" title="United Kingdom">United Kingdom</option> 817 <option value="us" title="United States">United States</option> 818 <option value="um" title="United States Minor Outlying Islands">United States Minor Outlying Islands</option> 819 <option value="uy" title="Uruguay">Uruguay</option> 820 <option value="uz" title="Uzbekistan">Uzbekistan</option> 821 <option value="vu" title="Vanuatu">Vanuatu</option> 822 <option value="ve" title="Venezuela, Bolivarian Republic of">Venezuela, Bolivarian Republic of</option> 823 <option value="vn" title="Viet Nam">Viet Nam</option> 824 <option value="vg" title="Virgin Islands, British">Virgin Islands, British</option> 825 <option value="vi" title="Virgin Islands, U.S.">Virgin Islands, U.S.</option> 826 <option value="wf" title="Wallis and Futuna">Wallis and Futuna</option> 827 <option value="eh" title="Western Sahara">Western Sahara</option> 828 <option value="ye" title="Yemen">Yemen</option> 829 <option value="zm" title="Zambia">Zambia</option> 830 <option value="zw" title="Zimbabwe">Zimbabwe</option> 831 </select> 832 </div> 833 </div> 834 <div class="clearfix"></div> 835 836 <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"> 837 <div class="form-group"> 838 <label id="head-social-emaillab" tabindex="0" aria-labelledby="head-social-emaillab">Email Address<sup>*</sup></label> 839 <input id="sn-signup-email-addr" type="email" name="email" class="form-control" placeholder="Email Address" autocomplete="off">
840 <span id="sn-signup-emailexists" class="err-msg hide" tabindex="0" aria-live="polite" aria-label="Invalid Email address">Invalid Email address</span> 841 </div> 842 </div> 843 <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" id="sn-social-verify-email"> 844 <div class="form-group"> 845 <label id="head-social-cnfemail" tabindex="0" aria-labelledby="head-social-cnfemail">Confirm Email Address<sup>*</sup></label> 846 <input id="sn-signup-verify-email" type="email" class="form-control" placeholder="Confirm Email Address" autocomplete="off"> 847 <span id="sn-signup-verify-email-err" class="err-msg hide" tabindex="0" aria-live="polite" aria-labelledby="signup-verify-email-err">Entered Email address does not match</span> 848 </div> 849 </div> 850 <input id="sn-password" type="hidden" name="profile-id"> 851 <input id="sn-signup-social" type="hidden" name="signup-social-name"> 852 <div class="clearfix"></div> 853 854 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> 855 <div class="checkbox "> 856 <input id="sn-signup-checkbox1" name="keepintouch" class="styled" type="checkbox"> 857 <label for="sn-signup-checkbox1" tabindex="0" aria-labelledby="I would like to receive information on Bloomsbury Accounting and Tax Service and related Bloomsbury products"> 858 I would like to receive information on Bloomsbury Accounting and Tax Service and related Bloomsbury products 859 </label> 860 </div> 861 <div class="checkbox"> 862 <input id="sn-signup-checkbox2" class="styled" type="checkbox"> 863 <label for="sn-signup-checkbox2" tabindex="0" aria-labelledby="sn-signup-checkbox2"> 864 I agree with <a href="terms-and-conditions">Terms & Conditions</a> and <a href="privacy-policy">Privacy & Cookies Policy</a><sup>*</sup> 865 </label> 866 </div> 867 </div> 868 869 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center"> 870 <div class="form-group button_elements"> 871 <input id="sn-signup-send-btn" type="button" value="Submit" class="primary_btn disabled-btn"> 872 <input type="button" value="Clear" class="secondary_btn" data-toggle="modal" data-target="#sn-signup-reset"> 873 </div> 874 </div> 875 876 </form> 877 </div> 878 </div> 879 </div> 880 </div> 881</div> 882<!-- Signup via Social Media Modal End's Here--> 883 884<div role="dialog" aria-modal="true" aria-labelledby="commontool-sn-signup-reset" aria-describedby="sn-signup-reset-description" class="modal fade" id="sn-signup-reset" tabindex="-1" data-backdrop="static" data-keyboard="false"> 885 <div class="vertical-alignment-helper"> 886 <div class="modal-dialog alert_modal vertical-align-center" role="document"> 887 <div class="modal-content"> 888 <div class="modal-body"> 889 <h2 id="socialsignup-alertmsg" tabindex="0" aria-labelledby="socialsignup-alertmsg">Alert</h2> 890 <p id="socialsignup-alertconfirm" tabindex="0" aria-labelledby="socialsignup-alertconfirm">Are you sure you want to reset the form?</p> 891 <input type="button" value="Yes" class="primary_btn sn-signup-clear-btn" data-dismiss="modal"> 892 <input data-dismiss="modal" type="button" value="No" class="secondary_btn sn-signup-clear-cancel-btn"> 893 </div> 894 </div> 895 </div> 896 </div> 897</div> 898 899<!-- Shareviaemail model window ----> 900<div role="dialog" aria-modal="true" aria-labelledby="sharevia-mail" aria-describedby="sharevia-mail-dialog-description" class="modal fade" id="sharevia-mail" tabindex="-1" data-backdrop="static" data-keyboard="false"> 901 <div class="vertical-alignment-helper"> 902 <div class="modal-dialog share-via-success vertical-align-center" role="document"> 903 <div class="modal-content"> 904 <div class="modal-body text-center"> 905 <h2 id="socialsignup-successmsg" tabindex="0" aria-labelledby="socialsignup-successmsg">Success</h2> 906 <p id="socialsignup-alertconfirmation" tabindex="0" aria-labelledby="socialsignup-alertconfirmation">Your mail has been sent successfully</p> 907 <input type="button" value="OK" class="primary_btn sn-signup-clear-btn" data-dismiss="modal"> 908 </div> 909 </div> 910 </div> 911 </div> 912</div> 913 914 915<!-- Alert Selection--> 916 917<div role="dialog" aria-modal="true" aria-labelledby="commontool-sharevia-mail" aria-describedby="sharevia-mail-dialog-description" class="modal fade" id="alertselect" tabindex="-1" data-backdrop="static" data-keyboard="false"> 918 <div class="vertical-alignment-helper"> 919 <div class="modal-dialog alert_modal vertical-align-center" role="document"> 920 <div class="modal-content"> 921 <div class="modal-body"> 922 <h2 id="alert-alertmsg" tabindex="0" aria-labelledby="alert-alertmsg">Alert Me</h2> 923 <p id="alert-alertconfirm" tabindex="0" aria-labelledby="alert-alertconfirm">Are you sure you want to remove the alert?</p> 924 <input type="button" value="Yes" class="primary_btn alert-clear-btn" data-dismiss="modal" id="remove-alert-button"> 925 <input data-dismiss="modal" type="button" value="No" class="secondary_btn alert-clear-cancel-btn"> 926 </div> 927 </div> 928 </div> 929 </div> 930</div> 931
932<script type="text/javascript"> 933 var emailNotMatchMsg = "Entered Email address does not match"; 934 function setTwitterUserInfo(id, fullname, firstname, surname, email, profileImageUrl){ 935 var signUpViaTiw = "Sign Up Via"; 936 document.getElementById("sn-signup-media-title").innerHTML = signUpViaTiw+" Twitter"; 937 document.getElementById("sn-full-name").innerHTML = fullname; 938 document.getElementById("sn-email").innerHTML = email; 939 document.getElementById("sn-profile-pic").setAttribute("src", profileImageUrl); 940 document.getElementById("sn-signup-icon").setAttribute("src", "/static-assets/bloomsbury_assets/bloomsbury/images/signin_twitter.png"); 941 document.getElementById("signup-social-label").innerHTML = "Twitter"; 942 document.getElementById("sn-signup-first-name").value = fullname; 943 document.getElementById("sn-signup-sur-name").value = surname; 944 document.getElementById("sn-password").value = id; 945 document.getElementById("sn-signup-social").value = "twitter"; 946 document.getElementById("sn-signup-email-addr").value = email; 947 var dbFlag = validateUserExists(id); 948 if(dbFlag) { 949 window.location.href = '/signin?id=' + id + '&recentUrl=/search-results?any=&su=commentary'; 950 } else { 951 // now popup the signup modal 952 $('#signup-social-media').modal('show'); 953 } 954 } 955 956 function twitterDenied(){ 957 $('#signin-username').css("border","solid red 1px").siblings("span").removeClass("hide").html('Access Denied'); 958 } 959 960 function SocialSignUpSubmission() { 961 var isValid = true; 962 var $email_addr=$('#sn-signup-email-addr'); 963 var $verify_email_addr=$('#sn-signup-verify-email'); 964 var f_email=$email_addr.val(); 965 var s_email=$verify_email_addr.val(); 966 $email_addr.css("border","solid #ccc 1px").siblings("span").addClass("hide"); 967 $verify_email_addr.css("border","solid #ccc 1px").siblings("span").addClass("hide"); 968 if(!ValidateEmail(f_email)){ 969 isValid=false; 970 $email_addr.css("border","solid red 1px").siblings("span").removeClass("hide"); 971 } 972 if(f_email!=s_email){ 973 isValid=false; 974 975 $verify_email_addr.css("border","solid red 1px").siblings("span").removeClass("hide").html(emailNotMatchMsg); 976 } 977 if (isValid) { 978 showProgress(); 979 $.ajax({
980 type: "POST", 981 url: '/app/sams', 982 dataType: 'text', 983 data: {username: f_email}, 984 async: false, 985 success: function (e) { 986 if (e == "-1") { 987 $("#sn-signup-form").submit(); 988 } else { 989 hideProgress(); 990 $('#sn-signup-email-addr').css("border","solid red 1px").siblings("span").removeClass("hide").html('Email Address already exists'); 991 } 992 }, 993 error: function (error) { 994 console.log(error); 995 } 996 }); 997 } 998} 999 1000$(document).ready(function() { 1001 $("#change-old-pwd, #change-new-pwd, #change-confirm-pwd").keyup(function(event) { 1002 $(this).css("border","solid #ccc 1px").siblings("span").addClass("hide"); 1003 if (!$(this).val()) { 1004 $("#change-pwd-btn").addClass("disabled-btn"); 1005 } 1006 else { 1007 if ($("#change-old-pwd").val() != "" && $("#change-new-pwd").val() != "" && $("#change-confirm-pwd").val() != "") { 1008 $("#change-pwd-btn").removeClass("disabled-btn"); 1009 } else { 1010 $("#change-pwd-btn").addClass("disabled-btn"); 1011 } 1012 } 1013 if(!$("#change-pwd-btn").hasClass('disabled-btn')){ 1014 if(event.keyCode=="13"){ 1015 changePassword(); 1016 } 1017 } 1018 }); 1019 1020 1021 $("#social-signup-close").on('click', function(e) { 1022 $("#signup-social-media").find('.selectpicker').selectpicker('deselectAll'); 1023 $("#signup-social-media").find("input:checkbox").removeAttr("checked"); 1024 }); 1025 1026 var input_email_addr; 1027 $('#signup-social-media').on('show.bs.modal', function (e) { 1028 input_email_addr = $("#sn-signup-email-addr").val(); 1029 }); 1030 1031 $("#sn-signup-email-addr").on('keyup', function() { 1032 var input_verify_email_addr = $("#sn-signup-email-addr").val(); 1033 if (input_email_addr != input_verify_email_addr) { 1034 $("#sn-social-verify-email").removeClass("hide"); 1035 } else { 1036 $("#sn-social-verify-email").addClass("hide"); 1037 } 1038 var socialSignupMandatory = $("#sn-signup-title-option, #sn-signup-first-name, #sn-signup-sur-name, #sn-signup-email-addr, #sn-signup-verify-email, #sn-signup-occupation-select, #sn-signup-country, #sn-signup-checkbox2, #sn-signup-other-txt-box, #sn-signup-occupation-text-box"); 1039 socialSignupValidate(socialSignupMandatory); 1040 }); 1041 1042 $(".glyphicon.glyphicon-minus, .glyphicon.glyphicon-plus, .search-fav-icon").on("keyup", function(e){ 1043 if (e.keyCode == 13) { 1044 $(this).click(); 1045 } 1046 }); 1047}); 1048 1049$("#changepass").on("hide.bs.modal", function (e) { 1050 $("#change-pwd-btn").addClass("disabled-btn"); 1051 $(this).find("input[type=password]").val("").css("border","solid #ccc 1px"); 1052 $(this).find(".err-msg").addClass("hide"); 1053}); 1054 1055function changePassword() { 1056 var oldPwd = $("#change-old-pwd").val(); 1057 var newPwd = $("#change-new-pwd").val(); 1058 var confirmPwd = $("#change-confirm-pwd").val(); 1059 $("#change-new-pwd").css("border","solid #ccc 1px").siblings("span").addClass("hide"); 1060 $("#change-confirm-pwd").css("border","solid #ccc 1px").siblings("span").addClass("hide"); 1061 if (newPwd.length < 6) { 1062 $("#change-new-pwd").css("border","solid red 1px").siblings("span").removeClass("hide"); 1063 $("#change-new-pwd").focus(); 1064 return false; 1065 } 1066 if (newPwd != confirmPwd) { 1067 $("#change-confirm-pwd").css("border","solid red 1px").siblings("span").removeClass("hide"); 1068 $("#change-confirm-pwd").focus(); 1069 return false; 1070 } 1071 $("#change-password-form").submit(); 1072} 1073 1074$(document).on('click', "#change-pwd-btn", function() { 1075 if (!$(this).hasClass('disabled-btn')) { 1076 changePassword(); 1077 } 1078}); 1079 1080$(document).on('click', ".signin-success-btn", function() { 1081 var signinUser = $("#signin-username").val(); 1082 if (!ValidateEmail(signinUser)){ 1083 $("#signin-username").addClass("error-address").css("border","solid red 1px").siblings("span").removeClass("hide"); 1084 $("#signin-username").focus(); 1085 } 1086 else { 1087 $("#signin-username").css("border","solid #ccc 1px").siblings("span").addClass("hide"); 1088 showProgress(); 1089 $("#signin-form").submit(); 1090 } 1091}); 1092$("#signin-username,#signin-password").on('keyup',function(e){
1093 if($("#signin-username").val() == ""){ 1094 $("#signin-username").css("border","1px solid #ccc"); 1095 } 1096 if($("#signin-password").val() == ""){ 1097 $("#signin-password").css("border","1px solid #ccc"); 1098 } 1099 if(!$(this).hasClass('disabled-btn')){ 1100 if(e.keyCode=="13"){ 1101 showProgress(); 1102 $("#signin-form").submit(); 1103 } 1104 } 1105}); 1106$("#signin_modal").on('show.bs.modal', function (e) { 1107 $("#signin_modal h2").focus(); 1108 if ($('#signin-username').val().trim().length == 0 || $('#signin-password').val().trim().length == 0) { 1109 $("#signin-btn").addClass("disabled-btn").removeClass("signin-success-btn"); 1110 } 1111 else { 1112 if ($("#signin-username").val() != "" && $("#signin-password").val() != "") { 1113 $("#signin-btn").removeClass("disabled-btn").addClass("signin-success-btn"); 1114 $("#signin-username").css("border","1px solid #ccc").siblings("span").addClass("hide"); 1115 $("#signin-password").css("border","1px solid #ccc").siblings("span").addClass("hide"); 1116 } else { 1117 $("#signin-btn").addClass("disabled-btn").removeClass("signin-success-btn"); 1118 } 1119 } 1120}); 1121/*$("#skip-content").on("click keyup", function(e){ 1122 if (e.type == "click" || e.keyCode == 13) { 1123 //$(".list-items").eq(0).find("#search-result-link").attr("tabindex", "0"); 1124 $("#searchres-result").focus(); 1125 //$(".list-items").eq(0).find("#search-result-link").addClass("no-focus"); 1126 //$(".list-items").eq(0).find("#search-result-link").attr("id", "primary-search-result-link"); 1127 document.getElementById("searchres-result").scrollIntoView(); 1128 } 1129});*/ 1130$("#skip-content").on("focusin", function(e){ 1131 $(this).parent().removeAttr("style"); 1132}); 1133$("#skip-content").on("focusout", function(e){ 1134 $(this).parent().attr("style", "position: absolute;top:-10000px;"); 1135}); 1136 1137function focusAndScroll(target, options) { 1138 if (!target || !target.length) return; 1139 options = options || {}; 1140 if (options.id) { 1141 target.attr("id", options.id); 1142 } 1143 if (options.role) { 1144 target.attr("role", options.role); 1145 } 1146 if (options.tabindex) { 1147 target.attr("tabindex", options.tabindex); 1148 } 1149 target.focus(); 1150 var ele = document.getElementById(target.attr("id")) || target[0]; 1151 ele.scrollIntoView({ behavior: options.smooth ? "smooth" : "auto" }); 1152} 1153 1154// Focus close button on ESC or 'b' or Arrow keys 1155/*$(document).on('keydown.modal-accessibility', function (e) { 1156 const $modal = $('.share_modal.vertical-align-center:visible').last(); 1157 if (!$modal.length) return; 1158 1159 const $closeBtn = $modal.find('[data-dismiss="modal"]').filter('[aria-label="Close"], [aria-hidden="true"]').first(); 1160 1161 if (['Escape', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'].includes(e.key)) { 1162 e.preventDefault(); 1163 console.log("Key pressed2:", e.key); 1164 1165 $closeBtn.focus(); 1166 1167 if (e.key === 'Escape') { 1168 $closeBtn.trigger('click'); // Triggers close 1169 } 1170 } 1171});*/ 1172 1173$(document).ready(function() { 1174 const $backToTop = $(` 1175 <a href="#" id="back-to-top" class="back-to-top" aria-label="Back to top"> 1176 <span class="back_circle" aria-hidden="true"> 1177 <span class="icon-backtotop"></span> 1178 </span> 1179 <div class="hidden-xs" aria-hidden="true"> 1180 Back to Top 1181 </div> 1182 </a> 1183 `); 1184 $backToTop.insertBefore('footer'); 1185}); 1186/* Skip to content function start */ 1187/* page load time initialize the main region */ 1188$(function () { 1189 addMainOnPageLoad(); 1190}); 1191function addMainOnPageLoad() { 1192 if (document.querySelector("main, [role='main']")) { 1193 return; 1194 } 1195 var container = document.querySelector("[id^='page-template']") || document.querySelector(".container.no_pad.page_minheight") || 1196 document.getElementById("mycontent") || 1197 document.querySelector(".container.article_template"); 1198 1199 if (!container) return; 1200 1201 container.setAttribute("role", "main"); 1202} 1203/* skip to content button event */ 1204$("#skip-content").on("click keyup", function (e) { 1205 1206 if (e.type === "keyup" && (e.keyCode !== 13 || e.keyCode !== 32)) return; 1207 1208 if (isLoginPage() || document.querySelector(".login_page")) { 1209 focusPageStart(); 1210 return; 1211 } 1212 1213 const target1 = document.querySelector(".content_container.page-content-start"); 1214 console.log(target1); 1215 if(target1) 1216 { 1217 focusHeadingInside(target1); 1218 return; 1219 } 1220 1221 const target2 = document.querySelector(".article_right.page-content-start"); 1222 console.log(target2); 1223 if(target2) 1224 { 1225 focusHeadingInside(target2); 1226 return; 1227 } 1228 1229 const target21 = document.querySelector(".page-content-start"); 1230 if(target21 && !target21.closest('#login-left-hidden')) { 1231 focusHeadingInside(target21); 1232 return; 1233 } 1234 1235 focusById("searchres-result"); 1236 });
1237 1238//check login page 1239function isLoginPage() { 1240 return window.location.pathname.indexOf("/login") > -1; 1241} 1242//move focus to PageStart container 1243function focusPageStart() { 1244 var target = jQuery(".login_page").first(); 1245 if (!target.length) { 1246 target = jQuery(".page-content-start").first(); 1247 } 1248 1249 if (!target.length) return; // Nothing to focus 1250 1251 // Try to find the first heading inside the target 1252 var focusEl = target.find("h1, h2").first(); 1253 1254 // If no heading found, focus the container itself 1255 if (!focusEl.length) { 1256 focusEl = target; 1257 } 1258 1259 // Set ID if not already 1260 if (focusEl.attr("id") !== "pageStart") { 1261 focusEl.attr("id", "pageStart"); 1262 } 1263 1264 // Make focusable and add class 1265 focusEl.attr("tabindex", "-1").addClass("no-focus"); 1266 1267 // Focus and scroll into view 1268 setTimeout(function() { 1269 focusEl.focus(); 1270 focusEl.get(0).scrollIntoView({ behavior: "smooth", block: "start" }); 1271 }, 10); 1272} 1273//focus based on ID 1274function focusById(id) { 1275 var target = document.getElementById(id); 1276 if (!target) return; 1277 1278 var $target = $(target); 1279 $target.addClass("no-focus"); 1280 $target.attr("tabindex", "-1"); 1281 $target.focus()[0].scrollIntoView(); 1282} 1283/* if check CMS page or XML generated page to redirect the function */ 1284function handleDefaultSkip() { 1285 const target1 = document.querySelector(".container.article_template"); 1286 console.log(target1); 1287 if(target1) 1288 { 1289 focusHeadingInside(target1); 1290 } 1291 else { 1292 var pageType = jQuery("#pageType").val(); 1293 if (pageType && pageType.trim() === "xml-generated") { 1294 focusMain(); 1295 } else { 1296 handleCmsPage(); 1297 } 1298 } 1299} 1300/* Handle the CMS pages */ 1301function handleCmsPage() { 1302 var main = document.querySelector("main") || 1303 document.querySelector("[role='main']"); 1304 if (!main) 1305 { 1306 const target1 = document.querySelector(".static_template"); 1307 //console.log(target1); 1308 if(target1) 1309 focusHeadingInside(target1); 1310 return; 1311 } 1312 focusHeadingInside(main); 1313} 1314/* Focus Main region */ 1315function focusMain() { 1316 var main = document.querySelector("main") || 1317 document.querySelector("[role='main']"); 1318 1319 if (!main) return; 1320 1321 focusHeadingInside(main); 1322} 1323//focus heading inside main region 1324function focusHeadingInside(container) { 1325 var heading = container.querySelector("h1, h2"); 1326 //console.log("Heading found:", heading); 1327 1328 if (heading) { 1329 if (!heading.hasAttribute("tabindex")) { 1330 heading.setAttribute("tabindex", "-1"); 1331 } 1332 heading.focus(); 1333 heading.scrollIntoView(); 1334 return; 1335 } 1336 1337 if (!container.hasAttribute("tabindex")) { 1338 container.setAttribute("tabindex", "-1"); 1339 } 1340 container.focus(); 1341 container.scrollIntoView(); 1342} 1343// focus the first tab in skip-to-content button 1344(function () { 1345 let firstTab = true; 1346 1347 function isTextInput(el) { 1348 const result = ( 1349 el && 1350 ( 1351 el.tagName === 'INPUT' || 1352 el.tagName === 'TEXTAREA' || 1353 el.isContentEditable 1354 ) 1355 ); 1356 1357 firstTab = false; 1358 return result; 1359 } 1360 1361 document.addEventListener('keydown', function (e) { 1362 // If focus is inside an input/textarea/contenteditable, ignore first tab 1363 if (isTextInput(e.target)) { 1364 return; 1365 } 1366 1367 if (e.key === 'Tab' && firstTab) { 1368 const skipLink = document.getElementById('skip-content'); 1369 1370 if (skipLink) { 1371 e.preventDefault(); 1372 skipLink.focus(); 1373 firstTab = false; 1374 } 1375 } 1376 }); 1377})(); 1378 1379//back-to-top event 1380$(document).on("click keyup", "#back-to-top", function (e) { 1381 1382 if (e.type === "keyup" && (e.keyCode !== 13 || e.keyCode !== 32)) return; 1383 1384 if (isLoginPage() || document.querySelector(".login_page")) { 1385 focusPageStart(); 1386 return; 1387 } 1388 const target1 = document.querySelector(".content_container.page-content-start"); 1389 console.log(target1); 1390 if(target1) 1391 { 1392 focusHeadingInside(target1); 1393 return; 1394 } 1395 1396 const target2 = document.querySelector(".article_right.page-content-start"); 1397 console.log(target2); 1398 if(target2) 1399 { 1400 focusHeadingInside(target2); 1401 return; 1402 } 1403 1404 focusById("searchres-result"); 1405 });
1406 1407</script>
vendor: 2 bytes, line 1407
1407
1408<script> 1409window.taxonomyDataLayer = [ 1410 { 1411 "topFacet": "African Studies", 1412 "dataLayer": "content_african_studies" 1413 }, 1414 { 1415 "topFacet": "Anthropology", 1416 "dataLayer": "content_anthropology" 1417 }, 1418 { 1419 "topFacet": "Archaeology", 1420 "dataLayer": "content_archaeology" 1421 }, 1422 { 1423 "topFacet": "Architecture", 1424 "dataLayer": "content_architecture" 1425 }, 1426 { 1427 "topFacet": "Architecture & Interior Design", 1428 "dataLayer": "content_architecture_interior_design" 1429 }, 1430 { 1431 "topFacet": "Art & Visual Culture", 1432 "dataLayer": "content_art_visual_culture" 1433 }, 1434 { 1435 "topFacet": "Artists", 1436 "dataLayer": "content_artists" 1437 }, 1438 { 1439 "topFacet": "Asia Studies", 1440 "dataLayer": "content_asia_studies" 1441 }, 1442 { 1443 "topFacet": "Biblical Studies", 1444 "dataLayer": "content_biblical_studies" 1445 }, 1446 { 1447 "topFacet": "Bloomsbury Art Markets Article Type", 1448 "dataLayer": "content_art_markets_article_type" 1449 }, 1450 { 1451 "topFacet": "BP Ireland", 1452 "dataLayer": "content_bp_ireland" 1453 }, 1454 { 1455 "topFacet": "BP Law", 1456 "dataLayer": "content_bp_law" 1457 }, 1458 { 1459 "topFacet": "BP Scotland", 1460 "dataLayer": "content_bp_scotland" 1461 }, 1462 { 1463 "topFacet": "BP Tax", 1464 "dataLayer": "content_bp_tax" 1465 }, 1466 { 1467 "topFacet": "Business & Management", 1468 "dataLayer": "content_business_management" 1469 }, 1470 { 1471 "topFacet": "Catalogue", 1472 "dataLayer": "content_catalogue" 1473 }, 1474 { 1475 "topFacet": "Category", 1476 "dataLayer": "content_category" 1477 }, 1478 { 1479 "topFacet": "Classical Studies", 1480 "dataLayer": "content_classical_studies" 1481 }, 1482 { 1483 "topFacet": "Collection", 1484 "dataLayer": "content_collection" 1485 }, 1486 { 1487 "topFacet": "Collections", 1488 "dataLayer": "content_collection" 1489 }, 1490 { 1491 "topFacet": "Computer & Information Science", 1492 "dataLayer": "content_computer_information_science" 1493 }, 1494 { 1495 "topFacet": "Content Type", 1496 "dataLayer": "content_type" 1497 }, 1498 { 1499 "topFacet": "Type of Contents", 1500 "dataLayer": "content_type" 1501 }, 1502 { 1503 "topFacet": "Counselling & Psychotherapy", 1504 "dataLayer": "content_counselling_psychotherapy" 1505 }, 1506 { 1507 "topFacet": "Craft & Decorative Arts", 1508 "dataLayer": "content_craft_decorative_arts" 1509 }, 1510 { 1511 "topFacet": "Crafts & Making", 1512 "dataLayer": "content_crafts_making" 1513 }, 1514 { 1515 "topFacet": "Creator's place of origin", 1516 "dataLayer": "content_creator's_place_of_origin" 1517 }, 1518 { 1519 "topFacet": "Criminology", 1520 "dataLayer": "content_criminology" 1521 }, 1522 { 1523 "topFacet": "Date", 1524 "dataLayer": "content_date" 1525 }, 1526 { 1527 "topFacet": "Design", 1528 "dataLayer": "content_design" 1529 }, 1530 { 1531 "topFacet": "Design & Fashion", 1532 "dataLayer": "content_design_fashion" 1533 }, 1534 { 1535 "topFacet": "Design and Making", 1536 "dataLayer": "content_design_and_making" 1537 }, 1538 { 1539 "topFacet": "Digital Humanities & Digital Cultures", 1540 "dataLayer": "content_digital_humanities_and_cultures" 1541 }, 1542 { 1543 "topFacet": "Discipline", 1544 "dataLayer": "content_discipline" 1545 }, 1546 { 1547 "topFacet": "Doctrines", 1548 "dataLayer": "content_doctrines" 1549 }, 1550 { 1551 "topFacet": "Document Type", 1552 "dataLayer": "content_document_type" 1553 }, 1554 { 1555 "topFacet": "Drama & Performance Studies", 1556 "dataLayer": "content_drama_performance_studies" 1557 }, 1558 { 1559 "topFacet": "Dress", 1560 "dataLayer": "content_dress" 1561 }, 1562 { 1563 "topFacet": "Economics", 1564 "dataLayer": "content_economics" 1565 }, 1566 { 1567 "topFacet": "Education", 1568 "dataLayer": "content_education" 1569 }, 1570 { 1571 "topFacet": "Education Level", 1572 "dataLayer": "content_education_level" 1573 }, 1574 { 1575 "topFacet": "Elements of interior design", 1576 "dataLayer": "content_elements_of_interior_design" 1577 }, 1578 { 1579 "topFacet": "Engineering", 1580 "dataLayer": "content_engineering" 1581 }, 1582 { 1583 "topFacet": "Environmental Studies", 1584 "dataLayer": "content_environmental_studies" 1585 }, 1586 { 1587 "topFacet": "Fashion", 1588 "dataLayer": "content_fashion" 1589 }, 1590 { 1591 "topFacet": "Fashion Business", 1592 "dataLayer": "content_fashion_business" 1593 }, 1594 { 1595 "topFacet": "Film & Media", 1596 "dataLayer": "content_film_media" 1597 }, 1598 { 1599 "topFacet": "Films", 1600 "dataLayer": "content_films" 1601 }, 1602 { 1603 "topFacet": "Food", 1604 "dataLayer": "content_food" 1605 }, 1606 { 1607 "topFacet": "Gender & Sexuality Studies", 1608 "dataLayer": "content_gender_sexuality_studies" 1609 }, 1610 { 1611 "topFacet": "General Religion", 1612 "dataLayer": "content_general_religion" 1613 }, 1614 { 1615 "topFacet": "Genres and forms", 1616 "dataLayer": "content_genres_and_forms" 1617 }, 1618 { 1619 "topFacet": "Genres, Movements and Styles", 1620 "dataLayer": "content_genres_movements_and_styles" 1621 }, 1622 { 1623 "topFacet": "Geography", 1624 "dataLayer": "content_geography" 1625 }, 1626 { 1627 "topFacet": "Health & Wellbeing", 1628 "dataLayer": "content_health_wellbeing" 1629 }, 1630 { 1631 "topFacet": "History", 1632 "dataLayer": "content_history" 1633 }, 1634 { 1635 "topFacet": "History, theory and criticism", 1636 "dataLayer": "content_history_theory_and_criticism" 1637 }, 1638 { 1639 "topFacet": "Ideologies and schools of thought", 1640 "dataLayer": "content_ideologies_schools_of_thought" 1641 }, 1642 { 1643 "topFacet": "Image", 1644 "dataLayer": "content_image" 1645 }, 1646 { 1647 "topFacet": "Interior construction and building systems", 1648 "dataLayer": "content_interior_construction" 1649 }, 1650 { 1651 "topFacet": "Interior Design & Interior Architecture", 1652 "dataLayer": "content_interior_design" 1653 }, 1654 { 1655 "topFacet": "International Development", 1656 "dataLayer": "content_international_development" 1657 }, 1658 { 1659 "topFacet": "Language", 1660 "dataLayer": "content_language"
1661 }, 1662 { 1663 "topFacet": "Law", 1664 "dataLayer": "content_law" 1665 }, 1666 { 1667 "topFacet": "Library & Information Science", 1668 "dataLayer": "content_library_information_science" 1669 }, 1670 { 1671 "topFacet": "Linguistics", 1672 "dataLayer": "content_linguistics" 1673 }, 1674 { 1675 "topFacet": "Literary Studies", 1676 "dataLayer": "content_literary_studies" 1677 }, 1678 { 1679 "topFacet": "Marine Engineering", 1680 "dataLayer": "content_marine_engineering" 1681 }, 1682 { 1683 "topFacet": "Material type", 1684 "dataLayer": "content_material_type" 1685 }, 1686 { 1687 "topFacet": "Materials", 1688 "dataLayer": "content_materials" 1689 }, 1690 { 1691 "topFacet": "Mathematics & Statistics", 1692 "dataLayer": "content_mathematics_statistics" 1693 }, 1694 { 1695 "topFacet": "Medical Humanities & Medical History", 1696 "dataLayer": "content_medical_humanities_and_history" 1697 }, 1698 { 1699 "topFacet": "Middle East", 1700 "dataLayer": "content_middle_east" 1701 }, 1702 { 1703 "topFacet": "Modern Languages", 1704 "dataLayer": "content_modern_languages" 1705 }, 1706 { 1707 "topFacet": "Movements and Schools Of Thought", 1708 "dataLayer": "content_movements_schools_of_thought" 1709 }, 1710 { 1711 "topFacet": "Music & Sound Studies", 1712 "dataLayer": "content_music_sound_studies" 1713 }, 1714 { 1715 "topFacet": "Music Genres", 1716 "dataLayer": "content_music_genres" 1717 }, 1718 { 1719 "topFacet": "Named individuals (non-fictional)", 1720 "dataLayer": "content_named_individuals" 1721 }, 1722 { 1723 "topFacet": "Natural Sciences", 1724 "dataLayer": "content_natural_sciences" 1725 }, 1726 { 1727 "topFacet": "Nursing & Health", 1728 "dataLayer": "content_nursing_health" 1729 }, 1730 { 1731 "topFacet": "Objects", 1732 "dataLayer": "content_objects" 1733 }, 1734 { 1735 "topFacet": "Organizations and Design Houses", 1736 "dataLayer": "content_organizations_and_design_houses" 1737 }, 1738 { 1739 "topFacet": "Peer-Reviewed", 1740 "dataLayer": "content_peer-reviewed" 1741 }, 1742 { 1743 "topFacet": "People", 1744 "dataLayer": "content_people" 1745 }, 1746 { 1747 "topFacet": "People and Organisations", 1748 "dataLayer": "content_people" 1749 }, 1750 { 1751 "topFacet": "Peoples, Cultures and Religions", 1752 "dataLayer": "content_peoples_cultures_and_religions" 1753 }, 1754 { 1755 "topFacet": "Period (first performed)", 1756 "dataLayer": "content_period_first_performed" 1757 }, 1758 { 1759 "topFacet": "Period featured", 1760 "dataLayer": "content_period_featured" 1761 }, 1762 { 1763 "topFacet": "Period", 1764 "dataLayer": "content_period" 1765 }, 1766 { 1767 "topFacet": "Periods", 1768 "dataLayer": "content_period" 1769 }, 1770 { 1771 "topFacet": "Philosophy", 1772 "dataLayer": "content_philosophy" 1773 }, 1774 { 1775 "topFacet": "Photography", 1776 "dataLayer": "content_photography" 1777 }, 1778 { 1779 "topFacet": "Place", 1780 "dataLayer": "content_place" 1781 }, 1782 { 1783 "topFacet": "Places", 1784 "dataLayer": "content_place" 1785 }, 1786 { 1787 "topFacet": "Place Featured", 1788 "dataLayer": "content_place" 1789 }, 1790 { 1791 "topFacet": "Plays", 1792 "dataLayer": "content_plays" 1793 }, 1794 { 1795 "topFacet": "Playwrights", 1796 "dataLayer": "content_playwrights" 1797 }, 1798 { 1799 "topFacet": "Politics & International Relations", 1800 "dataLayer": "content_politics_international_relations" 1801 }, 1802 { 1803 "topFacet": "Practice subject", 1804 "dataLayer": "content_practice_subject" 1805 }, 1806 { 1807 "topFacet": "Practitioner roles", 1808 "dataLayer": "content_practitioner_roles" 1809 }, 1810 { 1811 "topFacet": "Primary text", 1812 "dataLayer": "content_primary_text" 1813 }, 1814 { 1815 "topFacet": "Principles and approaches", 1816 "dataLayer": "content_principles_and_approaches" 1817 }, 1818 { 1819 "topFacet": "Professional and business practice", 1820 "dataLayer": "content_business_practice" 1821 }, 1822 { 1823 "topFacet": "Psychology", 1824 "dataLayer": "content_psychology" 1825 }, 1826 { 1827 "topFacet": "Race & Ethnicity Studies", 1828 "dataLayer": "content_race_ethnicity_studies" 1829 }, 1830 { 1831 "topFacet": "Referencing Style", 1832 "dataLayer": "content_referencing_style" 1833 }, 1834 { 1835 "topFacet": "Referencing Topic", 1836 "dataLayer": "content_referencing_topic" 1837 }, 1838 { 1839 "topFacet": "Religion", 1840 "dataLayer": "content_religion" 1841 }, 1842 { 1843 "topFacet": "Religious Studies", 1844 "dataLayer": "content_religious_studies" 1845 }, 1846 { 1847 "topFacet": "Representing space: Drawing, Modelling and CAD", 1848 "dataLayer": "content_representing_space" 1849 }, 1850 {
1851 "topFacet": "Research fields", 1852 "dataLayer": "content_research_fields" 1853 }, 1854 { 1855 "topFacet": "Research Methods", 1856 "dataLayer": "content_research_methods" 1857 }, 1858 { 1859 "topFacet": "Schools, Movements, Styles", 1860 "dataLayer": "content_schools_movements_styles" 1861 }, 1862 { 1863 "topFacet": "Science & Technology", 1864 "dataLayer": "content_science_technology" 1865 }, 1866 { 1867 "topFacet": "Setting", 1868 "dataLayer": "content_setting" 1869 }, 1870 { 1871 "topFacet": "Social Work & Social Welfare", 1872 "dataLayer": "content_social_work_social_welfare" 1873 }, 1874 { 1875 "topFacet": "Sociology", 1876 "dataLayer": "content_sociology" 1877 }, 1878 { 1879 "topFacet": "Sources", 1880 "dataLayer": "content_sources" 1881 }, 1882 { 1883 "topFacet": "Special Features", 1884 "dataLayer": "content_special_features" 1885 }, 1886 { 1887 "topFacet": "Sport & Exercise", 1888 "dataLayer": "content_sport_exercise" 1889 }, 1890 { 1891 "topFacet": "Sport / Activity", 1892 "dataLayer": "content_sport_or_activity" 1893 }, 1894 { 1895 "topFacet": "Study Skills", 1896 "dataLayer": "content_study_skills" 1897 }, 1898 { 1899 "topFacet": "Subject", 1900 "dataLayer": "content_subject" 1901 }, 1902 { 1903 "topFacet": "Subjects", 1904 "dataLayer": "content_subject" 1905 }, 1906 { 1907 "topFacet": "Supplier", 1908 "dataLayer": "content_supplier" 1909 }, 1910 { 1911 "topFacet": "Textiles", 1912 "dataLayer": "content_textiles" 1913 }, 1914 { 1915 "topFacet": "Textiles, Materials and Colors", 1916 "dataLayer": "content_textiles_materials_and_colors" 1917 }, 1918 { 1919 "topFacet": "The Design Industry", 1920 "dataLayer": "content_the_design_industry" 1921 }, 1922 { 1923 "topFacet": "Themes", 1924 "dataLayer": "content_themes" 1925 }, 1926 { 1927 "topFacet": "Theology", 1928 "dataLayer": "content_theology" 1929 }, 1930 { 1931 "topFacet": "Topic", 1932 "dataLayer": "content_topic" 1933 }, 1934 { 1935 "topFacet": "Topics", 1936 "dataLayer": "content_topic" 1937 }, 1938 { 1939 "topFacet": "Types of History", 1940 "dataLayer": "content_types_of_history" 1941 }, 1942 { 1943 "topFacet": "UN Sustainable Development Goals", 1944 "dataLayer": "content_unsustainable_development_goals" 1945 } 1946 ]; 1947</script>
1947<script type="text/javascript"> 1948 function googleAnalyticsPageLoad(options) { 1949 var dataLayerObj = {}; 1950 dataLayerObj.event = 'page_load'; 1951 //Customer Related 1952 dataLayerObj.authentication_status = 'not logged in'; 1953 //Page Related 1954 dataLayerObj.page_type = "xml-generated"; 1955 dataLayerObj.product_id = "bproicaew"; 1956 dataLayerObj.product_name = "Bloomsbury Accounting and Tax Service"; 1957 dataLayerObj.platform = "Bloomsbury Accounting and Tax Service"; 1958 dataLayerObj.product_name = ('Bloomsbury Accounting and Tax Service').split("~!").join("'"); 1959 1960 if (options) { 1961 for (member in options) { 1962 dataLayerObj[member] = options[member]; 1963 } 1964 } 1965 dataLayer.push(dataLayerObj); 1966 } 1967</script>
1967 1968 1969 1970 1971<div class="main-container"> 1972<header class="bs-docs-nav navbar header-layout header-temp1"> <div class="top-header"> <div class="container"> <div class="hidden-xs"> <div class="pull-left mt10"> <div class="social-icons"> <ul role="menu"> </ul> </div> </div> </div> <!-- social Icons for mobile devices starts--> <div class="visible-xs"> <div class="pull-left"> <div class="social-icons"> <ul role="menu"> </ul> </div> </div> </div> <!-- social Icons for mobile devices ends--> <div class="pull-right user-details"> 1973 1974 <div class="header-dropdown dropdown inline-disp " id="checkForLogout"> 1975 <a href="login?recentUrl=/search-results?any=&su=commentary" title="Login"> 1976 <img src="/static-assets/bloomsbury_assets/bloomsbury/images/signin_icon.png" alt="" title=""> 1977 <span aria-label="Log In">Log In</span> 1978 </a> 1979 </div> 1980 </div> </div> </div> <div class="btm-header"> <div class="container"> <div class="navbar-header"> <button aria-controls="bs-navbar" aria-expanded="false" class="collapsed navbar-toggle" data-target="#bs-navbar" data-toggle="collapse" type="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <span class="navbar-brand zero-leftpad single-logo"> <a href="home"><img src="https://res.cloudinary.com/bloomsbury-publishing-public/image/upload/f_auto%2Cq_auto/ICAEW_logo_PNG_2_anu9mv.png" class="img-responsive" alt="BATS logo" title="BATS logo"></a> </span> <span class="navbar-brand single-logo"> </span> <div class="hidden-md hidden-lg mob-search-icon"> <a href="javascript:;"><img src="/bloomsbury_assets/bloomsbury/images/search-icon-gray.png" class="img-responsive mob-search" aria-label="Search Button" tabindex="0"/></a> </div> </div> <nav class="collapse navbar-collapse" id="bs-navbar"> <span class="bpm-menu-close hidden-lg hidden-md">X</span> <ul role="navigation" aria-label="Main" class="nav navbar-nav"> <li class="" role="listitem"><a tabindex="0" aria-label="Home" href="/home">Home</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Practice Areas" href="/practice-areas">Practice Areas</a></li><li class="dropdown active" role="listitem"><a tabindex="0" href="#" data-toggle="dropdown" class="dropdown-toggle" aria-label="Browse Content" aria-expanded="false">Browse Content</a><ul class="dropdown-menu" role="list" aria-label="Browse Content"><li role="presentation"><a role="listitem" tabindex="0" href="/professional-book?docid=taxcases" title="Cases" aria-label="Cases">Cases</a></li><li role="presentation"><a role="listitem" tabindex="0" href="/search-results?any=&su=commentary" title="Commentary" aria-label="Commentary">Commentary</a></li><li role="presentation"><a role="listitem" tabindex="0" href="/search-results?any=&su=legislation" title="Legislation" aria-label="Legislation">Legislation</a></li><li role="presentation"><a role="listitem" tabindex="0" href="/new-and-noteworthy" title="New and Noteworthy" aria-label="New and Noteworthy">New and Noteworthy</a></li></ul> </li><li class="" role="listitem"><a tabindex="0" aria-label="About" href="/about-bloomsbury-accounting-and-tax-service">About</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Help" href="/help">Help</a></li> </ul> </nav> </div> </div> <div class="clearfix"></div></header></div> 1981<div class="modal fade" id="session-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false"> 1982 <div class="vertical-alignment-helper"> 1983 <div class="modal-dialog session-modal vertical-align-center" role="document"> 1984 <div class="modal-content"> 1985 <div class="modal-body"> 1986 <h2>Alert</h2> 1987 <p id="session-prompttext">Your session is about to expire! You will be logged out in </p> 1988 <div id="time" class="text-center session-time">10:00</div> 1989 <p id="session-promptconfirm" tabindex="0" aria-labelledby="session-promptconfirm">
1989 Do you wish to stay logged in?</p> 1990 <input type="button" value="Yes, keep me logged in" class="primary_btn clear-btn" id="session-login"> 1991 <input type="button" value="No, log me out" id="session-logout" class="secondary_btn"> 1992 </div> 1993 </div> 1994 </div> 1995 </div> 1996</div> 1997 1998 1999
2000<script type="text/javascript"> 2001 function search(request, response) { 2002 var siteName="bproicaew"; 2003 var langCode ="en"; 2004 var country = "$territory"; 2005 searchContent = request.term.replace("/", "~").replaceAll('"',''); 2006 var predicitivexmlreq = new XMLHttpRequest(); 2007 2008 predicitivexmlreq.open("GET","/api/searchresult/searchPredictive/"+searchContent+"/"+siteName+"/"+langCode+"/"+country,true); 2009 2010 2011 predicitivexmlreq.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 2012 predicitivexmlreq.send(); 2013 predicitivexmlreq.onreadystatechange = function() { 2014 if (predicitivexmlreq.status == 200 ) { 2015 if(searchContent.replace(/\s/g, "").length>2) { 2016 var predicitivedata = predicitivexmlreq.response; 2017 var predicitivedataString = jQuery.parseJSON(predicitivedata); 2018 }else{ 2019 predicitivedataString=""; 2020 } 2021 response(predicitivedataString); 2022 2023 } 2024 } 2025 } 2026 2027 $(document).ready(function() { 2028 try { 2029 $("#global_searchbox").autocomplete({ 2030 source: search, 2031 minLength: 1, 2032 select: function( event, ui ) { 2033 showProgress(); 2034 localStorage.setItem("selectedCheckBoxItem", null); 2035 localStorage.setItem("EnabledCheckBoxs",false); 2036 var text=ui.item.value; 2037 if(text.trim().length>0){ 2038 var url=window.location.protocol+'//'+window.location.host+'/search-results?any='+text; 2039 window.location.href=url; 2040 } 2041 }, 2042 open: function (event, ui) { 2043 if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { 2044 $('.ui-autocomplete').off('menufocus hover mouseover mouseenter'); 2045 } 2046 } 2047 }); 2048 $.ui.autocomplete.prototype._renderItem = function (ul, item) { 2049 item.label = item.label.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(this.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"); 2050 return $("<li></li>") 2051 .data("item.autocomplete", item) 2052 .append("<a>" + item.label + "</a>") 2053 .appendTo(ul); 2054 }; 2055 2056 $(document).on('touchstart', '.ui-autocomplete a',function(e){ 2057 $("#global_searchbox").data('ui-autocomplete')._trigger('select', 'autocompleteselect', {item:{value:$(this).text()}}); 2058 }); 2059 2060 } catch (e) {} 2061 }); 2062 2063</script>
2063 2064 2065 2066 2067 2068 2069<div class="search" style="text-align: left; background: none;"> 2070 <div class="container"> 2071 <div class="advanced_keyboard"> 2072 <input type="text" name="search_text" id="global_searchbox" title="Enter text to search" placeholder="Search Bloomsbury Accounting and Tax Service" value='' autocomplete="off" class=""> 2073 <input id="global_searchbtn" type="submit" class="disabled-btn" aria-label="Search" aria-disabled="true"> </div> 2074 </div> 2075 <!--search ends--> 2076</div> 2077 2078
2079<script> 2080 var ua = window.navigator.userAgent; 2081 var msie = ua.indexOf("MSIE"); 2082 var inputValue = ''.split("!~").join("'"); 2083 try { 2084 var query = function decode_utf8(s) { 2085 return decodeURIComponent(escape(s)); 2086 }(inputValue); 2087 $('#global_searchbox').val(query); 2088 } catch (e){ 2089 } 2090</script>
2090 2091
2092<script> 2093 $("#global_searchbox").on("change", function(){ 2094 if ($(this).val().length > 0) { 2095 $("#global_searchbtn").removeClass('disabled-btn'); 2096 $("#global_searchbtn").removeAttr("aria-disabled"); 2097 } else { 2098 $("#global_searchbtn").addClass('disabled-btn'); 2099 $("#global_searchbtn").attr("aria-disabled", "true"); 2100 } 2101 }); 2102</script>
2102 2103 2104 2105 2106 2107 2108 2109 2110
2111<script type="text/javascript"> 2112 $(document).ready(function(){ 2113 var navigationList = $("header li.dropdown"); 2114 navigationList.each(function(){ 2115 var dropdownList = $(this).find(".dropdown-menu li"); 2116 if (dropdownList.length == 0) { 2117 $(this).addClass('hide'); 2118 } 2119 }); 2120 2121 $('.navbar-collapse li a').on('click', function(e){ 2122 var protocol = "https://"; 2123 var domainname = window.location.host; 2124 var host = window.location.href; 2125 var parent=$(this).parent().parent(); 2126 var interactiontype = "parent"; 2127 var sibling= ""; 2128 var linkurl = ""; 2129 var hrefValue = $(this).attr('href'); 2130 if (parent.hasClass('dropdown-menu')) 2131 { 2132 if(hrefValue.includes("/")){ 2133 linkurl = protocol+domainname+hrefValue; 2134 } 2135 else 2136 { 2137 linkurl = protocol+domainname+"/"+hrefValue; 2138 } 2139 interactiontype = "child"; 2140 sibling=parent.prev().text()+ " > "+$(this).text(); 2141 } 2142 else 2143 { 2144 sibling = $(this).text(); 2145 hrefValue = ''; 2146 linkurl = ""; 2147 } 2148 var idattrvalue = $(this).attr('title'); 2149 if(idattrvalue == undefined){ 2150 idattrvalue = ""; 2151 } 2152 if(hrefValue== "#") 2153 { 2154 hrefValue = ''; 2155 } 2156 const navObj = {}; 2157 navObj.event= 'click_nav_link' 2158 navObj.link_classes = $(this).attr('class') 2159 navObj.link_domain = domainname 2160 navObj.link_id = idattrvalue 2161 navObj.link_text = $(this).text() 2162 navObj.link_url= linkurl 2163 navObj.link_breadcrumb = sibling 2164 navObj.interaction_type = interactiontype 2165 console.log(navObj); 2166 dataLayer.push(navObj); 2167 }); 2168 $("header nav>ul>li:visible:last a").css("background-image", "none"); 2169 }); 2170 navbarPadding(); 2171 $(window).resize(function(){ 2172 navbarPadding(); 2173 }); 2174 function navbarPadding(){ 2175 var navbarHeight=0; 2176 if ($("nav .navbar-nav>li").length > 0) { 2177 var heights = $("nav .navbar-nav>li").map(function () 2178 { 2179 return $(this).height(); 2180 }).get(); 2181 2182 navbarHeight = Math.max.apply(null, heights); 2183 } 2184 if (navbarHeight > 50) { 2185 $("nav.navbar-collapse").css("padding-top", "21px"); 2186 } else { 2187 $("nav.navbar-collapse").css("padding-top", "40px"); 2188 } 2189 } 2190 var loginEvent = $.cookie("LoginEvent"); 2191 if (loginEvent == "true") { 2192 dataLayer.push({ 2193 'event' : 'login', 2194 'method' : '$session.getAttribute("BB-LOGGEDIN-TYPE")' 2195 }); 2196 $.cookie("LoginEvent", "false"); 2197 } 2198</script>
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212
2213<script> 2214</script>
2214 2215
2216<script> 2217$(window).on('load', function() { 2218 2219 $('#open-access-filter').removeAttr("checked"); 2220 $.ajax({ 2221 url:"/update-open-access-filter-session?openaccess="+false, 2222 type: "GET", 2223 success: function(response) { 2224 } 2225 }); 2226 2227 2228 2229}); 2230</script>
2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246<input type="hidden" id="site-name" value="bproicaew"/> 2247<input type="hidden" id="account-id" value="0"> 2248<input type="hidden" id="search-hidedetails" name="hidedetails" value="Hide all content details"/> 2249<input type="hidden" id="search-showdetails" name="showdetails" value="Show all content details"/> 2250<input type="hidden" id="search-page" name="page" value="page"/> 2251<input type="hidden" id="search-pages" name="pages" value="pages"/> 2252<input type="hidden" id="search-of" name="of" value="of"/> 2253<input type="hidden" id="filter-hideall" name="hideall" value="Hide All Filters"/> 2254<input type="hidden" id="filter-showall" name="showall" value="Show All Filters"/> 2255<input type="hidden" id="more-text" name="more" value="More......"/> 2256<input type="hidden" id="less-text" name="less" value="......Less"/> 2257 2258<main id="searchContent" role="main" tabindex="-1" style="height: 600px;"></main> 2259 2260 2261
2262<script> 2263window.taxonomyDataLayer = [ 2264 { 2265 "topFacet": "African Studies", 2266 "dataLayer": "content_african_studies" 2267 }, 2268 { 2269 "topFacet": "Anthropology", 2270 "dataLayer": "content_anthropology" 2271 }, 2272 { 2273 "topFacet": "Archaeology", 2274 "dataLayer": "content_archaeology" 2275 }, 2276 { 2277 "topFacet": "Architecture", 2278 "dataLayer": "content_architecture" 2279 }, 2280 { 2281 "topFacet": "Architecture & Interior Design", 2282 "dataLayer": "content_architecture_interior_design" 2283 }, 2284 { 2285 "topFacet": "Art & Visual Culture", 2286 "dataLayer": "content_art_visual_culture" 2287 }, 2288 { 2289 "topFacet": "Artists", 2290 "dataLayer": "content_artists" 2291 }, 2292 { 2293 "topFacet": "Asia Studies", 2294 "dataLayer": "content_asia_studies" 2295 }, 2296 { 2297 "topFacet": "Biblical Studies", 2298 "dataLayer": "content_biblical_studies" 2299 }, 2300 { 2301 "topFacet": "Bloomsbury Art Markets Article Type", 2302 "dataLayer": "content_art_markets_article_type" 2303 }, 2304 { 2305 "topFacet": "BP Ireland", 2306 "dataLayer": "content_bp_ireland" 2307 }, 2308 { 2309 "topFacet": "BP Law", 2310 "dataLayer": "content_bp_law" 2311 }, 2312 { 2313 "topFacet": "BP Scotland", 2314 "dataLayer": "content_bp_scotland" 2315 }, 2316 { 2317 "topFacet": "BP Tax", 2318 "dataLayer": "content_bp_tax" 2319 }, 2320 { 2321 "topFacet": "Business & Management", 2322 "dataLayer": "content_business_management" 2323 }, 2324 { 2325 "topFacet": "Catalogue", 2326 "dataLayer": "content_catalogue" 2327 }, 2328 { 2329 "topFacet": "Category", 2330 "dataLayer": "content_category" 2331 }, 2332 { 2333 "topFacet": "Classical Studies", 2334 "dataLayer": "content_classical_studies" 2335 }, 2336 { 2337 "topFacet": "Collection", 2338 "dataLayer": "content_collection" 2339 }, 2340 { 2341 "topFacet": "Collections", 2342 "dataLayer": "content_collection" 2343 }, 2344 { 2345 "topFacet": "Computer & Information Science", 2346 "dataLayer": "content_computer_information_science" 2347 }, 2348 { 2349 "topFacet": "Content Type", 2350 "dataLayer": "content_type" 2351 }, 2352 { 2353 "topFacet": "Type of Contents", 2354 "dataLayer": "content_type" 2355 }, 2356 { 2357 "topFacet": "Counselling & Psychotherapy", 2358 "dataLayer": "content_counselling_psychotherapy" 2359 }, 2360 { 2361 "topFacet": "Craft & Decorative Arts", 2362 "dataLayer": "content_craft_decorative_arts" 2363 }, 2364 { 2365 "topFacet": "Crafts & Making", 2366 "dataLayer": "content_crafts_making" 2367 }, 2368 { 2369 "topFacet": "Creator's place of origin", 2370 "dataLayer": "content_creator's_place_of_origin" 2371 }, 2372 { 2373 "topFacet": "Criminology", 2374 "dataLayer": "content_criminology" 2375 }, 2376 { 2377 "topFacet": "Date", 2378 "dataLayer": "content_date" 2379 }, 2380 { 2381 "topFacet": "Design", 2382 "dataLayer": "content_design" 2383 }, 2384 { 2385 "topFacet": "Design & Fashion", 2386 "dataLayer": "content_design_fashion" 2387 }, 2388 { 2389 "topFacet": "Design and Making", 2390 "dataLayer": "content_design_and_making" 2391 }, 2392 { 2393 "topFacet": "Digital Humanities & Digital Cultures", 2394 "dataLayer": "content_digital_humanities_and_cultures" 2395 }, 2396 { 2397 "topFacet": "Discipline", 2398 "dataLayer": "content_discipline" 2399 }, 2400 { 2401 "topFacet": "Doctrines", 2402 "dataLayer": "content_doctrines" 2403 }, 2404 { 2405 "topFacet": "Document Type", 2406 "dataLayer": "content_document_type" 2407 }, 2408 { 2409 "topFacet": "Drama & Performance Studies", 2410 "dataLayer": "content_drama_performance_studies" 2411 }, 2412 { 2413 "topFacet": "Dress", 2414 "dataLayer": "content_dress" 2415 }, 2416 { 2417 "topFacet": "Economics", 2418 "dataLayer": "content_economics" 2419 }, 2420 { 2421 "topFacet": "Education", 2422 "dataLayer": "content_education" 2423 }, 2424 { 2425 "topFacet": "Education Level", 2426 "dataLayer": "content_education_level" 2427 }, 2428 { 2429 "topFacet": "Elements of interior design", 2430 "dataLayer": "content_elements_of_interior_design" 2431 }, 2432 { 2433 "topFacet": "Engineering", 2434 "dataLayer": "content_engineering" 2435 }, 2436 { 2437 "topFacet": "Environmental Studies", 2438 "dataLayer": "content_environmental_studies" 2439 }, 2440 { 2441 "topFacet": "Fashion", 2442 "dataLayer": "content_fashion" 2443 }, 2444 { 2445 "topFacet": "Fashion Business", 2446 "dataLayer": "content_fashion_business" 2447 }, 2448 { 2449 "topFacet": "Film & Media", 2450 "dataLayer": "content_film_media" 2451 }, 2452 { 2453 "topFacet": "Films", 2454 "dataLayer": "content_films" 2455 }, 2456 { 2457 "topFacet": "Food", 2458 "dataLayer": "content_food" 2459 }, 2460 { 2461 "topFacet": "Gender & Sexuality Studies", 2462 "dataLayer": "content_gender_sexuality_studies" 2463 }, 2464 { 2465 "topFacet": "General Religion", 2466 "dataLayer": "content_general_religion" 2467 }, 2468 { 2469 "topFacet": "Genres and forms", 2470 "dataLayer": "content_genres_and_forms" 2471 }, 2472 { 2473 "topFacet": "Genres, Movements and Styles", 2474 "dataLayer": "content_genres_movements_and_styles" 2475 }, 2476 { 2477 "topFacet": "Geography", 2478 "dataLayer": "content_geography" 2479 }, 2480 { 2481 "topFacet": "Health & Wellbeing", 2482 "dataLayer": "content_health_wellbeing" 2483 }, 2484 { 2485 "topFacet": "History", 2486 "dataLayer": "content_history" 2487 }, 2488 { 2489 "topFacet": "History, theory and criticism", 2490 "dataLayer": "content_history_theory_and_criticism" 2491 }, 2492 { 2493 "topFacet": "Ideologies and schools of thought", 2494 "dataLayer": "content_ideologies_schools_of_thought" 2495 }, 2496 { 2497 "topFacet": "Image", 2498 "dataLayer": "content_image" 2499 }, 2500 { 2501 "topFacet": "Interior construction and building systems", 2502 "dataLayer": "content_interior_construction" 2503 }, 2504 { 2505 "topFacet": "Interior Design & Interior Architecture", 2506 "dataLayer": "content_interior_design" 2507 }, 2508 { 2509 "topFacet": "International Development", 2510 "dataLayer": "content_international_development" 2511 }, 2512 { 2513 "topFacet": "Language", 2514 "dataLayer": "content_language"
2515 }, 2516 { 2517 "topFacet": "Law", 2518 "dataLayer": "content_law" 2519 }, 2520 { 2521 "topFacet": "Library & Information Science", 2522 "dataLayer": "content_library_information_science" 2523 }, 2524 { 2525 "topFacet": "Linguistics", 2526 "dataLayer": "content_linguistics" 2527 }, 2528 { 2529 "topFacet": "Literary Studies", 2530 "dataLayer": "content_literary_studies" 2531 }, 2532 { 2533 "topFacet": "Marine Engineering", 2534 "dataLayer": "content_marine_engineering" 2535 }, 2536 { 2537 "topFacet": "Material type", 2538 "dataLayer": "content_material_type" 2539 }, 2540 { 2541 "topFacet": "Materials", 2542 "dataLayer": "content_materials" 2543 }, 2544 { 2545 "topFacet": "Mathematics & Statistics", 2546 "dataLayer": "content_mathematics_statistics" 2547 }, 2548 { 2549 "topFacet": "Medical Humanities & Medical History", 2550 "dataLayer": "content_medical_humanities_and_history" 2551 }, 2552 { 2553 "topFacet": "Middle East", 2554 "dataLayer": "content_middle_east" 2555 }, 2556 { 2557 "topFacet": "Modern Languages", 2558 "dataLayer": "content_modern_languages" 2559 }, 2560 { 2561 "topFacet": "Movements and Schools Of Thought", 2562 "dataLayer": "content_movements_schools_of_thought" 2563 }, 2564 { 2565 "topFacet": "Music & Sound Studies", 2566 "dataLayer": "content_music_sound_studies" 2567 }, 2568 { 2569 "topFacet": "Music Genres", 2570 "dataLayer": "content_music_genres" 2571 }, 2572 { 2573 "topFacet": "Named individuals (non-fictional)", 2574 "dataLayer": "content_named_individuals" 2575 }, 2576 { 2577 "topFacet": "Natural Sciences", 2578 "dataLayer": "content_natural_sciences" 2579 }, 2580 { 2581 "topFacet": "Nursing & Health", 2582 "dataLayer": "content_nursing_health" 2583 }, 2584 { 2585 "topFacet": "Objects", 2586 "dataLayer": "content_objects" 2587 }, 2588 { 2589 "topFacet": "Organizations and Design Houses", 2590 "dataLayer": "content_organizations_and_design_houses" 2591 }, 2592 { 2593 "topFacet": "Peer-Reviewed", 2594 "dataLayer": "content_peer-reviewed" 2595 }, 2596 { 2597 "topFacet": "People", 2598 "dataLayer": "content_people" 2599 }, 2600 { 2601 "topFacet": "People and Organisations", 2602 "dataLayer": "content_people" 2603 }, 2604 { 2605 "topFacet": "Peoples, Cultures and Religions", 2606 "dataLayer": "content_peoples_cultures_and_religions" 2607 }, 2608 { 2609 "topFacet": "Period (first performed)", 2610 "dataLayer": "content_period_first_performed" 2611 }, 2612 { 2613 "topFacet": "Period featured", 2614 "dataLayer": "content_period_featured" 2615 }, 2616 { 2617 "topFacet": "Period", 2618 "dataLayer": "content_period" 2619 }, 2620 { 2621 "topFacet": "Periods", 2622 "dataLayer": "content_period" 2623 }, 2624 { 2625 "topFacet": "Philosophy", 2626 "dataLayer": "content_philosophy" 2627 }, 2628 { 2629 "topFacet": "Photography", 2630 "dataLayer": "content_photography" 2631 }, 2632 { 2633 "topFacet": "Place", 2634 "dataLayer": "content_place" 2635 }, 2636 { 2637 "topFacet": "Places", 2638 "dataLayer": "content_place" 2639 }, 2640 { 2641 "topFacet": "Place Featured", 2642 "dataLayer": "content_place" 2643 }, 2644 { 2645 "topFacet": "Plays", 2646 "dataLayer": "content_plays" 2647 }, 2648 { 2649 "topFacet": "Playwrights", 2650 "dataLayer": "content_playwrights" 2651 }, 2652 { 2653 "topFacet": "Politics & International Relations", 2654 "dataLayer": "content_politics_international_relations" 2655 }, 2656 { 2657 "topFacet": "Practice subject", 2658 "dataLayer": "content_practice_subject" 2659 }, 2660 { 2661 "topFacet": "Practitioner roles", 2662 "dataLayer": "content_practitioner_roles" 2663 }, 2664 { 2665 "topFacet": "Primary text", 2666 "dataLayer": "content_primary_text" 2667 }, 2668 { 2669 "topFacet": "Principles and approaches", 2670 "dataLayer": "content_principles_and_approaches" 2671 }, 2672 { 2673 "topFacet": "Professional and business practice", 2674 "dataLayer": "content_business_practice" 2675 }, 2676 { 2677 "topFacet": "Psychology", 2678 "dataLayer": "content_psychology" 2679 }, 2680 { 2681 "topFacet": "Race & Ethnicity Studies", 2682 "dataLayer": "content_race_ethnicity_studies" 2683 }, 2684 { 2685 "topFacet": "Referencing Style", 2686 "dataLayer": "content_referencing_style" 2687 }, 2688 { 2689 "topFacet": "Referencing Topic", 2690 "dataLayer": "content_referencing_topic" 2691 }, 2692 { 2693 "topFacet": "Religion", 2694 "dataLayer": "content_religion" 2695 }, 2696 { 2697 "topFacet": "Religious Studies", 2698 "dataLayer": "content_religious_studies" 2699 }, 2700 { 2701 "topFacet": "Representing space: Drawing, Modelling and CAD", 2702 "dataLayer": "content_representing_space" 2703 }, 2704 {
2705 "topFacet": "Research fields", 2706 "dataLayer": "content_research_fields" 2707 }, 2708 { 2709 "topFacet": "Research Methods", 2710 "dataLayer": "content_research_methods" 2711 }, 2712 { 2713 "topFacet": "Schools, Movements, Styles", 2714 "dataLayer": "content_schools_movements_styles" 2715 }, 2716 { 2717 "topFacet": "Science & Technology", 2718 "dataLayer": "content_science_technology" 2719 }, 2720 { 2721 "topFacet": "Setting", 2722 "dataLayer": "content_setting" 2723 }, 2724 { 2725 "topFacet": "Social Work & Social Welfare", 2726 "dataLayer": "content_social_work_social_welfare" 2727 }, 2728 { 2729 "topFacet": "Sociology", 2730 "dataLayer": "content_sociology" 2731 }, 2732 { 2733 "topFacet": "Sources", 2734 "dataLayer": "content_sources" 2735 }, 2736 { 2737 "topFacet": "Special Features", 2738 "dataLayer": "content_special_features" 2739 }, 2740 { 2741 "topFacet": "Sport & Exercise", 2742 "dataLayer": "content_sport_exercise" 2743 }, 2744 { 2745 "topFacet": "Sport / Activity", 2746 "dataLayer": "content_sport_or_activity" 2747 }, 2748 { 2749 "topFacet": "Study Skills", 2750 "dataLayer": "content_study_skills" 2751 }, 2752 { 2753 "topFacet": "Subject", 2754 "dataLayer": "content_subject" 2755 }, 2756 { 2757 "topFacet": "Subjects", 2758 "dataLayer": "content_subject" 2759 }, 2760 { 2761 "topFacet": "Supplier", 2762 "dataLayer": "content_supplier" 2763 }, 2764 { 2765 "topFacet": "Textiles", 2766 "dataLayer": "content_textiles" 2767 }, 2768 { 2769 "topFacet": "Textiles, Materials and Colors", 2770 "dataLayer": "content_textiles_materials_and_colors" 2771 }, 2772 { 2773 "topFacet": "The Design Industry", 2774 "dataLayer": "content_the_design_industry" 2775 }, 2776 { 2777 "topFacet": "Themes", 2778 "dataLayer": "content_themes" 2779 }, 2780 { 2781 "topFacet": "Theology", 2782 "dataLayer": "content_theology" 2783 }, 2784 { 2785 "topFacet": "Topic", 2786 "dataLayer": "content_topic" 2787 }, 2788 { 2789 "topFacet": "Topics", 2790 "dataLayer": "content_topic" 2791 }, 2792 { 2793 "topFacet": "Types of History", 2794 "dataLayer": "content_types_of_history" 2795 }, 2796 { 2797 "topFacet": "UN Sustainable Development Goals", 2798 "dataLayer": "content_unsustainable_development_goals" 2799 } 2800 ]; 2801</script>
2801<script type="text/javascript"> 2802 var productname = "bproicaew"; 2803 var isEmailAlert="false"; 2804 var url=window.location.toString(); 2805 url=url; 2806 var taxonomytext=$.urlNewParam('su'); 2807 var ht=$("#hdntaxonomy"); 2808 var hc=$("#hdncontenttypes"); 2809 if(taxonomytext.length>0){ 2810 ht.val(taxonomytext); 2811 } else { 2812 ht.empty(); 2813 } 2814 var contenttypetext=$.urlNewParam('ct'); 2815 if(contenttypetext.length>0){ 2816 hc.val(contenttypetext); 2817 } else { 2818 hc.val(''); 2819 } 2820 2821 function saveSearch() { 2822 if(!$('#save-search').hasClass('disabled-btn')){ 2823 $("#savesearch-error").text(''); 2824 var name = $("#searchText").val().trim(); 2825 name = encodeURIComponent(name); 2826 if(name.length>0){ 2827 var savesearchurl = window.location.pathname + window.location.search; 2828 var host = window.location.host; 2829 var langcode = "en"; 2830 savesearchurl = savesearchurl.replaceAll('&', '~'); 2831 savesearchurl = savesearchurl.replaceAll('%20', ' '); 2832 savesearchurl = savesearchurl.replaceAll('%27', ' '); 2833 savesearchurl = savesearchurl.replace('~com.dotmarketing.htmlpage.language=1', ''); 2834 name = name.replaceAll('%20', ' '); 2835 var params={name:name,link:savesearchurl,actionType:"save",alertss:isEmailAlert,product:productname,hostName:host,lang:langcode}; 2836 showProgress(); 2837 $.ajax({
2838 type: 'POST', 2839 url: "/app/savesearch", 2840 data: params, 2841 dataType: "text", 2842 success: function(resultData) { 2843 hideProgress(); 2844 var response=$.parseJSON(resultData); 2845 if(response.status==="false"){ 2846 $("#savesearch-error").text('Name Already Exists'); 2847 $('#searchText').css("border","solid red 1px"); 2848 }else{ 2849 $('#save_search').modal('hide'); 2850 var savesearchbtn=$("#savesearch-btn"); 2851 savesearchbtn.find('.save-text').html("Unsave this search"); 2852 savesearchbtn.find('#save_search_text').removeClass("icon-search_star_outline"); 2853 savesearchbtn.find('#save_search_text').addClass("icon-search_star"); 2854 savesearchbtn.removeAttr("data-target"); 2855 savesearchbtn.attr("data-target","#remove_search"); 2856 savesearchbtn.attr('data-searchid',response.searchId); 2857 savesearchbtn.find('.save-text').html("Unsave this search"); 2858 $("#save-announcement").text(name + " saved successfully."); 2859 successsaveSearch(name); 2860 2861 $('#searchText').css("border","solid #ccc 1px"); 2862 $("#savesearch-error").text(''); 2863 } 2864 }, 2865 error:function(e){ 2866 hideProgress(); 2867 } 2868 }); 2869 } 2870 } 2871 } 2872 function callSaveMethod(data) { 2873 $.ajax({
2874 url: "/app/savepageservlet", 2875 type: "get", 2876 data: data, 2877 success: function(response) { 2878 spanElement.addClass('icon-search_star'); 2879 spanElement.removeClass('icon-search_star_outline'); 2880 spanElement.attr('data-classname', 'icon-search_star'); 2881 $("#save-item-page").modal('hide'); 2882 window.location.reload(true); 2883 }, 2884 error: function(xhr) { 2885 hideProgress(); 2886 } 2887 }); 2888 } 2889 function gobutton() { 2890 if ($("#fromDate").length > 0){ 2891 if ($("#fromDate").val().trim().length > 0 || $("#toDate").val().trim().length > 0) { 2892 $(".go-btn").removeClass("disabled-btn"); 2893 } else { 2894 $(".go-btn").addClass("disabled-btn"); 2895 } 2896 } 2897 } 2898 function seeMore(keyelements){ 2899 $(keyelements).toggleClass('see-more'); 2900 if($(keyelements).hasClass('see-more')){ 2901 $(keyelements).parent().parent().find('.moreitem').addClass('hide'); 2902 $(keyelements).text('More...'); 2903 } else { 2904 $(keyelements).parent().parent().find('.moreitem').removeClass('hide'); 2905 $(keyelements).text('Less...'); 2906 } 2907 } 2908 function charFilter() { 2909 $(".character-filter-group .character-filter").each(function(){ 2910 var type = $(this).attr("type"); 2911 if (type != "playtext_total_character") { 2912 if ($(this).find(".selected").length > 0) { 2913 $(this).collapse("show"); 2914 } else { 2915 $(this).collapse("hide"); 2916 var currentTitle = $(this).prev().find('.glyphicon').attr("title"); 2917 $(this).prev().find('.glyphicon').removeClass("glyphicon-minus").addClass("glyphicon-plus").attr('title', currentTitle.replace("Expand", "Collapse")); 2918 } 2919 } 2920 }); 2921 } 2922 2923 function filterSessionUpdate(flag, url) { 2924 $.ajax({
2925 url:"/update-filter-session?param="+flag, 2926 type: "GET", 2927 success: function(response) { 2928 window.location.href=url; 2929 } 2930 }); 2931 } 2932 2933 function fullAccessFilterSessionUpdate(flag, url) { 2934 $.ajax({ 2935 url:"/update-filter-session?param="+flag, 2936 type: "GET", 2937 success: function(response) { 2938 window.location.href=url; 2939 } 2940 }); 2941 } 2942 2943 function openAccessFilterSessionUpdate(flag, url) { 2944 $.ajax({ 2945 url:"/update-open-access-filter-session?openaccess="+flag, 2946 type: "GET", 2947 success: function(response) { 2948 window.location.href=url; 2949 } 2950 }); 2951 } 2952 2953 function removeBubbleFilter(key,cookiename,itemname,url){ 2954 var vars = url.split("&"); 2955 for (var i = 0; i < vars.length; i++) { 2956 var pair = vars[i].split("="); 2957 if (pair[0].toLowerCase() == key.toLowerCase()) { 2958 var newitems = []; 2959 var selectitems = pair[1].split(','); 2960 for (var j = 0; j < selectitems.length; j++) { 2961 if (decodeURIComponent(selectitems[j]).toLowerCase() != itemname.toLowerCase()) { 2962 newitems.push(selectitems[j]); 2963 } 2964 } 2965 if(newitems.length>0) { 2966 vars[i] = pair[0] + "=" + newitems.join(','); 2967 }else{ 2968 vars[i]=''; 2969 } 2970 } 2971 } 2972 var arr = jQuery.grep(vars, function( a ) { 2973 return a !== key && a!=''; 2974 }); 2975 url = arr.join('&'); 2976 return url; 2977 } 2978 2979 function removeFilters(key,url){ 2980 var params=url.split("?"); 2981 if(params[1].length>0) { 2982 var vars = params[1].split('&'); 2983 var newitems = []; 2984 for (var i = 0; i < vars.length; i++) { 2985 var pair = vars[i].split("="); 2986 if (pair[0].toLowerCase() != key.toLowerCase()) { 2987 newitems.push(vars[i]); 2988 } 2989 } 2990 return params[0]+'?'+newitems.join('&'); 2991 } 2992 return url; 2993 } 2994 2995 function getUpdatedFacetsParams(string,key){ 2996 var list=string.split(','); 2997 var updatelist=[]; 2998 for (var i = 0; i < list.length; i++) { 2999 if (list[i].trim().toLowerCase() != key.toLowerCase()) { 3000 updatelist.push(list[i]); 3001 } 3002 } 3003 updatelist.push(key); 3004 return updatelist.join(','); 3005 } 3006 3007 function isUrlParametersExists(url){ 3008 var params=url.split('?'); 3009 if(params.length>0){ 3010 if(params[1].length==0){ 3011 return false; 3012 } 3013 } 3014 return true; 3015 } 3016 function bindCollapseEvents() { 3017 $('.search_right').find(".collapse").on("shown.bs.collapse", function () { 3018 var currentTitle = $(this).parent().find(".glyphicon-plus").attr("title"); 3019 $(this).parent().find(".glyphicon-plus").removeClass("glyphicon-plus").addClass("glyphicon-minus").attr('title', currentTitle.replace("Collapse", "Expand")); 3020 $(this).parent().find(".icon-folder").addClass("icon-active"); 3021 var dataClass = $(this).parent().find('#img-icon').attr('data-classname'); 3022 $(this).parent().find('#img-icon').addClass(dataClass); 3023 $(this).parent().find('.img-icon.e5').attr("tabindex", "0"); 3024 searchaccordianaction(); 3025 }).on("hidden.bs.collapse", function () { 3026 var currentTitle = $(this).parent().find(".glyphicon-minus").attr("title"); 3027 $(this).parent().find(".glyphicon-minus").removeClass("glyphicon-minus").addClass("glyphicon-plus").attr('title', currentTitle.replace("Expand", "Collapse")); 3028 $(this).parent().find(".icon-folder").removeClass("icon-active"); 3029 var dataClass = $(this).parent().find('#img-icon').attr('data-classname'); 3030 $(this).parent().find('#img-icon').removeClass(dataClass); 3031 $(this).parent().find('.img-icon.e5').attr("tabindex", "-1"); 3032 searchaccordianaction(); 3033 }); 3034 3035 accordianToggleDataLayerEvent(); 3036 expandORcollapseonKey(); 3037 appendSearchedText(); 3038 appendsearchwithintext(); 3039 } 3040 3041 function expandORcollapseonKey() 3042 { 3043 $('.panel-title .glyphicon').on('keyup', function (e) { 3044 if (e.keyCode == 13) { 3045 $(this).trigger('click'); 3046 } 3047 });
3048 } 3049 3050 function appendSearchedText() { 3051 var searchtext = `` 3052 var ariatext = searchtext; 3053 if(searchtext.startsWith("\"") && searchtext.endsWith("\"")){ 3054 ariatext= searchtext.slice(1, searchtext.length - 1); 3055 } 3056 if(searchtext != ""){ 3057 $(".filtered_list").find('ul').prepend(`<li data-itemid="${ariatext}"> <span class="sr-only">applied </span>` + 3058 "Search term: " + searchtext + 3059 `<span><button class='filter-close-search' name='searched' aria-label="Remove Applied Searched term ${ariatext}">` + 3060 `<svg class="close-icon" width="24" height="24" viewBox="0 0 32 32" > ` + 3061 `<circle cx="16" cy="16" r="15" /> ` + 3062 ` <line x1="10" y1="10" x2="22" y2="22" /> <line x1="22" y1="10" x2="10" y2="22" /> </svg></button></span></li>`); 3063 } 3064 } 3065 3066 function appendsearchwithintext() { 3067 const urlParams = new URLSearchParams(window.location.search); 3068 var searchwithintext = urlParams.get('sw'); 3069 var ariatext = searchwithintext; 3070 if (searchwithintext && searchwithintext.trim() !== "") { 3071 if(searchwithintext.startsWith("\"") && searchwithintext.endsWith("\"")){ 3072 ariatext= searchwithintext.slice(1, searchwithintext.length - 1); 3073 } 3074 $('#searchwithinresults_searchbox').val(decodeURIComponent(searchwithintext)); 3075 $(".filtered_list").find('ul').append( 3076 `<li data-itemid="${ariatext}"> <span class="sr-only">applied </span>` + 3077 "Search term: " + searchwithintext + 3078 `<span><button class='filter-close-search-within' name='searched' aria-label="Remove Applied Searched term ${ariatext}">`+ 3079 `<svg class="close-icon" width="24" height="24" viewBox="0 0 32 32" > ` + 3080 `<circle cx="16" cy="16" r="15" /> ` + 3081 ` <line x1="10" y1="10" x2="22" y2="22" /> <line x1="22" y1="10" x2="10" y2="22" /> </svg></button></span></li>`); 3082 } 3083 } 3084 3085 function accordianToggleDataLayerEvent() 3086{ 3087 var accordianName; 3088 var actionName; 3089 var open_or_close; 3090$('.search_left_accordian .glyphicon').on('click', function(e){ 3091 accordianName = $(this).parent().text().split("(")[0].trim(); 3092 accordianName = accordianName?accordianName:"search results listing"; 3093 actionName = $(this).hasClass('glyphicon-minus'); 3094 3095 if(actionName === true) 3096 { 3097 open_or_close = 'Close'; 3098 } 3099 else if(actionName === false) 3100 { 3101 open_or_close = 'Open'; 3102 } 3103 3104 dataLayer.push({ 3105 'event' : 'accordion_toggle', 3106 'accordion_name' : accordianName, 3107 'action' : open_or_close 3108 }); 3109 3110 }); 3111} 3112 3113 function searchaccordianaction() { 3114 var isexpanded = false; 3115 var hideDetails = $('#search-hidedetails').val(); 3116 var showDetails = $('#search-showdetails').val(); 3117 $('.cusAccordMob').find('.panel-collapse').each(function () { 3118 if ($(this).hasClass('in')) { 3119 isexpanded = true; 3120 } 3121 }); 3122 if (isexpanded) { 3123 $('#searchres-hidedet').find('span').text(hideDetails); 3124 } else { 3125 $('#searchres-hidedet').find('span').text(showDetails); 3126 } 3127 } 3128 function searchfilteraccordianaction() { 3129 var isexpanded = false; 3130 var hideAll = $('#filter-hideall').val(); 3131 var showAll = $('#filter-showall').val(); 3132 $('.refine-section').find('.panel-collapse').each(function () { 3133 if ($(this).hasClass('in')) { 3134 isexpanded = true; 3135 } 3136 }); 3137 if (isexpanded) { 3138 $('#filter-hide-all-btn').text(hideAll); 3139 $('#filter-hide-all-btn').attr("aria-label", "Expand All Filters").attr("aria-live", "polite"); 3140 } else { 3141 $('#filter-hide-all-btn').text(showAll); 3142 $('#filter-hide-all-btn').attr("aria-label", "Collapse All Filters").removeAttr("aria-polite"); 3143 } 3144 } 3145 function filterViewmore() { 3146 $('.refine-section .search_left_accordian, .character-filter-group .character-filter').each(function() { 3147 if (!$(this).hasClass('character-filter-group')) { 3148 var moreText = $('#more-text').val(); 3149 if ($(this).find('ul .panel-heading, li').length > 5) { 3150 if ($(this).hasClass('character-filter')) { 3151 $(this).find('ul').append('<div><a href="javascript:;" id="flt_viewmore">'+moreText+'</a></div>'); 3152 }else { 3153 $(this).find('.panel-default').find('.panel-collapse').first().append('<div><a href="javascript:;" id="flt_viewmore">'+moreText+'</a></div>'); 3154 } 3155 $(this).find('ul .panel-heading, li').each(function(index) { 3156 if (index > 4) { 3157 $(this).hide(); 3158 if ($(this).hasClass('panel-heading')) { 3159 $(this).next().hide(); 3160 } 3161 } 3162 }); 3163 } 3164 } 3165 }); 3166 } 3167 function bindSearchEvents() { 3168 ht=$("#hdntaxonomy"); 3169 hc=$("#hdncontenttypes"); 3170 if(taxonomytext.length>0){ 3171 ht.val(taxonomytext); 3172 } else { 3173 ht.empty(); 3174 } 3175 if(contenttypetext.length>0){ 3176 hc.val(contenttypetext); 3177 } else { 3178 hc.val(''); 3179 } 3180 3181 3182 3183 $('#alert_me_chk').on('keydown', function (e) { 3184 if (e.key === 'Enter') { 3185 e.preventDefault(); 3186 $(this).prop('checked', !$(this).prop('checked')); 3187 } 3188 });
3189 3190 3191 3192 3193 $(document.body).on("click","#save-search",function() { 3194 saveSearch(); 3195 }); 3196 $("#save_search").on("show.bs.modal", function () { 3197 $('#searchText').val(searchtext); 3198 $('#alert_me_chk').prop('checked', false); 3199 if($("#searchText").val().trim().length == 0) { 3200 $("#save-search").addClass('disabled-btn'); 3201 } else { 3202 $("#save-search").removeClass('disabled-btn'); 3203 } 3204 }); 3205 3206 3207 3208 $('#searchwithinresults_searchbox').on('keyup', function (e) { 3209 var keycode = (e.keyCode ? e.keyCode :e.which); 3210 if (keycode == '13') { 3211 if (!$('#searchwithinresults_searchbtn').hasClass('disabled-btn')) { 3212 handleSearchWithin(); 3213 } 3214 } 3215 }); 3216 3217 $('#searchwithinresults_searchbox').on('input', function (e) { 3218 if ($(this).val().length > 0) { 3219 $('#searchwithinresults_searchbtn').removeClass('disabled-btn'); 3220 } else { 3221 $('#searchwithinresults_searchbtn').addClass('disabled-btn'); 3222 } 3223 }); 3224 3225 if ($('#searchwithinresults_searchbox').length > 0) { 3226 if ($('#searchwithinresults_searchbox').val().length > 0) { 3227 $('#searchwithinresults_searchbtn').removeClass('disabled-btn'); 3228 } else { 3229 $('#searchwithinresults_searchbtn').addClass('disabled-btn'); 3230 } 3231 } 3232 const urlParams = new URLSearchParams(window.location.search); 3233 const searchWithinValue = urlParams.get('sw'); 3234 if (searchWithinValue) { 3235 $('#searchwithinresults_searchbox').val(decodeURIComponent(searchWithinValue)); 3236 } 3237 $("#searchwithinresults_searchbtn").click(function () { 3238 var searchwithinText = $("#searchwithinresults_searchbox").val(); 3239 if (searchwithinText.length > 0) { 3240 searchdata.sw = searchwithinText; 3241 handleSearchWithin(); 3242 } 3243 3244 }); 3245 3246 function handleSearchWithin() { 3247 var searchwithinbox = $('#searchwithinresults_searchbox'); 3248 var intext = $.trim(searchwithinbox.val()); 3249 var url = window.location.href; 3250 var encodedIntext = encodeURIComponent(intext); 3251 3252 if (url.includes('sw=')) { 3253 // If 'sw=' is present, append the new search term 3254 url = url.replace(/(sw=)[^\&]*/, '$1' + encodedIntext); 3255 } else { 3256 if (url.includes('?')) { 3257 url += '&sw=' + encodedIntext; 3258 } else { 3259 url += '?sw=' + encodedIntext; 3260 } 3261 } 3262 3263 window.location.href = url; 3264 } 3265 3266 $(document.body).on('click', '#save_search_close', function() { 3267 $("#savesearch-error").text(''); 3268 }); 3269 $(document.body).on("click","#removesearch",function() { 3270 $("#savesearch-error").text(''); 3271 var savesearchbtn=$("#savesearch-btn"); 3272 var searchid = savesearchbtn.attr('data-searchid'); 3273 var params={id:searchid,actionType:"remove"}; 3274 showProgress(); 3275 $.ajax({
3276 type: 'POST', 3277 url: "/app/savesearch", 3278 data: params, 3279 dataType: "text", 3280 success: function(resultData) { 3281 hideProgress(); 3282 var response=$.parseJSON(resultData); 3283 if(response.status=="true"){ 3284 $(this).attr('data-dismiss','modal'); 3285 savesearchbtn.find('.save-text').html(' Save this Search '); 3286 savesearchbtn.find('#save_search_text').addClass("icon-search_star_outline"); 3287 savesearchbtn.removeClass('active'); 3288 savesearchbtn.removeAttr("data-target"); 3289 savesearchbtn.attr("data-target","#save_search"); 3290 savesearchbtn.find('.close-btn').focus(); 3291 3292 } 3293 }, 3294 error: function(e){ 3295 hideProgress(); 3296 } 3297 }); 3298 }); 3299 3300 $(document.body).on("click","#close-search",function() { 3301 var savesearchbtn = $("#savesearch-btn"); 3302 savesearchbtn.focus(); 3303 }); 3304 3305 $('#remove_search').on('shown.bs.modal', function () { 3306 $('#savesearch-modal-su-close-btn').focus(); 3307 }); 3308 3309 3310 $(document.body).on('keyup','#searchText',function(event){ 3311 $('#searchText').css("border","solid #ccc 1px"); 3312 $("#savesearch-error").text(''); 3313 if (event.keyCode == 13) { 3314 saveSearch(); 3315 } 3316 }); 3317 $(document.body).on('click','#savesearch-modal-close-btn',function(){ 3318 $('#searchText').css("border","solid #ccc 1px"); 3319 $("#savesearch-error").text(''); 3320 //$(this).parent().attr('data-dismiss','modal'); 3321 }); 3322 $(document).on('click mousedown', '.search_right .text-truncation-outer', function(e) { 3323 if (e.type === "click" || e.which === 2 || e.which === 3) { 3324 $.cookie('searchitemflag', 'true'); 3325 } 3326 }); 3327 truncateText(); 3328 $('.addfoldername').on('keyup', function(e){ 3329 $("#errormsg").addClass('hide'); 3330 if($(this).val()) { 3331 $('#save-btn').removeClass('disabled-btn'); 3332 } else { 3333 $('#save-btn').addClass('disabled-btn'); 3334 } 3335 var keyPressed = e.keyCode; 3336 if (keyPressed == 13) { 3337 $("#save-btn").click(); 3338 } 3339 }); 3340 $('.addfoldername').on('keydown', function(e){ 3341 var keyPressed = e.keyCode; 3342 if (keyPressed == 13) { 3343 e.preventDefault(); 3344 } 3345 }); 3346 $(document).on('click', '.icon-search_star_outline', function(event) { 3347 if ($(this).parent().hasClass('icon-click')) { 3348 event.stopPropagation(); 3349 saveLink = $(this).parent().find('.search-title').attr('href').split('&st=')[0]; 3350 documentId=$.linkNewParam('docid',saveLink); 3351 var tocid=$.linkNewParam('tocid',saveLink); 3352 //documentId = saveLink.split('=')[1]; 3353 if(tocid.length>0 && !~saveLink.indexOf('video') && !~saveLink.indexOf('audio')){ 3354 documentId=tocid; 3355 } 3356 $("#subscription-modal").modal('show'); 3357 } 3358 }); 3359 $(document).on('click', '.icon-search_star', function(event) { 3360 if ($(this).parent().hasClass('icon-click')) { 3361 event.stopPropagation(); 3362 $("#delete-folder-common").modal('show'); 3363 saveLink = $(this).parent().find('.search-title').attr('href'); 3364 documentId = saveLink.split('=')[1]; 3365 dataClass = $(this).attr('data-classname'); 3366 spanElement = $(this); 3367 } 3368 }); 3369 $("#deletefolder").on('click', function(){ 3370 var link; 3371 link = saveLink.split('&st=')[0]; 3372 link=link.replaceAll('&','~'); 3373 if(link.length>0){ 3374 showProgress(); 3375 var xmlreq = new XMLHttpRequest(); 3376 var actionType="delete"; 3377 xmlreq.onreadystatechange = function() { 3378 hideProgress(); 3379 if ( xmlreq.readyState == 4 && xmlreq.status == 200 ) { 3380 $("#delete-folder-common").modal("hide"); 3381 spanElement.addClass('icon-search_star_outline'); 3382 spanElement.removeClass('icon-search_star'); 3383 spanElement.attr('data-classname', 'icon-search_star_outline'); 3384 } 3385 }; 3386 var url = "/app/savepageservlet?contentId="+documentId+"&actionType="+actionType+"&link="+link+"&product="+productname; 3387 xmlreq.open("GET",url,true); 3388 xmlreq.send(); 3389 } 3390 }); 3391 $("#save-item-page").on("show.bs.modal", function (e) { 3392 $('.addfoldername').val('').parent().addClass('hide'); 3393 $('#save-item-page').find('.selectpicker').selectpicker('val', ''); 3394 $('#save-btn').addClass('disabled-btn'); 3395 }); 3396 $( "#save-btn" ).on('click',function() { 3397 if(!$(this).hasClass('disabled-btn')){ 3398 var actionType="save"; 3399 var selectedfolder=$('#save-item-page').find('.dropdown-toggle').attr('title'); 3400 var selectedfolderid=''; 3401 selectedfolderid = $('#save-item-page').find('.selectpicker').find('option:selected').attr('label'); 3402 titlename = encodeURIComponent(titlename); 3403 var foldername = $(".addfoldername").val(); 3404 var params = {name:foldername,description:'',product:productname,actionType:"save"}; 3405 var data = { 3406 contentId: documentId, 3407 titlename: titlename, 3408 description: titledescription, 3409 actionType: actionType, 3410 imageUrl:imageUrl, 3411 folder:selectedfolderid, 3412 authorname:authorname, 3413 xmlSource:xmlSource, 3414 contentType:contentType, 3415 product:productname, 3416 link:saveLink, 3417 imprintvalue:imprintvalue, 3418 titlevalue:titlevalue, 3419 publicationYear:publicationYear, 3420 referencingStyle:referencingStyle, 3421 jurisdiction:jurisdiction, 3422 edition:edition, 3423 practicearea:practicearea 3424 }; 3425 if (selectedfolderid == '-1') { 3426 showProgress(); 3427 $.ajax({
3428 url: "/app/foldermanagement", 3429 type: "POST", 3430 data: params, 3431 success: function(response) { 3432 if (response && response != "-1") { 3433 data.folder = response; 3434 callSaveMethod(data); 3435 } else { 3436 hideProgress(); 3437 $("#errormsg").text('Folder name already exists'); 3438 $('#errormsg').removeClass('hide'); 3439 } 3440 }, 3441 error: function(xhr) { 3442 hideProgress(); 3443 } 3444 }); 3445 } else { 3446 callSaveMethod(data); 3447 } 3448 } 3449 }); 3450 $('#save-item-page').find('#folder-select').on('change', function() { 3451 selectedFolder = $(this).val(); 3452 if (selectedFolder == '-1') { 3453 $('.addfoldername').parent().removeClass('hide'); 3454 $('#errormsg').html(""); 3455 } else { 3456 $('.addfoldername').val('').parent().addClass('hide'); 3457 if(selectedFolder.trim().length == 0){ 3458 $('#save-btn').addClass('disabled-btn'); 3459 } else { 3460 $('#save-btn').removeClass('disabled-btn'); 3461 } 3462 } 3463 }); 3464 $('.more_result').on('click', function() { 3465 var lessText = $(this).attr('less-text'); 3466 if ($(this).attr('type') == 'more'){ 3467 $(this).parent().find('.show_more').removeClass('hide'); 3468 $(this).attr('type', 'less'); 3469 } else { 3470 $(this).parent().find('.show_more').addClass('hide'); 3471 $(this).attr('type', 'more'); 3472 } 3473 $(this).attr('less-text', $(this).text()); 3474 $(this).text(lessText); 3475 }); 3476 $('#more-image-page').on('click', function(){ 3477 var imageSubject = $(this).attr('data-image'); 3478 var url = window.location.href; 3479 /*if (url.split('&su=').length > 1 && url.split('&su=')[1]) { 3480 url = url.split('&su=').join('&su='+imageSubject+','); 3481 } else { 3482 url = url + '&su=' + imageSubject; 3483 }*/ 3484 if (~url.indexOf('&size=')){ 3485 url = url.split('&size=20').join(''); 3486 } 3487 if (~url.indexOf('&page=')){ 3488 url = url.split('&page=0').join(''); 3489 } 3490 url=url+"&size=20"; 3491 url=url+"&itype=image"; 3492 window.location.href = url; 3493 }); 3494 $('.dictionary-more-text').on('click', function(){ 3495 var moreText = $(this).attr('moretext'); 3496 var lessText = $(this).attr('lesstext'); 3497 if($(this).text() == moreText) { 3498 $('.search_res_acc[searchtype="dictionary"]').removeClass('hide'); 3499 $(this).text(lessText); 3500 } else { 3501 $('.search_res_acc[searchtype="dictionary"]').addClass('hide'); 3502 $(this).text(moreText); 3503 } 3504 }); 3505 $('#date_filter #fromDate').on('keyup',function(e){ 3506 $('#hdnfromdate').val($(this).val()); 3507 $("#fromDate_error").html(''); 3508 $("#toDate_error").html(''); 3509 $("#fromDate_error").addClass("hide"); 3510 $("#toDate_error").addClass("hide"); 3511 var keycode = (e.keyCode ? e.keyCode :e.which); 3512 if (keycode == '13') { 3513 $(".go-btn").click(); 3514 } 3515 }); 3516 $('#date_filter #toDate').on('keyup',function(e){ 3517 $('#hdntodate').val($(this).val()); 3518 $("#fromDate_error").html(''); 3519 $("#toDate_error").html(''); 3520 $("#fromDate_error").addClass("hide"); 3521 $("#toDate_error").addClass("hide"); 3522 var keycode = (e.keyCode ? e.keyCode :e.which); 3523 if (keycode == '13') { 3524 $(".go-btn").click(); 3525 } 3526 }); 3527 gobutton(); 3528 $('#date_filter #fromDate, #date_filter #toDate').on('input', function (e) { 3529 gobutton(); 3530 }); 3531 $('.see-more').click('click', function(){ 3532 seeMore(this); 3533 }); 3534 3535 $('.see-more').on('keyup', function(event) { 3536 if (event.keyCode == 13) { 3537 if($(this).hasClass('see-more')){ 3538 } else { 3539 $(this).parent().parent().find('li:nth-child(6)').find('.link').focus(); 3540 } 3541 } 3542 }); 3543 3544 $('.sub-category-head').on("keydown click", function (e) { 3545 console.log("e.key:: " + e.key, " e.type:: " + e.type); 3546 3547 if (e.type === "keydown" && e.key === " ") { 3548 e.preventDefault(); 3549 $(this).click(); 3550 return; 3551 } 3552 3553 if (e.type === "keydown" && (e.key === "Enter" || e.keyCode === 13 || (e.key && e.key.toLowerCase() === "enter"))) { 3554 e.preventDefault(); 3555 $(this).click(); 3556 return; 3557 } 3558 3559 if (e.type === "click") { 3560 e.stopPropagation(); 3561 if((e.currentTarget.className.indexOf('sub-category-head')>-1) &&(e.target.className.indexOf('sub-category-head-span')<0)){ 3562 if(!$(this).hasClass('selected')){ 3563 var url=window.location.href; 3564 var category=$(this).parents('.panel').find('.accordion-toggle').children('label').attr('name').trim(); 3565 var itemid=$(this).attr('data-itemid');
3566 var title=$(this).html().trim(); 3567 if(title!='More...' && title!='Less...') { 3568 if (category == 'taxonomy') { 3569 var currenttaxonomy = ht.val(); 3570 if (currenttaxonomy.length > 0) { 3571 var t = getUpdatedFacetsParams(currenttaxonomy, itemid); 3572 if (t.length > 0) { 3573 ht.val(t); 3574 url = url.split('?')[0] + '?' + changeQueryVariable('su', t, url.split('?')[1]); 3575 url = url.replace('page=0', 'page=0'); 3576 } 3577 } else { 3578 url = url + '&su=' + itemid; 3579 url = url.replace('page=0', 'page=0'); 3580 } 3581 } 3582 if ($('#more-image-page').length > 0){ 3583 var moreitem = $('#more-image-page').attr('data-image'); 3584 if(moreitem && moreitem.toLowerCase() == itemid.toLowerCase()) { 3585 url = url.replace('&size=20', ''); 3586 } 3587 } 3588 showProgress(); 3589 $.cookie('type', ''); 3590 window.location.href = url; 3591 } 3592 } 3593 } 3594 } 3595 }); 3596 3597 $('.sws-sub-category-head').on('click',function(e){ 3598 if((e.currentTarget.className.indexOf('sws-sub-category-head')>-1) &&(e.target.className.indexOf('sws-sub-category-head-span')<0)){ 3599 if(!$(this).hasClass('selected')){ 3600 var url=window.location.href; 3601 var category=$(this).parents('.panel').find('.accordion-toggle').children('label').attr('name').trim(); 3602 var itemid=$(this).attr('data-itemid'); 3603 var title=$(this).html().trim(); 3604 if(title!='More...' && title!='Less...') { 3605 if (category == 'taxonomy') { 3606 var currenttaxonomy = ht.val(); 3607 if (currenttaxonomy.length > 0) { 3608 var t = getUpdatedFacetsParams(currenttaxonomy, itemid); 3609 if (t.length > 0) { 3610 ht.val(t); 3611 url = url.split('?')[0] + '?' + changeQueryVariable('sws', t, url.split('?')[1]); 3612 url = url.replace('page=0', 'page=0'); 3613 } 3614 } else { 3615 url = url + '&sws=' + itemid; 3616 url = url.replace('page=0', 'page=0'); 3617 } 3618 } 3619 if ($('#more-image-page').length > 0){ 3620 var moreitem = $('#more-image-page').attr('data-image'); 3621 if(moreitem && moreitem.toLowerCase() == itemid.toLowerCase()) { 3622 url = url.replace('&size=20', ''); 3623 } 3624 } 3625 showProgress(); 3626 $.cookie('type', ''); 3627 window.location.href = url; 3628 } 3629 } 3630 } 3631 }); 3632 3633 $('.sub-category').on('click', function(){ 3634 if(!$(this).hasClass('selected')) { 3635 var url=window.location.href; 3636 var category=$(this).parents('.panel').find('.accordion-toggle').children('label').attr('name').trim(); 3637 var title=$(this).html().trim(); 3638 var itemid=$(this).attr('data-itemid'); 3639 if(title!='More...' && title!='Less...') { 3640 // title=title.substring(0,title.indexOf('(')).trim(); 3641 if (category == 'taxonomy') { 3642 var currenttaxonomy = ht.val(); 3643 if (currenttaxonomy.length > 0) { 3644 var t = getUpdatedFacetsParams(currenttaxonomy, itemid); 3645 if (t.length > 0) { 3646 ht.val(t); 3647 url = url.split('?')[0] + '?' + changeQueryVariable('su', t, url.split('?')[1]); 3648 url = url.replace('page=0', 'page=0'); 3649 } 3650 } else { 3651 url = url + '&su=' + itemid; 3652 url = url.replace('page=0', 'page=0'); 3653 } 3654 } 3655 if (category == 'contenttype') { 3656 var currentcontenttypes = hc.val(); 3657 if (currentcontenttypes.length > 0) { 3658 var c = getUpdatedFacetsParams(currentcontenttypes, $(this).attr('name')); 3659 if (c.length > 0) { 3660 hc.val(c); 3661 url = url.split('?')[0] + '?' + changeQueryVariable('ct', c, url.split('?')[1]); 3662 url = url.replace('page=0', 'page=0'); 3663 } 3664 } else { 3665 if(isUrlParametersExists(url)) { 3666 url = url + '&ct=' + $(this).attr('name'); 3667 }else{ 3668 url = url + 'ct=' + $(this).attr('name'); 3669 } 3670 url = url.replace('page=0', 'page=0'); 3671 } 3672 } 3673 showProgress(); 3674 $.cookie('type', ''); 3675 window.location.href = url; 3676 } 3677 } 3678 }); 3679 $('.onmoreclick').on('click',function(){ 3680 var morevalue = true; 3681 }); 3682 $('.child-sub-category').on('click', function(){ 3683 if(!$(this).hasClass('selected')) { 3684 var category=$(this).parents('.panel').find('.accordion-toggle').children('label').attr('name').trim(); 3685 var hdncategory=$('#hdncategorytype').val();
3686 var title=$(this).html().trim(); 3687 title=title.substring(0,title.indexOf('(')); 3688 // var text=$(this).attr('label').trim()+':'+title; 3689 var currenttaxonomy=ht.val(); 3690 if(currenttaxonomy.length>0) { 3691 var t = getUpdatedFacetsParams(currenttaxonomy, title); 3692 if (t.length > 0) { 3693 ht.val(t); 3694 url=url.split('?')[0]+'?'+changeQueryVariable('su',t,url.split('?')[1]); 3695 }else{ 3696 if(isUrlParametersExists(url)) { 3697 url = url + '&su=' + title; 3698 }else{ 3699 url = url + 'su=' + title; 3700 } 3701 } 3702 } 3703 } 3704 }); 3705 $(".go-btn").on("click",function(){ 3706 if(!$(this).hasClass('disabled-btn')){ 3707 $("#fromDate_error").html(''); 3708 $("#toDate_error").html(''); 3709 $("#fromDate_error").addClass("hide"); 3710 $("#toDate_error").addClass("hide"); 3711 $("#fromDate").addClass("input-success-field"); 3712 $("#toDate").addClass("input-success-field"); 3713 var fromDate=parseInt($("#fromDate").val()); 3714 var toDate=parseInt($("#toDate").val()); 3715 var fromCount=$("#fromDate").val().length; 3716 var toCount=$("#toDate").val().length; 3717 var isValid =true; 3718 if(fromCount > 0 && fromCount < 4){ 3719 $("#fromDate_error").removeClass("hide"); 3720 $("#fromDate_error").html("Enter four numerical characters"); 3721 $("#fromDate").addClass("input-err-field"); 3722 $("#fromDate").focus(); 3723 isValid = false; 3724 } else if(fromCount > 4){ 3725 $("#fromDate_error").removeClass("hide"); 3726 $("#fromDate_error").html("Enter valid year"); 3727 $("#fromDate").addClass("input-err-field"); 3728 $("#fromDate").focus(); 3729 isValid = false; 3730 }else if(toCount > 0 && toCount < 4){ 3731 $("#toDate_error").removeClass("hide"); 3732 $("#toDate_error").html("Enter four numerical characters"); 3733 $("#toDate").addClass("input-err-field"); 3734 $("#toDate").focus(); 3735 isValid = false; 3736 } else if(toCount > 4){ 3737 $("#toDate_error").removeClass("hide"); 3738 $("#toDate_error").html("Enter valid year"); 3739 $("#toDate").addClass("input-err-field"); 3740 $("#toDate").focus(); 3741 isValid = false; 3742 }else if(fromCount == 0 && toCount>0){ 3743 $("#fromDate_error").removeClass("hide"); 3744 $("#fromDate_error").html("Enter valid year"); 3745 $("#fromDate").addClass("input-err-field"); 3746 $("#fromDate").focus(); 3747 isValid = false; 3748 }else if(toCount == 0 && fromCount>0){ 3749 $("#toDate_error").removeClass("hide"); 3750 $("#toDate_error").html("Enter valid year"); 3751 $("#toDate").addClass("input-err-field"); 3752 $("#toDate").focus(); 3753 isValid = false; 3754 }else if(fromCount == 0 && toCount == 0){ 3755 $("#toDate_error").removeClass("hide"); 3756 $("#toDate_error").html("Enter From and To years"); 3757 $("#toDate").addClass("input-err-field"); 3758 $("#toDate").focus(); 3759 isValid = false; 3760 }else if(fromDate > toDate){ 3761 $("#fromDate_error").removeClass("hide"); 3762 $("#fromDate_error").html("From year should be less than To year"); 3763 $("#fromDate").addClass("input-err-field"); 3764 $("#fromDate").focus(); 3765 isValid = false; 3766 } 3767 if(isValid){ 3768 if($('#fromDate').val() != ''){ 3769 $('#hdnfromdate').val($('#fromDate').val()); 3770 var fyear = $('#fromDate').val(); 3771 $('#hdnfromdate').val(fyear); 3772 } 3773 if($('#toDate').val() != ''){ 3774 $('#hdntodate').val($('#toDate').val()); 3775 var tyear = $('#toDate').val(); 3776 $('#hdntodate').val(tyear); 3777 } 3778 var url=window.location.href; 3779 if($.urlParam('df').length==0) { 3780 url = url + '&Df=' + fromDate + '&Dt=' + toDate; 3781 }else { 3782 url = url.split('?')[0] + '?' + changeQueryVariable('Df', fromDate, url.split('?')[1]); 3783 url = url.split('?')[0] + '?' + changeQueryVariable('Dt', toDate, url.split('?')[1]); 3784 } 3785 showProgress(); 3786 $.cookie('type', ''); 3787 window.location.href=url; 3788 } 3789 3790 } 3791 }); 3792 $('#clear_all').on('click',function(){ 3793 var url=window.location.href; 3794 if($.urlParam('su').length>0){ 3795 url=removeFilters('su',url); 3796 } 3797 if($.urlParam('ct').length>0){ 3798 url=removeFilters('ct',url); 3799 } 3800 if($.urlParam('df').length>0 || ($.urlParam('dt').length>0)){ 3801 url=removeFilters('df',url); 3802 url=removeFilters('dt',url); 3803 } 3804 showProgress(); 3805 var paramlength=url.split('?')[1]; 3806 if(paramlength.length==0) { 3807 url=url+"any="; 3808 } 3809 window.location.href=url; 3810 }); 3811 $('.filter-close').on('click', function(){ 3812 var itemname=$(this).parent().parent().html().split('<span>')[0]; 3813 var itemid=$(this).parent().parent().attr('data-itemid'); 3814 var filtertype=$(this).attr('name'); 3815 var removableItems=$(this).attr('remove'); 3816 var removableValue=$(this).attr('remove-value'); 3817 var url=window.location.href; 3818 var resulturl=url.split('?'); 3819 if(filtertype.toLowerCase()=='su') { 3820 url=url.split('?')[0]+'?'+removeBubbleFilter('su','taxonomy',itemid,url.split('?')[1]); 3821 }else if(filtertype.toLowerCase()=='ct'){ 3822 url=url.split('?')[0]+'?'+removeBubbleFilter('ct','contenttype',itemid,url.split('?')[1]) 3823 }else if(filtertype.toLowerCase()=='df-dt') { 3824 url=removeFilters('df',url); 3825 url=removeFilters('dt',url); 3826 }else if(filtertype.toLowerCase()=='sws') { 3827 url=url.split('?')[0]+'?'+removeBubbleFilter('sws','searchwithinseries',itemid,url.split('?')[1]); 3828 }else if(filtertype.toLowerCase()=='bt') { 3829 url=url.split('?')[0]+'?'+removeBubbleFilter('bt','bookfilter',itemid,url.split('?')[1]); 3830 } 3831 if(removableItems && removableValue) { 3832 for (var i=0;i<removableItems.split('~').length;i++) { 3833 var removedItem=removableItems.split('~')[i]; 3834 var removedValue=removableValue.split('~')[i]; 3835 if(removedValue && removedItem) { 3836 url=url.split('&'+removedItem+'='+removedValue).join(''); 3837 } 3838 } 3839 } 3840 if(filtertype == 'filterSessionFlag'){ 3841 $('#content-access-filter').removeAttr("checked"); 3842 $.ajax({
3843 url:"/update-filter-session?param="+false, 3844 type: "GET", 3845 success: function(response) { 3846 } 3847 }); 3848 } 3849 3850 if(filtertype == 'fullAccessFilterSessionFlag'){ 3851 $('#content-access-filter').removeAttr("checked"); 3852 $.ajax({ 3853 url:"/update-filter-session?param="+false, 3854 type: "GET", 3855 success: function(response) { 3856 } 3857 }); 3858 } 3859 3860 if(filtertype == 'openAccessFilterSessionFlag'){ 3861 $('#open-access-filter').removeAttr("checked"); 3862 $.ajax({ 3863 url:"/update-open-access-filter-session?openaccess="+false, 3864 type: "GET", 3865 success: function(response) { 3866 } 3867 }); 3868 } 3869 showProgress(); 3870 var paramlength=url.split('?')[1]; 3871 url = url.replace('page=0', 'page=0'); 3872 if(paramlength.length==0){ 3873 url=url+"any="; 3874 } 3875 $.cookie('type', ''); 3876 window.location.href=url; 3877 }); 3878 3879 $(document).on('keypress', '.filter-close', function(e) { 3880 if (e.which === 13) { 3881 e.preventDefault(); 3882 $(this).click(); 3883 } 3884 }); 3885 3886 $('.filter-close-search').on('click', function() { 3887 removeFilter(); 3888 }); 3889 3890 $('.filter-close-search').on('keypress', function(e) { 3891 if (e.which === 13) { 3892 e.preventDefault(); 3893 removeFilter(); 3894 } 3895 }); 3896 3897 function removeFilter() { 3898 $(this).closest('li').remove(); 3899 var url = window.location.href; 3900 var urlParts = url.split('?'); 3901 var baseUrl = urlParts[0]; 3902 3903 var queryParams = urlParts[1] ? urlParts[1].split('&') : []; 3904 queryParams = queryParams.filter(function(param) { 3905 return !param.startsWith('any='); 3906 }); 3907 3908 var newUrl = baseUrl + (queryParams.length > 0 ? '?' + queryParams.join('&') : ''); 3909 newUrl += (queryParams.length > 0 ? '&' : '?') + 'any='; 3910 $.cookie('type', ''); 3911 window.location.href = newUrl; 3912 } 3913 3914 $('.filter-close-search-within').on('click', function() { 3915 removesearchWithinFilter(); 3916 }); 3917 3918 $('.filter-close-search-within').on('keypress', function(e) { 3919 if (e.which === 13) { 3920 e.preventDefault(); 3921 removesearchWithinFilter(); 3922 } 3923 }); 3924 3925 function removesearchWithinFilter() { 3926 $(this).closest('li').remove(); 3927 var url = window.location.href; 3928 var urlParts = url.split('?'); 3929 var baseUrl = urlParts[0]; 3930 3931 var queryParams = urlParts[1] ? urlParts[1].split('&') : []; 3932 queryParams = queryParams.filter(function(param) { 3933 return !param.startsWith('sw='); 3934 }); 3935 3936 var newUrl = baseUrl + (queryParams.length > 0 ? '?' + queryParams.join('&') : ''); 3937 $.cookie('type', ''); 3938 window.location.href = newUrl; 3939 } 3940 3941 $('#access-filter').on('click', function() { 3942 var url=window.location.href; 3943 filterSessionUpdate(this.checked,url); 3944 }); 3945 3946 $('#content-access-filter').on('click', function(e) { 3947 3948 var url = window.location.href; 3949 url = url.replace(/(&acc=oa|&acc=ca)/g, ""); 3950 3951 if($('#content-access-filter').is(':checked') == true){ 3952 url += "&acc=ca"; 3953 3954 } else { 3955 var url=window.location.href.replace("&acc=ca", ""); 3956 $.ajax({
3957 url:"/update-filter-session?param="+false, 3958 type: "GET", 3959 success: function(response) { 3960 } 3961 }); 3962 3963 } 3964 3965 if($('#open-access-filter').is(':checked') == true){ 3966 3967 $('#open-access-filter').removeAttr("checked"); 3968 $.ajax({ 3969 url:"/update-open-access-filter-session?openaccess="+false, 3970 type: "GET", 3971 success: function(response) { 3972 } 3973 }); 3974 } 3975 fullAccessFilterSessionUpdate(this.checked,url); 3976 3977 }).on("keyup", function(e){ 3978 if (e.keyCode == 13) { 3979 $(this).click(); 3980 } 3981 }); 3982 3983 3984 $('#open-access-filter').on('click', function() { 3985 3986 var url = window.location.href; 3987 3988 3989 url = url.replace(/(&acc=oa|&acc=ca)/g, ""); 3990 if($('#content-access-filter').is(':checked') == true){ 3991 $('#content-access-filter').removeAttr("checked"); 3992 $.ajax({
3993 url:"/update-filter-session?param="+false, 3994 type: "GET", 3995 success: function(response) { 3996 } 3997 }); 3998 } 3999 if($('#open-access-filter').is(':checked') == true){ 4000 url += "&acc=oa"; 4001 } else { 4002 4003 $.cookie("ContentAccessFilter",this.checked); 4004 } 4005 openAccessFilterSessionUpdate(this.checked,url); 4006 }).on("keyup", function(e){ 4007 if (e.keyCode == 13) { 4008 $(this).click(); 4009 } 4010 }); 4011 4012 $('.image-search-title p').each(function(){ 4013 var searchTitle = $(this).text(); 4014 var highLightContent = $(this).find('em').text(); 4015 if (searchTitle.length > 100) { 4016 $(this).html(searchTitle.substring(0,100).replace(highLightContent, '<em>' + highLightContent + '</em>') + "..."); 4017 } 4018 }); 4019 $(".image-search-div").on("keyup", function(e){ 4020 if (e.keyCode == 13) { 4021 window.location.href = $(this).find("a:first").attr('href'); 4022 } 4023 }); 4024 $('.search-image-title p').each(function(){ 4025 var searchTitle = $(this).text(); 4026 var highLightContent = $(this).find('em').text(); 4027 if (searchTitle.length > 100) { 4028 $(this).html(searchTitle.substring(0,100).replace(highLightContent, '<em>' + highLightContent + '</em>') + "..."); 4029 } 4030 }); 4031 $('.search-image-title,.search-image-link').on('keyup', function(e){ 4032 if(e.keyCode == 13){ 4033 e.preventDefault(); 4034 window.location = $(this).attr('href'); 4035 } 4036 }); 4037 var refine_section=$('.refine-section'); 4038 $('#filter-hide-all-btn').off('click').on('click', function () { 4039 var title = $(this).text(); 4040 var hideAll = $('#filter-hideall').val(); 4041 var showAll = $('#filter-showall').val(); 4042 if (title == hideAll) { 4043 refine_section.find('.accordion-toggle').addClass('collapsed').attr('aria-expanded', 'false'); 4044 refine_section.find('.panel-collapse').removeClass('in').attr('aria-expanded', 'false'); 4045 $(this).text(showAll).attr("aria-label", "Expand All Filters").removeAttr("aria-live"); 4046 refine_section.find('.glyphicon').each(function(){ 4047 var currentTitle=$(this).attr("title"); 4048 $(this).removeClass("glyphicon-minus").addClass("glyphicon-plus");//.attr('title', currentTitle.replace("Expand", "Collapse")); 4049 }); 4050 } else { 4051 refine_section.find('.accordion-toggle').removeClass('collapsed').removeAttr('aria-expanded'); 4052 refine_section.find('.panel-collapse').addClass('in').removeAttr('aria-expanded').css('height', 'auto'); 4053 $(this).text(hideAll).attr("aria-label", "Collapse All Filters").attr("aria-live", "polite"); 4054 refine_section.find('.glyphicon').each(function(){ 4055 var currentTitle=$(this).attr("title"); 4056 $(this).removeClass("glyphicon-plus").addClass("glyphicon-minus");//.attr('title', currentTitle.replace("Collapse", "Expand")); 4057 }); 4058 } 4059 }); 4060 refine_section.find(".panel-title .filter-button").on("keydown click", function (e) { 4061 console.log("e.key:: " + e.key, " e.type:: " + e.type); 4062 4063 if (e.type === "keydown" && e.key === " ") { 4064 e.preventDefault(); 4065 $(this).click(); 4066 return; 4067 } 4068 4069 if (e.type === "keydown" && (e.key === "Enter" || e.keyCode === 13 || (e.key && e.key.toLowerCase() === "enter"))) { 4070 e.preventDefault(); 4071 $(this).click(); 4072 return; 4073 } 4074 4075 if (e.type === "click") { 4076 var $button = $(this); 4077 e.stopPropagation(); 4078 var expanded = $button.attr("aria-expanded") === "true"; 4079 var $icon = $button.find(".glyphicon"); 4080 var $panel = $button.parents(".panel-heading").next(".panel-collapse"); 4081 var isExpanded = $icon.hasClass("glyphicon-minus"); 4082 4083 if (isExpanded) { 4084 $button.attr("aria-expanded", "false").attr("aria-live", "polite"); 4085 4086 $icon 4087 .removeClass("glyphicon-minus") 4088 .addClass("glyphicon-plus").attr("aria-live", "polite"); 4089 4090 $panel.removeClass("in").attr("aria-expanded", "false"); 4091 4092 $(this).parents(".panel-heading").next().find('.filter-button').each(function () { 4093 $(this).find('.glyphicon') 4094 .removeClass("glyphicon-minus") 4095 .addClass("glyphicon-plus").attr("aria-live", "polite"); 4096 }); 4097 4098 searchfilteraccordianaction(); 4099 4100 } else { 4101 4102 $button.attr("aria-expanded", "true").attr("aria-live", "polite"); 4103 4104 $icon 4105 .removeClass("glyphicon-plus") 4106 .addClass("glyphicon-minus").attr("aria-live", "polite"); 4107 4108 $panel.addClass("in").attr("aria-expanded", "true").attr("aria-live", "polite"); 4109 4110 $(this).parents(".panel-heading").next().find('.filter-button').each(function () { 4111 $(this).find('.glyphicon') 4112 .removeClass("glyphicon-plus") 4113 .addClass("glyphicon-minus").attr("aria-live", "polite"); 4114 }); 4115 4116 searchfilteraccordianaction(); 4117 } 4118 } 4119 }); 4120 /*refine_section.find(".panel-title span").click(function (e) { 4121 if ($(this).hasClass('glyphicon-minus')) { 4122 e.stopPropagation(); 4123 $(this).removeClass("glyphicon-minus").addClass("glyphicon-plus").attr('title', $(this).attr('title').replace("Expand","Collapse")); 4124 $(this).parents(".panel-heading").next().removeClass('in').attr('aria-expanded', 'false'); 4125 $(this).parents(".panel-heading").find('.accordion-toggle').attr('title', 'Collapse'); 4126 //$(this).find('.glyphicon').removeClass("glyphicon-minus").addClass("glyphicon-plus").attr('title', 'Collapse'); 4127 //$(this).parent().find(".icon-folder").removeClass("icon-active"); 4128 $(this).parents(".panel-heading").next().find('.panel-collapse').removeClass('in').attr('aria-expanded', 'false'); 4129 $(this).parents(".panel-heading").next().find('.glyphicon').each(function(){ 4130 var nextTitle=$(this).attr("title"); 4131 $(this).removeClass("glyphicon-minus").addClass("glyphicon-plus").attr('title', nextTitle.replace("Collapse", "Expand")); 4132 }); 4133 searchfilteraccordianaction(); 4134 } else { 4135 e.stopPropagation(); 4136 $(this).removeClass("glyphicon-plus").addClass("glyphicon-minus").attr('title', $(this).attr('title').replace("Collapse","Expand")); 4137 $(this).parents(".panel-heading").next().addClass('in').removeAttr('aria-expanded').css('height', 'auto'); 4138 $(this).parents(".panel-heading").find('.accordion-toggle').attr('title', 'Expand'); 4139 //$(this).find('.glyphicon').removeClass("glyphicon-plus").addClass("glyphicon-minus").attr('title', 'Expand'); 4140 //$(this).parent().find(".icon-folder").addClass("icon-active"); 4141 $(this).parents(".panel-heading").next().find('.panel-collapse').addClass('in').removeAttr('aria-expanded').css('height', 'auto'); 4142 $(this).parents(".panel-heading").next().find('.glyphicon').each(function(){ 4143 var nextTitle=$(this).attr("title"); 4144 $(this).removeClass("glyphicon-plus").addClass("glyphicon-minus").attr('title', nextTitle.replace("Expand", "Collapse")); 4145 }); 4146 searchfilteraccordianaction(); 4147 } 4148 });*/ 4149 4150 var cusAccordMob = $('.cusAccordMob'); 4151 $('#searchres-hidedet').on('keypress click', function (e) { 4152 if (e.type === "click" || e.keyCode === 13) { 4153 var title = $(this).find('span').text().trim(); 4154 var hideDetails = $('#search-hidedetails').val().trim();
4155 var showDetails = $('#search-showdetails').val().trim(); 4156 if (title == hideDetails) { 4157 $(this).removeAttr("aria-live").attr('aria-expanded', 'false'); 4158 cusAccordMob.find('.accordion-toggle').addClass('collapsed').attr('aria-expanded', 'false'); 4159 cusAccordMob.find('.panel-collapse').removeClass('in').attr('aria-expanded', 'false'); 4160 $(this).find('span').text(showDetails);//.attr("aria-label", "Show Details"); 4161 cusAccordMob.find('.glyphicon').removeClass("glyphicon-minus").addClass("glyphicon-plus");//.attr('title', 'Collapse'); 4162 starIconUpdate('hide'); 4163 } else { 4164 $(this).attr("aria-live", "polite").attr('aria-expanded', 'true'); 4165 cusAccordMob.find('.accordion-toggle').removeClass('collapsed').removeAttr('aria-expanded'); 4166 cusAccordMob.find('.panel-collapse').addClass('in').removeAttr('aria-expanded').css('height', 'auto'); 4167 $(this).find('span').text(hideDetails);//.attr("aria-label", "Hide Details"); 4168 cusAccordMob.find('.glyphicon').removeClass("glyphicon-plus").addClass("glyphicon-minus");//.attr('title', 'Expand'); 4169 starIconUpdate('show'); 4170 } 4171 } 4172 }); 4173 4174 cusAccordMob.find(".collapse").on("shown.bs.collapse", function () { 4175 $(this).parent().find(".glyphicon-plus").removeClass("glyphicon-plus").addClass("glyphicon-minus").attr('title', 'Expand'); 4176 $(this).parent().find(".icon-folder").addClass("icon-active"); 4177 searchaccordianaction(); 4178 }).on("hidden.bs.collapse", function () { 4179 $(this).parent().find(".glyphicon-minus").removeClass("glyphicon-minus").addClass("glyphicon-plus").attr('title', 'Collapse'); 4180 $(this).parent().find(".icon-folder").removeClass("icon-active"); 4181 searchaccordianaction(); 4182 }); 4183 /* 4184 * Pagination script 4185 */ 4186 var pagenumber = 0; 4187 //bindInputEvents(); 4188 var datesection = $('.date-section'); 4189 datesection.find('.selectpicker').on('change', function () { 4190 if ($(this).attr("id") != "selectpick") { 4191 $(".pagenumber-search").removeClass('error_msg'); 4192 var sort = ''; 4193 var field = ''; 4194 sort = $(this).find('option:selected').attr('label')?'&sort='+$(this).find('option:selected').attr('label'):''; 4195 field = $(this).selectpicker('val')?'&field='+$(this).selectpicker('val'):''; 4196 var currentPage = $(this).attr('data-page'); 4197 var sortType = $(this).attr('data-sort'); 4198 var fieldType = $(this).attr('data-field'); 4199 var url = window.location.href; 4200 if (fieldType) { 4201 $.cookie("sendCounter", "off"); 4202 window.location.href = url.replace('&page='+currentPage, '&page=0').replace('&sort='+sortType, sort).replace('&field='+fieldType, field); 4203 } else { 4204 if (field) { 4205 $.cookie("sendCounter", "off"); 4206 window.location.href = url.replace('&page='+currentPage, '&page=0') + sort + field; 4207 } 4208 } 4209 } 4210 }); 4211 $('.fa-angle-right').on('keypress click', function (e) { 4212 if (e.type === "click" || e.keyCode === 13) { 4213 var fromData = $(this).parent().parent().attr('data-from'); 4214 var pageNum = $(this).parent().parent().attr('data-page'); 4215 var url = window.location.href; 4216 $.cookie("sendCounter", "off"); 4217 if (url.indexOf('&page=') > -1) { 4218 window.location.href = url.replace('&page='+ pageNum, '&page=' + (parseInt(pageNum) + 1)); 4219 } else { 4220 window.location.href = url + '&page=' + (parseInt(pageNum) + 1); 4221 } 4222 } 4223 }); 4224 $('.fa-angle-left').on('keypress click', function (e) { 4225 if (e.type === "click" || e.keyCode === 13) { 4226 var fromData = $(this).parent().parent().attr('data-from'); 4227 var pageNum = $(this).parent().parent().attr('data-page'); 4228 var url = window.location.href; 4229 $.cookie("sendCounter", "off"); 4230 if (url.indexOf('&page=') > -1) { 4231 window.location.href = url.replace('&page='+ pageNum, '&page=' + (parseInt(pageNum) - 1)); 4232 } else { 4233 window.location.href = url + '&page=' + (parseInt(pageNum) - 1); 4234 } 4235 } 4236 }); 4237 $('.fa-angle-double-right').on('keypress click', function (e) { 4238 if (e.type === "click" || e.keyCode === 13) { 4239 var pageNum = $(this).parent().parent().attr('data-page'); 4240 var totalPage = $(this).parent().parent().attr('data-total'); 4241 var url = window.location.href; 4242 $.cookie("sendCounter", "off"); 4243 if (url.indexOf('&page=') > -1) { 4244 window.location.href = url.replace('&page='+ pageNum, '&page=' + totalPage); 4245 } else { 4246 window.location.href = url + '&page=' + totalPage; 4247 } 4248 } 4249 }); 4250 $('.fa-angle-double-left').on('keypress click', function (e) { 4251 if (e.type === "click" || e.keyCode === 13) { 4252 var pageNum = $(this).parent().parent().attr('data-page'); 4253 var url = window.location.href; 4254 $.cookie("sendCounter", "off"); 4255 if (url.indexOf('&page=') > -1) { 4256 window.location.href = url.replace('&page='+ pageNum, '&page=0'); 4257 } else { 4258 window.location.href = url + '&page=0'; 4259 } 4260 } 4261 }); 4262 $(".pagenumber-search").on('keyup', function (e) { 4263 $(this).removeClass('error_msg'); 4264 var keycode = (e.keyCode ? e.keyCode :e.which); 4265 if (keycode == '13') { 4266 var totalPages = $(this).parent().parent().attr('data-total'); 4267 var goToPage = $(this).val(); 4268 var pageNum = $(this).parent().parent().attr('data-page'); 4269 var url = window.location.href; 4270 if (!isNaN(parseInt(goToPage)) && goToPage != "0" && parseInt(goToPage) <= parseInt(totalPages) + 1 && parseInt(goToPage) - 1 != parseInt(pageNum)) { 4271 $.cookie("sendCounter", "off"); 4272 if (url.indexOf('&page=') > -1) { 4273 window.location.href = url.replace('&page='+ pageNum, '&page='+ (parseInt(goToPage) - 1)); 4274 } else { 4275 window.location.href = url + '&page='+ (parseInt(goToPage) - 1); 4276 } 4277 } else if (parseInt(goToPage) - 1 == parseInt(pageNum)) { 4278 } else { 4279 $(this).addClass('error_msg'); 4280 } 4281 } 4282 4283 }); 4284 $(".load-more-images").on('click', function (e) { 4285 var pagesize = $(this).attr('data-size'); 4286 var url = window.location.href; 4287 $.cookie("sendCounter", "off"); 4288 if (url.indexOf('&size=') > -1) { 4289 window.location.href = url.replace('&size='+pagesize, '&size='+(parseInt(pagesize) + 30)); 4290 } else { 4291 window.location.href = url + '&size=' + (parseInt(pagesize) + 30); 4292 } 4293 }); 4294 $('.result-per-page').find('.selectpicker').on('change', function () { 4295 $(".pagenumber-search").removeClass('error_msg'); 4296 var size = $(this).selectpicker('val'); 4297 var pageSize = $(this).attr('data-size'); 4298 var currentPage = $(this).attr('data-page'); 4299 var url = window.location.href; 4300 $.cookie("sendCounter", "off"); 4301 if (url.indexOf('&size=') > -1) { 4302 window.location.href = url.replace('&page='+currentPage, '&page=0').replace('&size='+pageSize,'&size='+size); 4303 } else { 4304 window.location.href = url.replace('&page='+currentPage, '&page=0') + '&size=' + size; 4305 } 4306 }); 4307 $(".refine-results").click(function () { 4308 $(this).hide(); 4309 $(".refine-section").removeClass("hidden-sm").removeClass("hidden-xs"); 4310 }); 4311 $(".refine-close").click(function () { 4312 if ($(this).hasClass('refine-museum-close')) { 4313 $(".refine-museum-results").show(); 4314 $(".museum-refine").addClass("hidden-sm").addClass("hidden-xs"); 4315 } else { 4316 $(".refine-results").show(); 4317 $(".refine-section").addClass("hidden-sm").addClass("hidden-xs"); 4318 } 4319 }); 4320 $(".filtered").on('click', function () { 4321 var element = $(this); 4322 if (!element.hasClass("filteredItem")) { 4323 element.addClass("filteredItem"); 4324 $("#content").append('<li><span>' + element.html() + '</span><a title="Close" aria-hidden="true" href="javascript:void(0);"><img onclick="close_action(this)" src="/bloomsbury_assets/bloomsbury/images/signin_close.png" tabindex="0" role="button" aria-label="close" alt="Close" class="close-btn"/></a></li>'); 4325 } 4326 }); 4327 $("#no_search_result_found").focus(); 4328 $.cloudinary.responsive(); 4329 $('.selectpicker').selectpicker(); 4330 filterViewmore(); 4331 /* FILTER VIEW MORE START */ 4332 $('.refine-section .search_left_accordian').find('#flt_viewmore').click(function () { 4333 var moreText = $('#more-text').val(); 4334 var lessText = $('#less-text').val(); 4335 var element = $(this).parent().parent().find('ul .panel-heading, li'); 4336 if ($(this).text() == moreText) { 4337 element.show(); 4338 if (element.hasClass('panel-heading')) { 4339 element.next().css('display', ''); 4340 } 4341 $(this).text(lessText); 4342 } else { 4343 $(this).text(moreText); 4344 element.each(function(index) { 4345 if (index > 4) { 4346 $(this).hide(); 4347 if ($(this).hasClass('panel-heading')) { 4348 $(this).next().hide(); 4349 } 4350 } 4351 }); 4352 $("body").scrollTop(element.offset().top); 4353 } 4354 }); 4355 $('.popper').popover({ 4356 placement: 'top', 4357 container: 'body', 4358 trigger: 'manual', 4359 html: true, 4360 content: function () { 4361 return $(this).next('.popper-content').length>0?$(this).next('.popper-content').html():$(this).parent().next('.popper-content').html(); 4362 } 4363 }).off('keyup click').on('keyup click', function(e){
4364 if (e.keyCode == 13) { 4365 $('this').trigger('click'); 4366 } else if (e.type == "click") { 4367 e.stopPropagation(); 4368 $('.popper').popover('hide'); 4369 $(this).popover('toggle'); 4370 } 4371 }); 4372 if($('.filtered_list').length > 0){ 4373 var filtercount = $('.filtered_list ul').children().length; 4374 if(filtercount == 0){ 4375 $('#clear_all').addClass('hide'); 4376 }else if(filtercount == 1){ 4377 const firstChildText = $('.filtered_list ul').children().first().text().split(':')[0].trim(); 4378 firstChildText == "Search term" ? $('#clear_all').addClass('hide') : $('#clear_all').removeClass('hide'); 4379 }else{ 4380 $('.filtered_list ul').children().each(function(index) { 4381 const text = $(this).text().split(':')[0].trim(); 4382 if (text != "Search term") { 4383 $('#clear_all').removeClass('hide'); 4384 } 4385 }); 4386 } 4387 } 4388 $('.search_img').on('keyup', function(event) { 4389 if (event.keyCode === 13) { 4390 window.location.href = $(this).closest('a').attr('href'); 4391 } 4392 }); 4393 $('.book-sub-category-head').on('click',function(e){ 4394 if((e.currentTarget.className.indexOf('book-sub-category-head')>-1) &&(e.target.className.indexOf('book-sub-category-head-span')<0)){ 4395 if(!$(this).hasClass('selected')){ 4396 var url=window.location.href; 4397 var category=$(this).parents('.panel').find('.accordion-toggle').children('label').attr('name').trim(); 4398 var itemid=$(this).attr('data-itemid'); 4399 var title=$(this).html().trim(); 4400 if(title!='More...' && title!='Less...') { 4401 if (category == 'taxonomy') { 4402 const baseUrl = url.split('?')[0]; 4403 const params = new URLSearchParams(window.location.search); 4404 params.set("bt", itemid); 4405 url = baseUrl + '?' + params.toString(); 4406 url = url.replace('page=0', 'page=0'); 4407 } 4408 if ($('#more-image-page').length > 0){ 4409 var moreitem = $('#more-image-page').attr('data-image'); 4410 if(moreitem && moreitem.toLowerCase() == itemid.toLowerCase()) { 4411 url = url.replace('&size=20', ''); 4412 } 4413 } 4414 showProgress(); 4415 $.cookie('type', ''); 4416 window.location.href = url; 4417 } 4418 } 4419 } 4420 }); 4421 } 4422 4423 function catalogueCheckBoxAction() { 4424 4425 var listOfCheckBoxIds = []; 4426 var customSort = function (a, b) { 4427 return (Number(a.match(/(\d+)/g)[0]) - Number((b.match(/(\d+)/g)[0]))); 4428 } 4429 4430 var JsonObject = null; 4431 //check local storage functionality for enabling checkboxs 4432 if(localStorage.getItem("selectedCheckBoxItem") != 'null' && localStorage.getItem("selectedCheckBoxItem") != "") { 4433 JsonObject = JSON.parse(localStorage.getItem("selectedCheckBoxItem"));
4434 if(JsonObject != null && JsonObject.searchBrowse == true) { 4435 $.each(JsonObject.details,function (i, val){ 4436 if (listOfCheckBoxIds.indexOf(val.id) === -1 && val.id !== '') { 4437 listOfCheckBoxIds.push(val.id); 4438 if (listOfCheckBoxIds.length > 0) { 4439 $(".catalogue-checkbox").removeClass("hide"); 4440 $.each(listOfCheckBoxIds,function (i, val){ 4441 $("#"+val).prop('checked', true); 4442 $("#select-multiple-item-btn").val('View Selected Items'); 4443 if($("#select-multiple-item-btn").val() == "View Selected Items") { 4444 $("#view-select-items-btn").removeClass("hide"); 4445 $(".multiple-item-close").removeClass("hide"); 4446 } 4447 }); 4448 } 4449 } 4450 }); 4451 }
4451else if(JsonObject != null && JsonObject.searchBrowse == false) { 4452 localStorage.setItem("selectedCheckBoxItem", null); 4453 } 4454 }else if(localStorage.getItem("selectedCheckBoxItem") == 'null' && localStorage.getItem("EnabledCheckBoxs") == 'true') { 4455 $("#select-multiple-item-btn").val('View Selected Items'); 4456 $("#select-multiple-item-btn").addClass('disabled-btn'); 4457 $(".catalogue-checkbox").removeClass("hide"); 4458 $(".multiple-item-close").removeClass("hide"); 4459 } 4460 4461 //select multiple items btn functionality for catalogue content type 4462 $("#select-multiple-item-btn").on("click", function(){ 4463 if( !$("#select-multiple-item-btn").hasClass('disabled-btn') && $("#select-multiple-item-btn").val() == "View Selected Items") { 4464 if(localStorage.getItem("selectedCheckBoxItem") != 'null' && localStorage.getItem("selectedCheckBoxItem") != "") { 4465 JsonObject = JSON.parse(localStorage.getItem("selectedCheckBoxItem"));
4466 if(JsonObject != null && JsonObject.searchBrowse == true) { 4467 $.each(JsonObject.details, function (i, val){ 4468 if(i == 0) { 4469 var identifier = val.identifier.split("~")[0]; 4470 window.location.href = "/catalogue-bookmark-viewer?docid="+identifier; 4471 } 4472 }); 4473 } 4474 } 4475 } 4476 if(localStorage.getItem("EnabledCheckBoxs") == 'false') { 4477 $(".catalogue-checkbox").removeClass("hide"); 4478 $("#select-multiple-item-btn").val('View Selected Items'); 4479 $('#select-multiple-item-btn').addClass("disabled-btn"); 4480 $(".multiple-item-close").removeClass("hide"); 4481 localStorage.setItem("EnabledCheckBoxs",true); 4482 localStorage.setItem("EnabledCheckBoxsAt",'searchResultPage'); 4483 } 4484 }); 4485 4486 //view-select-items-btn functionality for catalogue content type 4487 $("#view-select-items-btn").on("click", function(){ 4488 if(localStorage.getItem("selectedCheckBoxItem") != 'null' && localStorage.getItem("selectedCheckBoxItem") != "") { 4489 JsonObject = JSON.parse(localStorage.getItem("selectedCheckBoxItem"));
4490 if(JsonObject != null && JsonObject.searchBrowse == true) { 4491 $.each(JsonObject.details, function (i, val){ 4492 if(i == 0) { 4493 var identifier = val.identifier.split("~")[0]; 4494 window.location.href = "/catalogue-bookmark-viewer?docid="+identifier; 4495 } 4496 }); 4497 } 4498 } 4499 }); 4500 4501 var jArray = []; 4502 //checkbox click functionality for catalogue content type 4503 $(".catalogue-checkbox input").on("click", function(){ 4504 if(localStorage.getItem("selectedCheckBoxItem") != 'null' && localStorage.getItem("selectedCheckBoxItem") != "") { 4505 JsonObject = JSON.parse(localStorage.getItem("selectedCheckBoxItem")); 4506 if(JsonObject != null && JsonObject.searchBrowse == true) { 4507 $.each(JsonObject.details,function (i, val){ 4508 if (listOfCheckBoxIds.indexOf(val.id) === -1 && val.id !== '') { 4509 listOfCheckBoxIds.push(val.id); 4510 } 4511 }); 4512 }else { 4513 JsonObject = null; 4514 } 4515 } 4516 var selectedCheckBoxId = $(this).attr("id"); 4517 if ($(this).is(':checked')) { 4518 var JsonArrayString = null; 4519 if (listOfCheckBoxIds.indexOf(selectedCheckBoxId) === -1 && selectedCheckBoxId !== '') { 4520 listOfCheckBoxIds.push(selectedCheckBoxId); 4521 listOfCheckBoxIds.sort(customSort); 4522 if(listOfCheckBoxIds.length > 0 && JsonObject != null) { 4523 jArray = []; 4524 var count = 0; 4525 $.each(listOfCheckBoxIds, function (i, arrId){ 4526 $.each(JsonObject.details,function (j, arrObj){ 4527 if(arrId === arrObj.id) { 4528 jArray.push(arrObj); 4529 }else if(arrId == selectedCheckBoxId && count === 0){ 4530 var identiValue = $("#"+selectedCheckBoxId).val().split("~")[0]; 4531 var catalogueLevel = $("#"+selectedCheckBoxId).val().split("~")[1]; 4532 var xmlSource = $("#"+selectedCheckBoxId).val().split("~")[2]; 4533 var jsonObj = { 4534 "id" : selectedCheckBoxId, 4535 "identifier" : identiValue, 4536 "level" : catalogueLevel, 4537 "xmlsource" : xmlSource 4538 }; 4539 jArray.push(jsonObj); 4540 count++; 4541 } 4542 }); 4543 }); 4544 }else { 4545 jArray = []; 4546 var identiValue = $("#"+selectedCheckBoxId).val().split("~")[0]; 4547 var catalogueLevel = $("#"+selectedCheckBoxId).val().split("~")[1]; 4548 var xmlSource = $("#"+selectedCheckBoxId).val().split("~")[2]; 4549 var jsonObj = { 4550 "id" : selectedCheckBoxId, 4551 "identifier" : identiValue, 4552 "level" : catalogueLevel, 4553 "xmlsource" : xmlSource 4554 }; 4555 jArray.push(jsonObj); 4556 } 4557 var JsonObjectFinal = { 4558 searchBrowse : true, 4559 details : jArray 4560 }; 4561 JsonArrayString = JSON.stringify(JsonObjectFinal); 4562 } 4563 localStorage.setItem("selectedCheckBoxItem", JsonArrayString); 4564 if($("#select-multiple-item-btn").hasClass('disabled-btn')) { 4565 $('#select-multiple-item-btn').removeClass("disabled-btn"); 4566 $("#view-select-items-btn").removeClass("hide"); 4567 } 4568 }else{ 4569 jArray = []; 4570 var JsonArrayString = null; 4571 listOfCheckBoxIds = listOfCheckBoxIds.filter(item => item !== selectedCheckBoxId) 4572 if(listOfCheckBoxIds.length > 0 && JsonObject != null) { 4573 listOfCheckBoxIds.sort(customSort); 4574 $.each(listOfCheckBoxIds, function (i, arrId){ 4575 $.each(JsonObject.details,function (j, arrObj){ 4576 if(arrId === arrObj.id) { 4577 jArray.push(arrObj); 4578 } 4579 }); 4580 }); 4581 var JsonObjectFinal = { 4582 searchBrowse : true, 4583 details : jArray 4584 }; 4585 JsonArrayString = JSON.stringify(JsonObjectFinal); 4586 } 4587 localStorage.setItem("selectedCheckBoxItem", JsonArrayString); 4588 } 4589 if(listOfCheckBoxIds.length == 0) { 4590 $("#select-multiple-item-btn").val('View Selected Items'); 4591 $('#select-multiple-item-btn').addClass("disabled-btn"); 4592 if($("#select-multiple-item-btn").hasClass('disabled-btn') && $("#select-multiple-item-btn").val() == "View Selected Items") { 4593 $("#view-select-items-btn").addClass("hide"); 4594 } 4595 } 4596 }); 4597 4598 //multiple-item-close functionality for catalogue content type 4599 $(".multiple-item-close").on("click", function(){ 4600 4601 $(".catalogue-checkbox input").prop("checked", false); 4602 jArray = []; 4603 listOfCheckBoxIds = []; 4604 JsonObject = null; 4605 localStorage.setItem("selectedCheckBoxItem",null); 4606 localStorage.setItem("EnabledCheckBoxs",false); 4607 $("#select-multiple-item-btn").val('Select Multiple Items'); 4608 if($("#select-multiple-item-btn").val() == "Select Multiple Items") { 4609 $('#select-multiple-item-btn').removeClass("disabled-btn"); 4610 $("#view-select-items-btn").addClass("hide"); 4611 $(".multiple-item-close").addClass("hide"); 4612 $(".catalogue-checkbox").addClass("hide"); 4613 } 4614 }); 4615 } 4616 4617 function toggleBloomsburyRecommends() { 4618 if ($("#no_search_result_found").length > 0) { 4619 $(".recommended-videos").addClass("hide"); 4620 } else { 4621 $(".recommended-videos").removeClass("hide"); 4622 } 4623 } 4624 var searchtext = ``; 4625 4626 var searchdata = { 4627 advURL: "any=&su=commentary".split("~~").join('"'), 4628 langCK: "en", 4629 accountid: "0", 4630 territory: "$territory", 4631 advancePlaySearch: "", 4632 urlModify: "any=&su=commentary".split("~~").join('"'),
4633 signupDisabled: "false", 4634 relativeURL: "advanced-search", 4635 fmYear: "", 4636 toYear: "", 4637 taxonomyValue: "commentary", 4638 refineResultsTxt: "Refine Results", 4639 clearAllLnk: "Clear All", 4640 hideAllLnk: "Hide All Filters", 4641 dateFileterHide: "", 4642 dateRange: "Date Range", 4643 fromTxt: "From", 4644 toTxt: "To", 4645 goTxt: "Go", 4646 moreTxt: "More...", 4647 accessTxt: "Access", 4648 showOnlyTxt: "Only Show content which I have full access to", 4649 resultsText: "Search Results", 4650 taxurl: "commentary", 4651 pageImageSize: "20", 4652 pageSize: "10", 4653 pageNumber: "0", 4654 searchid: "$searchid", 4655 searchSavedTxt: "Unsave this search", 4656 saveThisSearch: "Save this Search", 4657 searchType: "$cookietool.get('type')", 4658 sortType: "", 4659 fieldType: "", 4660 sortByLbl: "Sort By", 4661 relevanceTxt: "Relevance", 4662 titleAscTxt: "Title Ascending", 4663 titleDescTxt: "Title Descending", 4664 dateAscTxt: "Date Ascending", 4665 dateDescTxt: "Date Descending", 4666 resultPerPage: "Results Per Page", 4667 ofTxt: "of", 4668 pagesTxt: "pages", 4669 pageTxt: "page", 4670 subscriptionRequiredText: "Subscription Required", 4671 saveSearchOverlayTxt: "This item is only available to the members of institutions that have purchased access. If you belong to such an institution please", 4672 companionUrl: "", 4673 FullPageName: "/search-results?any=&su=commentary", 4674 logIn: "Log In", 4675 hideDetailsTxt: "Hide all content details", 4676 starIcon: "icon-search_star", 4677 starIconOutline: "icon-search_star_outline", 4678 matchTxt: "match", 4679 matchesTxt: "matches", 4680 encodedQuery: "", 4681 noResultFound: "No Result(s) Found.", 4682 noResultSecond: "Please check your spelling, or try using the Advanced Search, Explore or Browse links above to find what you are looking for.", 4683 noResultThird: "If you have any filters applied to your search, you can remove them below to expand the parameters of your search and discover more content.", 4684 fullURL: "/bproicaew/search-results?any=&su=commentary".split("~~").join('"'), 4685 sw: "" 4686 } 4687 showAjaxLoader('#searchContent'); 4688 $.ajax({
4689 url: "/app/search", 4690 type: 'POST', 4691 data: searchdata, 4692 success: function(responseText, status, xhr) { 4693 hideProgress(); 4694 hideAjaxLoader('#searchContent'); 4695 if (responseText && xhr.status == 200) { 4696 $('#searchContent').append(responseText); 4697 $('#searchContent').css('height', 'auto'); 4698 bindCollapseEvents(); 4699 charFilter(); 4700 bindSearchEvents(); 4701 catalogueCheckBoxAction(); 4702 toggleBloomsburyRecommends(); 4703 triggerSearchGA(); 4704 } else { 4705 window.location.href = "/error-page"; 4706 } 4707 }, 4708 error: function(error) { 4709 hideProgress(); 4710 hideAjaxLoader('#searchContent'); 4711 window.location.href = "/error-page"; 4712 } 4713 4714 }); 4715 4716 function triggerSearchGA(){ 4717 const searchGAObj = {}; 4718 let isAdvanceSearch = false; 4719 let isRefinementSearch = false; 4720 var params = new URLSearchParams(window.location.search); 4721 var playSearchType = params.has("stype")?params.get("stype"):""; 4722 searchGAObj.event = "search" 4723 if(params.has("sws") || params.has("Df")||params.has("Dt")||params.has("su")||params.has("acc")||$.cookie("ContentAccessFilter")=="true"){ 4724 searchGAObj.event="search_refinement"; 4725 $.cookie("ContentAccessFilter",""); 4726 isRefinementSearch = true; 4727 } 4728 if(!isRefinementSearch && (params.has("Any") || params.has("Ti")||params.has("Au")||params.has("Ab")||params.has("Id")|| params.has("Cat"))){ 4729 isAdvanceSearch = true; 4730 } 4731 if(playSearchType!=""){ 4732 if(playSearchType=="pfinder"){ 4733 searchGAObj.event = "search_play"; 4734 if(params.has("op2") && params.has("op4") && 4735 (params.getAll("op2").length == params.getAll("op4").length)){ 4736 var fieldNames = params.getAll("op2"); 4737 var fieldValues = params.getAll("op4"); 4738 var fieldOperators = params.getAll("op3"); 4739 var binaryOperators = params.getAll("op1"); 4740 for(var i=0;i<fieldNames.length;i++){ 4741 var operator = ""; 4742 if(fieldOperators[i]=="gt"){ 4743 operator = "More than " 4744 } 4745 if(fieldOperators[i]=="lt"){ 4746 operator = "Less than " 4747 } 4748 if(fieldOperators[i]=="eq"){ 4749 operator = "Equal to " 4750 } 4751 if(fieldNames[i]=="sc"){ 4752 searchGAObj.number_of_scenes= binaryOperators[i] +" "+ operator + fieldValues[i] 4753 } 4754 if(fieldNames[i]=="wc"){ 4755 searchGAObj.search_word_count= binaryOperators[i] +" "+ operator + fieldValues[i] 4756 } 4757 if(fieldNames[i]=="tr"){ 4758 searchGAObj.search_total_roles= binaryOperators[i] +" "+ operator + fieldValues[i] 4759 } 4760 if(fieldNames[i]=="mr"){ 4761 searchGAObj.search_male_roles= binaryOperators[i] +" "+ operator + fieldValues[i] 4762 } 4763 if(fieldNames[i]=="fr"){ 4764 searchGAObj.search_female_roles= binaryOperators[i] +" "+ operator + fieldValues[i] 4765 } 4766 if(fieldNames[i]=="ur"){ 4767 searchGAObj.search_unassigned_roles= binaryOperators[i] +" "+ operator + fieldValues[i] 4768 } 4769 } 4770 } 4771 } 4772 if(playSearchType=="mono"){ 4773 searchGAObj.event = "search_monologue"; 4774 var operator = ""; 4775 if(params.has("cond")){ 4776 if(params.get("cond")=="gt"){ 4777 operator = "More than " 4778 } 4779 if(params.get("cond")=="lt"){ 4780 operator = "Less than " 4781 } 4782 } 4783 if(params.has("gen")){ 4784 if(params.get("gen")=="m"){ 4785 searchGAObj.search_speaker_gender= "Male"; 4786 } 4787 if(params.get("gen")=="f"){ 4788 searchGAObj.search_speaker_gender= "Female"; 4789 } 4790 if(params.get("gen")=="n"){ 4791 searchGAObj.search_speaker_gender= "Unassigned"; 4792 } 4793 } 4794 if(!params.has("gen")){
4795 searchGAObj.search_speaker_gender= "Any gender"; 4796 } 4797 if(params.has("wcount")){ 4798 searchGAObj.search_word_count= operator + params.get("wcount"); 4799 } 4800 4801 } 4802 } 4803 if(isAdvanceSearch && !params.has("stype")){ 4804 searchGAObj.event="search_advanced"; 4805 var term = ""; 4806 if(params.get("Any")){ 4807 term = "Anywhere :" +params.get("Any") 4808 } 4809 if(params.get("Ti")){ 4810 if(term.length){ 4811 term+=", " 4812 } 4813 term+= "Title :" +params.get("Ti") 4814 } 4815 if(params.get("Au")){ 4816 if(term.length){ 4817 term+=", " 4818 } 4819 term+= "Author :" +params.get("Au") 4820 } 4821 if(params.get("Ab")){ 4822 if(term.length){ 4823 term+=", " 4824 } 4825 term+= "Summary/Abstract :" +params.get("Ab") 4826 } 4827 if(params.get("Id")){ 4828 if(term.length){ 4829 term+=", " 4830 } 4831 term+= "Identifier :" +params.get("Id") 4832 } 4833 if(params.get("Cat")){ 4834 if(term.length){ 4835 term+=", " 4836 } 4837 term+= "Category/Keywords :" +params.get("Cat") 4838 } 4839 searchGAObj.search_term = term; 4840 }else{ 4841 searchGAObj.search_term = params.has("any")?params.get("any"):params.get("Any"); 4842 } 4843 if (params.has("sw")) { 4844 searchGAObj.search_term_additional = params.get("sw"); 4845 } 4846 4847 if(searchGAObj.event!="search" || playSearchType==""){ 4848 searchGAObj.user_content_availability=""; 4849 searchGAObj.content_availability=""; 4850 if($("#content-access-filter").is(":checked")){ 4851 searchGAObj.user_content_availability="available"; 4852 } 4853 if($("#open-access-filter").is(":checked")){ 4854 searchGAObj.content_availability="open access"; 4855 } 4856 } 4857 4858 if(params.has("Df") || params.has("Dt")|| params.has("df")||params.has("dt")||params.has("cf") || params.has("su") || params.has("sws")){ 4859 var taxonomy_subjects = []; 4860 var ts={}; 4861 if(params.has("df")||params.has("dt")){ 4862 ts.content_date= params.get("df")+" - "+params.get("dt"); 4863 } 4864 if(params.has("Df")||params.has("Dt")){ 4865 ts.content_date= params.get("Df")+" - "+params.get("Dt"); 4866 } 4867 if(params.has("cf")){ 4868 ts.content_type= ""; 4869 } 4870 if(params.has("su")){ 4871 var subjects=[] 4872 if(params.get("su").indexOf(",")>-1){ 4873 subjects = params.get("su").split(","); 4874 }else{ 4875 subjects.push(params.get("su")); 4876 } 4877 for(var s=0; s<subjects.length; s++){ 4878 var sub = $('a[data-itemid="'+subjects[s]+'"]'); 4879 var topFacetName = sub.parents(".search_left_accordian").find(".panel-title > a").first().data("itemga"); 4880 if(topFacetName){ 4881 if(ts[topFacetName]!=null){ 4882 ts[topFacetName]=ts[topFacetName]+","+ sub.data("itemname"); 4883 }else{ 4884 ts[topFacetName]= sub.data("itemname"); 4885 } 4886 } 4887 } 4888 } 4889 if(params.has("sws")){ 4890 var subjects=[]; 4891 if(params.get("sws").indexOf(",")>-1){ 4892 subjects = params.get("sws").split(","); 4893 }else{ 4894 subjects.push(params.get("sws")); 4895 } 4896 for(var s=0; s<subjects.length; s++){ 4897 var sub = $('a[data-itemid="'+subjects[s]+'"]'); 4898 if(ts.content_catalogue!=null){ 4899 ts.content_catalogue=ts.content_catalogue+","+ sub.data("itemname"); 4900 }else{ 4901 ts.content_catalogue= sub.data("itemname"); 4902 } 4903 } 4904 } 4905 taxonomy_subjects.push(ts); 4906 searchGAObj.taxonomy_subjects=taxonomy_subjects; 4907 } 4908 searchGAObj.search_results = $("#resultCount").attr("name")!=undefined?$("#resultCount").attr("name"):0; 4909 dataLayer.push(searchGAObj); 4910 } 4911 4912 function successsaveSearch(name) { 4913 $('#save_search').modal('hide'); 4914 $('#savedName').text(name); 4915 4916 $('#success-savesearch') 4917 .one('shown.bs.modal', function () { 4918 $('#success-savesearch .close-btn').focus(); 4919 }) 4920 .modal('show'); 4921} 4922 4923 4924</script>
4924 4925<div role="dialog" aria-modal="true" class="modal fade" aria-labelledby="searchres-savesearch" id="save_search" tabindex="-1" data-backdrop="static" data-keyboard="true"> 4926 <div class="vertical-alignment-helper" role="presentation"> 4927 <div class="modal-dialog citation_modal vertical-align-center save_search_modal" role="document" data-backdrop="static" data-keyboard="false"> 4928 <div class="modal-content"> 4929 <div class="modal-body"> 4930 <div align="right" class="signin_close"><button type="button" data-dismiss="modal" aria-label="Close" title="Close" id="savesearch-modal-close-btn"><img src="/bloomsbury_assets/bloomsbury/images/signin_close.png" role="presentation" /></button></div> 4931 <h2 id="searchres-savesearch" tabindex="-1">Save this Search</h2> 4932 <div style="text-align: left;margin: 7px;"> 4933 <span tabindex="-1">Name this search</span> 4934 </div> 4935 <input id="searchText" maxlength="60" aria-label="Name this search" type="text" autocomplete="off"><br>
4936 <span class="err-msg" id="savesearch-error" tabindex="-1 aria-live="polite"></span> 4937 4938 <div class="checkbox"> 4939 <input type="checkbox" 4940 id="alert_me_chk" 4941 aria-describedby="alert_me_announce"> 4942 <label for="alert_me_chk"> 4943 Send me email alerts whenever new content is added that matches this search. 4944 </label> 4945 </div> 4946 4947 4948 <div id="alert_me_announce" 4949 class="sr-only" 4950 role="status" 4951 aria-live="polite" 4952 aria-atomic="true"></div> 4953 <div align="center"><button id="save-search" class="primary_btn" title="save" tabindex="0">Save</button></div> 4954 <div id="save-announcement" role="status" aria-live="polite" aria-atomic="true"class="sr-only"></div> 4955 </div> 4956 </div> 4957 </div> 4958 </div> 4959</div> 4960 4961<div role="dialog" aria-modal="true" class="modal fade" aria-labelledby="searchres-delete" id="remove_search" tabindex="-1" data-backdrop="static" data-keyboard="true" style="display: none;"> 4962 <div class="vertical-alignment-helper" role="presentation"> 4963 <div class="modal-dialog citation_modal vertical-align-center save_search_modal" role="document" data-backdrop="static" data-keyboard="false"> 4964 <div class="modal-content"> 4965 <div class="modal-body"> 4966 <div align="right" class="signin_close"><button type="button" data-dismiss="modal" id="savesearch-modal-su-close-btn" class="close-btn" aria-label="Close" id="savesearch-modal-su-close-btn"><img src="/bloomsbury_assets/bloomsbury/images/signin_close.png" role="presentation"></button></div> 4967 <h2 id="searchres-delete" tabindex="-1">DELETE THIS?</h2> 4968 <p id="searchres-deletedesc" tabindex="-1">Are you sure you want to remove the search term from "My Saved Searches"?</p><br> 4969 <div align="center" class="remove_btns"><button id="removesearch" data-dismiss="modal" class="primary_btn">Yes</button> <button id="close-search" data-dismiss="modal" class="secondary_btn">No</button></div> 4970 </div> 4971 </div> 4972 </div> 4973 </div> 4974</div> 4975<div class="modal fade" id="subscription-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false"> 4976 <div class="vertical-alignment-helper"> 4977 <div class="modal-dialog citation_modal vertical-align-center subs-modal" role="document" data-backdrop="static" data-keyboard="false"> 4978 <div class="modal-content"> 4979 <div class="modal-body"> 4980 <div class="signin_close"> 4981 <a id="subscription-close" data-dismiss="modal" href="javascript:;" aria-hidden="true" title="Close"> 4982 <img src="/bloomsbury_assets/bloomsbury/images/signin_close.png" role="button" tabindex="0" aria-label="Close" alt="Close" /> 4983 </a> 4984 </div> 4985 <h2 id="searchres-subscriptreq" tabindex="0" aria-labelledby="searchres-subscriptreq">Subscription Required</h2> 4986 <p id="searchres-subscriptreq-desc" tabindex="0" aria-labelledby="searchres-subscriptreq-desc">This item is only available to the members of institutions that have purchased access. If you belong to such an institution please <a href="login?recentUrl=/search-results?any=&su=commentary" tabindex="0">Log In</a></p> 4987 </div> 4988 </div> 4989 </div> 4990 </div> 4991 </div> 4992 <div class="modal fade" id="download-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false"> 4993 <div class="vertical-alignment-helper"> 4994 <div class="modal-dialog citation_modal vertical-align-center subs-modal" role="document" data-backdrop="static" data-keyboard="false"> 4995 <div class="modal-content"> 4996 <div class="modal-body"> 4997 <div align="right"><a title="Close" aria-hidden="true" href="javascript:;" data-dismiss="modal"><img src="/bloomsbury_assets/bloomsbury/images/signin_close.png" role="button" tabindex="0" aria-label="Close" alt="Close" /></a></div> 4998 <h2 id="searchres-signin" tabindex="0" aria-labelledby="searchres-signin">Sign in to Your Personal Account </h2> 4999 <p id="searchres-signin-desc" tabindex="0" aria-labelledby="searchres-signin-desc">Use your personal account to save 'favourite' commentary, chapters and books. <a href="javascript:;" data-toggle="modal" data-target="#signin_modal" alt="SignIn" title="SignIn" tabindex="0">Sign in now</a></p> 5000 <p id="searchres-yetaccount" tabindex="0" aria-labelledby="searchres-yetaccount">Don't have a personal account yet? <a href="sign-up?recentUrl=/search-results?any=&su=commentary" title="Sign Up now" tabindex="0">Sign up now</a></p> 5001 </div> 5002 </div> 5003 </div> 5004 </div> 5005 </div> 5006 <!--main_container ends--> 5007</div> 5008<div class="modal fade" id="delete-folder-common" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false"> 5009 <div class="vertical-alignment-helper"> 5010 <div class="modal-dialog share_modal library_modal vertical-align-center" role="document"> 5011 <div class="modal-content"> 5012 <div class="modal-body"> 5013 <div class="signin_close"><a title="Close" aria-hidden="true" href="javascript:;" data-dismiss="modal"><img src="/bloomsbury_assets/bloomsbury/images/signin_close.png" role="button" tabindex="0" aria-label="Close" alt="Close" /></a></div> 5014 5015 5016 <form method="post" id="delete_folder" tabindex="0"> 5017 <h2 id="mylibrary-del" tabindex="0" aria-labelledby="mylibrary-del">DELETE THIS?</h2> 5018 <p id="content-confirm-common" tabindex="0" aria-labelledby="content-confirm"> 5019 Are you sure you want to remove the page from "My Saved Items"? 5020 </p> 5021 5022 <div class="share_btns"> 5023 <input type="button" id="deletefolder" class="primary_btn" value="Yes"> 5024 <input type="button" class="secondary_btn" data-dismiss="modal" value="No"> 5025 </div> 5026 </form> 5027 </div> 5028 </div> 5029 </div> 5030 </div> 5031</div> 5032 5033<div class="modal fade" id="success-savesearch" role="dialog" aria-labelledby="savesearch" aria-modal="true" data-backdrop="static" data-keyboard="false" tabindex="-1"> 5034 <div class="vertical-alignment-helper" role="presentation"> 5035 <div class="modal-dialog citation_modal vertical-align-center save_search_modal" role="document"> 5036 <div class="modal-content"> 5037 <div class="modal-body" role="presentaion"> 5038 <div align="right" class="signin_close"> 5039 <button type="button" id="close-search" class="close-btn" data-dismiss="modal" aria-label="Close"> 5040 <img src="/bloomsbury_assets/bloomsbury/images/signin_close.png" alt="Close" role="presentation" /> 5041 </button> 5042 </div> 5043 <h2 id="savesearch" tabindex="-1" style="text-align:center;text-transform: lowercase;"><span id="savedName"></span> had been saved</h2> 5044 <div align="center"><button id="close-search" class="primary_btn deletebtn" data-dismiss="modal" tabindex="0">Close</button></div> 5045 </div> 5046 </div> 5047 </div> 5048 </div> 5049</div> 5050 5051
5052<script> 5053$(document) 5054 .off('keydown.bsSelectToggle') 5055 .on('keydown.bsSelectToggle', 5056 '.date-section .bootstrap-select .dropdown-toggle', 5057 function (e) { 5058$('.date-section').find('button.dropdown-toggle').on('keyup', function(e) { 5059 if (e.key === ' ' || e.key === 'Spacebar') { 5060 $(this).parent().find('select').selectpicker('toggle'); 5061 } 5062 }); 5063}); 5064 5065 5066</script>
vendor: 2 bytes, line 5066
5066
5067<script> 5068// Ensure the full page and all plugins are loaded 5069$(window).on('load', function() { 5070 5071 // Delegate focusout on dynamically rendered Bootstrap-select buttons 5072 $(document).on('focusout', '.date-section .bootstrap-select', function() { 5073 const dropdown = this; 5074 setTimeout(function() { 5075 if (!dropdown.contains(document.activeElement)) { 5076 $(dropdown) 5077 .removeClass('open') 5078 .find('.dropdown-toggle') 5079 .attr('aria-expanded', 'false'); 5080 } 5081 }, 10); 5082 }); 5083 5084 $(document).on('focusout', '.results_pad .bootstrap-select', function() { 5085 const dropdown = this; 5086 setTimeout(function() { 5087 if (!dropdown.contains(document.activeElement)) { 5088 $(dropdown) 5089 .removeClass('open') 5090 .find('.dropdown-toggle') 5091 .attr('aria-expanded', 'false'); 5092 } 5093 }, 10); 5094 }); 5095 5096}); 5097 5098</script>
5098 5099
5100<script> 5101var saveLink, documentId, contentType, titlename, titledescription, authorname, imageUrl, documentId, dataClass, spanElement,publicationYear,imprintvalue,titlevalue,jurisdiction,edition,practicearea; 5102var _$tarQ = _$tarQ || []; 5103var platform = 'Bloomsbury Accounting and Tax Service'; 5104var database = ('Financial Reporting for Smaller Companies~Platinum Tax Service~International Tax Service~ICAEW additional titles~').split("~!").join("'").split('~'); 5105var searchString = document.getElementById('global_searchbox').value; 5106var productname = "bproicaew"; 5107var searchtype = "AUTOMATED"; 5108 5109 $(document).on('keydown', function (e) { 5110 if (e.key === "Escape") { 5111 $('.modal.show, .modal.in').modal('hide'); 5112 var savesearchbtn = $("#savesearch-btn"); 5113 savesearchbtn.focus(); 5114 } 5115 }); 5116 5117 5118</script>
vendor: 2 bytes, line 5118
5118
5119<script> 5120 (function () { 5121 var stars = document.createElement('script'); 5122 stars.type = 'text/javascript'; 5123 stars.async = true; 5124 stars.src = 'https://receiver.star.saas.semcs.net/star.js'; 5125 var s = document.getElementsByTagName('script')[0]; 5126 s.parentNode.insertBefore(stars, s); 5127 })(); 5128</script>
5128 5129<div class="ssp-footer-layout"> <footer class="footer-temp1"> <div class="ssp-footer-top"> <div class="container"> <div class="row footer1-vertical"> <div class="col-xs-12 col-sm-12 visible-xs"> <ul class="ssp-footer-menu"> <li class="" role="listitem"><a tabindex="0" aria-label="Home" href="/home">Home</a></li><li class="" role="listitem"><a tabindex="0" aria-label="About Bloomsbury Accounting and Tax Service" href="/about-bloomsbury-accounting-and-tax-service">About Bloomsbury Accounting and Tax Service</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Accessibility" href="/accessibility">Accessibility</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Contact Us" href="/contact-us">Contact Us</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Help" href="/help">Help</a></li> </ul> </div> <div class="col-xs-5 col-sm-3 col-md-3 col-lg-2 ssp-foot-logo"> <a href="home"><img src="https://res.cloudinary.com/bloomsbury-publishing-public/image/upload/f_auto%2Cq_auto/ICAEW_Bpro_logo_acu31b.png" class="img-responsive" alt="BPrO/ICAEW png" title="BPrO/ICAEW png"></a> </div> <div class="col-xs-8 col-sm-6 col-md-6 col-lg-8 footer1-nav hidden-xs"> <ul class="ssp-footer-menu"> <li class="" role="listitem"><a tabindex="0" aria-label="Home" href="/home">Home</a></li><li class="" role="listitem"><a tabindex="0" aria-label="About Bloomsbury Accounting and Tax Service" href="/about-bloomsbury-accounting-and-tax-service">About Bloomsbury Accounting and Tax Service</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Accessibility" href="/accessibility">Accessibility</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Contact Us" href="/contact-us">Contact Us</a></li><li class="" role="listitem"><a tabindex="0" aria-label="Help" href="/help">Help</a></li> </ul> </div> <div class="col-xs-7 col-sm-3 col-md-3 col-lg-2 footer1-social"> <div class="hidden-xs footer1-social-inner"> <div class="social-media"> <!-- <h5 tabindex="0">Social Media</h5> --> <ul role="menu"> </ul> </div> </div> <!-- social Icons for mobile devices starts--> <div class="visible-xs"> <div class="social-media"> <!-- <h5 tabindex="0">Social Media</h5> --> <ul role="menu"> </ul> </div> </div> <!-- social Icons for mobile devices ends--> </div> </div> </div> </div> <div class="ssp-footer-btm"> <div class="container"> <div class="row"> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 text-left"> <h6> Copyright Bloomsbury Plc 2025 </h6> </div> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 text-right"> <h6><a href="/terms-and-conditions" alt="Terms and Conditions" title="Terms and Conditions">Terms and Conditions</a></h6><h6><a href="/privacy-policy" alt="Privacy Policy" title="Privacy Policy">Privacy Policy</a></h6> </div> </div> </div> </div> </footer></div> 5130
5131<script> 5132 plyr.setup(); 5133 $('.popper').popover({ 5134 placement: 'top', 5135 container: 'body', 5136 trigger: 'manual', 5137 html: true, 5138 content: function () { 5139 return $(this).next('.popper-content').length>0?$(this).next('.popper-content').html():$(this).parent().next('.popper-content').html(); 5140 } 5141 }).off('keyup click').on('keyup click', function(e){ 5142 if (e.keyCode == 13) { 5143 $('this').trigger('click'); 5144 } else if (e.type == "click") { 5145 e.stopPropagation(); 5146 $('.popper').popover('hide'); 5147 $(this).popover('toggle'); 5148 } 5149 }); 5150 5151 $('.article-popper').popover({ 5152 placement: 'top', 5153 container: 'body', 5154 trigger: 'manual', 5155 html: true, 5156 content: function () { 5157 return $('.popper-content[id="'+$(this).attr('popover-id')+'"]').html(); 5158 } 5159 }).on('keyup click', function(e){ 5160 if (e.keyCode == 13) { 5161 $('this').trigger('click'); 5162 } else if (e.type == "click") { 5163 e.stopPropagation(); 5164 $('.article-popper').popover('hide'); 5165 $(this).popover('toggle'); 5166 } 5167 }); 5168 initArcadianLibraryImageSlider(); 5169 $('a[target="_blank"]').each(function(){ 5170 $(this).attr("rel", "noopener noreferrer"); 5171 }); 5172 $('.custom_text_widget a').on('click', function(e){ 5173 dataLayer.push({ 5174 'event' : 'click_institutional_message' 5175 }); 5176 }); 5177 $('.owl-dots').on('click', function(e){ 5178 var cms_element_type=""; 5179 const navObj = {}; 5180 cms_element_type="Image Slider"; 5181 navObj.event= 'cms_element_click'; 5182 navObj.cms_element_type =cms_element_type; 5183 dataLayer.push(navObj); 5184 }); 5185 $(".owl-nav").on('click', function(e){ 5186 var cms_element_type=""; 5187 const navObj = {}; 5188 if(!e.isTrigger){ 5189 cms_element_type="Image Slider"; 5190 navObj.event= 'cms_element_click'; 5191 navObj.cms_element_type =cms_element_type; 5192 dataLayer.push(navObj); 5193 } 5194 }); 5195 $('.carousel-indicators').on('click', function(e){ 5196 var cms_element_type=""; 5197 const navObj = {}; 5198 cms_element_type="Image Carousel"; 5199 navObj.event= 'cms_element_click'; 5200 navObj.cms_element_type =cms_element_type; 5201 dataLayer.push(navObj); 5202 }); 5203 $('.hero_image_widget').on('click', function(e){ 5204 var cms_element_type=""; 5205 const navObj = {}; 5206 cms_element_type="Hero Image"; 5207 navObj.event= 'cms_element_click'; 5208 navObj.cms_element_type =cms_element_type; 5209 dataLayer.push(navObj); 5210 }); 5211 5212 var cmselements = '.audio_widget,.video_widget,.paragraph_widget,.social_feed,.image_feature,.carousel-layer,.image-slider-layout,.contact_us,.adminportal_widget,.tile_widget,.custom_text_widget'; 5213 var cms_element_type=""; 5214 const navObj = {}; 5215 var isImageFeature = false; 5216 $(cmselements).find('a,button,input[type="button"],img').on('click',function(){ 5217 var classname = $(this).parents(cmselements).attr('class'); 5218 if(!isImageFeature){ 5219 var parentElement = $(this).parent('a'); 5220 if (parentElement.is('a') && $(this).is('img')) { 5221 isImageFeature = true; 5222 return true; 5223 } 5224 } 5225 var currentclasses = classname.split(' '); 5226 var presentclass = ''; 5227 for(var x=0;x<currentclasses.length;x++) { 5228 if (cmselements.includes(currentclasses[x])) { 5229 presentclass = currentclasses[x]; 5230 classname = presentclass; 5231 break; 5232 } 5233 } 5234 switch (classname) { 5235 case 'audio_widget': 5236 cms_element_type="Audio"; 5237 break; 5238 case 'video_widget': 5239 cms_element_type="Video"; 5240 break; 5241 case 'paragraph_widget': 5242 cms_element_type="Paragraph"; 5243 break; 5244 case 'social_feed': 5245 cms_element_type="Social Feeds"; 5246 break; 5247 case 'image_feature': 5248 cms_element_type="Image"; 5249 break; 5250 case 'carousel-layer': 5251 cms_element_type="Image Carousel"; 5252 break; 5253 case 'image-slider-layout': 5254 cms_element_type="Image Slider"; 5255 break; 5256 case 'contact_us': 5257 cms_element_type="Contact Us form"; 5258 break; 5259 case 'adminportal_widget': 5260 cms_element_type="Admin Portal"; 5261 break; 5262 case 'tile_widget': 5263 cms_element_type="Title/Custom Grid"; 5264 break; 5265 case 'custom_text_widget': 5266 cms_element_type="Custom Text Box"; 5267 break; 5268 } 5269 navObj.event= 'cms_element_click' 5270 navObj.cms_element_type =cms_element_type 5271 dataLayer.push(navObj); 5272 isImageFeature = false; 5273 }); 5274$('.ssp-footer-layout li a').on('click', function(e){
5275 var domainname = window.location.host; 5276 var host = window.location.href; 5277 var parent=$(this).parent().parent(); 5278 var interactiontype = "parent"; 5279 var sibling= ""; 5280 var linkclasses = ""; 5281 if (parent.hasClass('dropdown-menu')) 5282 { 5283 interactiontype = "child"; 5284 sibling=parent.prev().text()+ " > "+$(this).text(); 5285 } 5286 else 5287 { 5288 sibling = $(this).text(); 5289 } 5290 var idattrvalue = $(this).attr('title'); 5291 if(idattrvalue == undefined){ 5292 idattrvalue = ""; 5293 } 5294 var hrefValue = $(this).attr('href'); 5295 if(hrefValue== "#") 5296 { 5297 hrefValue = ''; 5298 } 5299 if(hrefValue== "javascript:void(0)") 5300 { 5301 hrefValue = ''; 5302 } 5303 linkclasses = $(this).attr('class'); 5304 if(linkclasses == undefined){ 5305 linkclasses = ""; 5306 } 5307 const navObj = {}; 5308 navObj.event= 'click_nav_link' 5309 navObj.link_classes = linkclasses 5310 navObj.link_domain = domainname 5311 navObj.link_id = idattrvalue 5312 navObj.link_text = $(this).text() 5313 navObj.link_url = host+hrefValue 5314 navObj.link_breadcrumb = sibling 5315 navObj.interaction_type = interactiontype 5316 dataLayer.push(navObj); 5317 }); 5318 $(document).on('click', '#quiz_data_form input[type="radio"], #quiz_data_form input[type="checkbox"]', function() { 5319 var cms_element_type=""; 5320 const navObj = {}; 5321 cms_element_type="Quiz"; 5322 navObj.event= 'cms_element_click'; 5323 navObj.cms_element_type =cms_element_type; 5324 dataLayer.push(navObj); 5325 }); 5326 if (!window.analyticsFlag) { 5327 googleAnalyticsPageLoad(); 5328 } 5329 $(document).on('click', "#icaewloginbtn", function() { 5330 window.localStorage.setItem("icaewRecentUrl","/search-results?any=&su=commentary"); 5331 $.ajax({ 5332 type: "GET", 5333 url: '/add-icaew?recentUrl=/search-results?any=&su=commentary', 5334 success: function(response){ 5335 window.location.href="https://my.icaew.com/memberfirmaccess/bloomsbury-connect"; 5336 }, 5337 error: function(error){ 5338 console.log(error); 5339 location.reload(); 5340 } 5341 }); 5342 }); 5343 $("#icaewloginbtn").focus(); 5344</script>
vendor: 2 bytes, line 5344
5344
5345<script type="text/javascript"> 5346 yourContentAdjustment(); 5347 function yourContentAdjustment() { 5348 $(".your_content_widget").each(function(){ 5349 var container = $(this).find('.main-content-area .archieve_top').length ? $(this).find('.main-content-area .archieve_top') : $(this); 5350 var totalAccordionList = $(this).find(".yourcontent_accordion"); 5351 var accordionList = $(this).find(".yourcontent_accordion").filter(function(){ 5352 return $(this).find(".item-list").length > 0; 5353 }); 5354 var rowCount = $(this).find(".row").length; 5355 var accordionCount = accordionList.length; 5356 var numColumns = $(this).find(".yourContentColums").val(); 5357 numColumns = parseInt(numColumns)?parseInt(numColumns):0; 5358 var numEntries = $(this).find(".yourContentEntries").val(); 5359 numEntries = parseInt(numEntries)?parseInt(numEntries):0; 5360 var rowAdjustmentFlag = accordionList.length < totalAccordionList.length; 5361 if (rowAdjustmentFlag) { 5362 $(this).find('.row').remove(); 5363 } 5364 for (let i = 0; i < accordionList.length; i += numColumns) { 5365 const newRow = $('<div class="row"></div>'); 5366 for (let j = i; j < i + numColumns && j < accordionList.length; j++) { 5367 var itemListCount = $(accordionList[j]).find('.item-list').length; 5368 if (itemListCount > numEntries) { 5369 $(accordionList[j]).find(".browse-all-link").removeClass("hide"); 5370 $(accordionList[j]).find(".item-list").slice(numEntries).remove(); 5371 } else { 5372 $(accordionList[j]).find(".browse-all-link").addClass("hide"); 5373 } 5374 if (rowAdjustmentFlag) { 5375 newRow.append($(accordionList[j])); 5376 } 5377 } 5378 if (rowAdjustmentFlag) { 5379 container.append(newRow); 5380 } 5381 } 5382 if(accordionList.length == 0) { 5383 $(this).parent().addClass("hide"); 5384 } 5385 //$(this).find(".yourcontent_accordion").each(function(){}); 5386 }); 5387 $(".your_content_widget .collapse").on("shown.bs.collapse", function (e) { 5388 $(this).parent().find('.panel-heading .glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus'); 5389 }).on("hidden.bs.collapse", function(e){ 5390 $(this).parent().find('.panel-heading .glyphicon').removeClass('glyphicon-minus').addClass('glyphicon-plus'); 5391 }); 5392 } 5393</script>
5393 5394</body> 5395</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.