CINXE.COM

<!DOCTYPE html> <html lang="en"> <head> <!-- Open graph meta tags for Facebook --> <!-- Change page title to match news article --> <!-- Google Tag Manager Head --> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KW2XNGZ');</script> <!-- End Google Tag Manager --> <title >Terms and conditions - University of St Andrews</title > <!-- JSON LD formatted breadcrumb information --> <script type="application/ld+json">{"@context": "https://schema.org","@type": "BreadcrumbList","itemListElement": [{"@type": "ListItem","position": 1,"name": "Terms and conditions","item": "https://www.st-andrews.ac.uk/terms/"}]}</script> <meta name="referrer" content="no-referrer" /> <meta name="channel-id" content="2"> <meta name="section-id" content="2832"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> <meta name="copyright" content="Copyright &copy; University of St Andrews" /> <meta name="rating" content="general" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link href="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/styles/screen.css" rel="stylesheet" type="text/css" media="screen" /> <link href="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/styles/print.css" rel="stylesheet" type="text/css" media="print" /> <!-- Favicons --> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/site.webmanifest"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00539b"> <meta name="msapplication-TileColor" content="#2b5797"> <meta name="theme-color" content="#ffffff"> <base href="//www.st-andrews.ac.uk/terms/"> </head> <body> <!--noindex--> <!-- Google Tag Manager Body --> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KW2XNGZ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <nav class="sr-only" id="skip" aria-label="Accessibility links"><a href="#content-begin">Skip to content</a></nav> <!-- HEADER--> <header id="header"> <div class="row"> <div id="logo-container"> <div id="header-logo"><a href="https://www.st-andrews.ac.uk/" aria-label="University of St Andrews"><span>University of St Andrews</span></a></div> </div> <div id="header-search"> <button class="btn btn-link" id="header-search-trigger" name="btnG" aria-label="Toggle search" value=""><i class="fa fa-search" aria-hidden="true"></i><span class="sr-only">Toggle search</span></button> <form action="https://www.st-andrews.ac.uk/search" method="get" role="search" class="dpl-form"> <app-root></app-root> <input type="hidden" name="collection" value="uosa-meta-global"> <input type="hidden" name="profile" value="_default"> <input type="hidden" name="form" value="partial"> </form> </div> </div> </header> <nav id="category-header" aria-label="Category header"> <div class="container"> <div class="category-header__title"><a href="/terms/">Terms and conditions</a></div> </div> </nav> <nav class="navigation-bar"> <div class="container"> <div class="toggle-navigation primary-toggle"><button class="navigation-button" aria-expanded="false" aria-controls="primary-nav">Navigation <i class="chevron down"></i></button></div> <ul class="navigation-bar-nav primary-nav" id="primary-nav"><li><a href="/terms/data-protection/">Privacy and data protection </a></li><li><a href="/terms/complaints/">Complaints handling procedure</a></li><li><a href="/terms/cookie-notice/">Cookie notice</a></li> </ul> </div> </nav> <div class="container breadcrumbs--wrapper"> <div class="row"> <div class="col-lg-12 content"> <nav aria-label="Breadcrumb"> <ol class="breadcrumbs"> <li> <a href="/">University</a></li><li>Terms and conditions</li> </ol> </nav> </div> </div> </div> <!--endnoindex--> <main id="content-begin"> <div class="container"> <div class="row"> <div class="col-sm-8 content"><h1 id="d.en.9622" class="page-heading">Terms and conditions</h1> <div id="d.en.9641" class="content-section"> <p>By accessing this website you accept and agree to the following terms and conditions.</p> <h2>Definitions</h2> <p>The University of St&nbsp;Andrews is situated in Fife, Scotland, in the United Kingdom. The term&nbsp;<strong>'the University of St&nbsp;Andrews'</strong>&nbsp;or&nbsp;<strong>'the University'</strong>&nbsp;shall include, without limitation, its faculties, Schools, research centres and administrative units.</p> <p>'<strong>University network</strong>' means any resources which are used for the transmission or reception (either wholly or in part) of any data (including voice, email, video, web content or any other types or formats of data), which are owned or operated by or on behalf of the University.</p> <p>'<strong>University services</strong>' means any and all services provided by the University or on its behalf for use by its community and members by means of, or relating to the use of, access to or interaction with, the University network. This includes the provision of any applications, information, services or facilities (either accessed directly or indirectly via the University network), email, web applications, computing facilities (including but not limited to workstations, access services for personal systems such as dial up, VPN, wireless, etc.).</p> </div> <div id="d.en.9654" class="content-section"> <hr> <h3>Disclaimer</h3> <p>By their nature, websites are subject to constant change. While all reasonable efforts are made to ensure that the content of the University's website is accurate and up to date, all content, services and materials are provided "as is" and the University reserves the right to amend, add to or remove these at any time without notice.</p> <p>Nothing on this website constitutes any part of a contract unless otherwise expressly stated. The University makes no warranty about the content of this website, including (but not limited to) the accuracy or completeness of any content. The University permits its students and staff to maintain personal pages on the website. Any views expressed on these pages do not necessarily represent the views of the University. The University may alter these terms and conditions from time to time and post the new versions on this website, following which all use of this website will be governed by that new version.</p> </div> <span id="d.en.44855"></span> <button class="accordion-group__toggle">Open all</button> <ul class="accordion-group accordion-group__toggle-container"> <li id="d.en.44842" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Access</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>Some areas of the website, University network and University services are available only to University staff, students, alumni or other authorised University users. The use of this website is subject to the University's computer and IT support.</p> <p>While the University tries to make these services (including the website) available 24 hours a day, it reserves the right to suspend or withdraw access, without notice, to either the whole or part of these services, for any reason.</p> <p>If you choose, or you are provided with, a user identification code, password or any other piece of information as part of our security procedures, then you must treat such information as confidential, and you must not disclose it to any third party. For more information about your computer account see the&nbsp;<a href="https://www.st-andrews.ac.uk/itsupport/">computer and IT support web pages</a>&nbsp;(staff and students).</p></div> </li> <li id="d.en.44843" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Accessibility</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>The University is committed to making its website as accessible and usable as possible, irrespective of the browser or platform used. Our central website has been designed to conform to&nbsp;<a href="http://www.section508.gov/">Section 508</a>&nbsp;and&nbsp;<a href="http://www.w3.org/WAI/">W3C Web Accessibility Initiative (WAI)</a>&nbsp;standards.</p> <p>See the University's accessibility statement.</p></div> </li> <li id="d.en.44844" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Complaints</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>The University of St&nbsp;Andrews recognises that there may be occasions when a student or member of the public feels that the level of service or treatment that they have received from the University has fallen short of what might reasonably be expected.</p> <p>The University has developed and implemented a complaints procedure that is compliant with the&nbsp;<em>Scottish Higher Education Model Complaints Handling Procedure</em>, published by the Scottish Public Services Ombudsman (SPSO).&nbsp;</p> <p>See the University's&nbsp;<a href="https://www.st-andrews.ac.uk/terms/complaints/">complaints handling procedure</a>.&nbsp;</p></div> </li> <li id="d.en.44845" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Cookies</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>Please see the <a href="https://www.st-andrews.ac.uk/terms/cookie-notice/">cookie notice</a>.</p></div> </li> <li id="d.en.44846" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Copyright</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>Unless stated otherwise, the copyright and other intellectual property rights in all text, images and other material on this website are owned by the University of St&nbsp;Andrews or its licensors and may not be reproduced without prior written permission.</p> <p>See also the <a href="https://www.st-andrews.ac.uk/policy/library-and-museum-services/copyright-overview.pdf">copyright overview</a>.</p></div> </li> <li id="d.en.44847" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Data protection and privacy </button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>The University of St&nbsp;Andrews recognises that personal privacy is an important issue, and we support the protection of internet privacy as required by UK legislation. Find out more about <a href="/terms/data-protection/">privacy and data protection at St&nbsp;Andrews</a>.</p></div> </li> <li id="d.en.44848" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">External websites</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>Any links to external websites provided by this website have been included for convenience only.</p> <p>The provision by the University of a link to another website does not constitute any authorisation by the University to you to access materials or services held at that location.</p> <p>The University of St&nbsp;Andrews is not responsible for the content, availability or quality of any material contained on external websites and links to external sites should not be taken as an endorsement by the University of opinions expressed or services offered by those sites.</p></div> </li> <li id="d.en.44849" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Governing law and jurisdiction</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>These terms and conditions shall be governed by and construed in accordance with the laws of Scotland and any disputes that may arise will be subject to the jurisdiction of the Scottish courts.</p> <p>You are responsible for compliance with any applicable laws of the country from which you are accessing this website.</p> <p>If any provision of these terms shall become or be declared illegal, invalid or unenforceable for any reason, such provision shall be divisible and shall be deemed deleted from these terms.</p></div> </li> <li id="d.en.44850" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Hosting</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>The University operates this website from St&nbsp;Andrews, Scotland, and makes no representation that the information contained herein is appropriate or available for use in other locations outside the United Kingdom. You are responsible for compliance with any applicable laws of the country from which you are accessing the website.</p></div> </li> <li id="d.en.44851" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Liability</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>To the fullest extent permitted by law, the University will not be held liable for any direct, indirect or consequential loss or damage arising out of the use, reliance upon content, delay, variation or failure in the provision of information held on these pages.</p> <p>The University takes all reasonable steps to ensure that the University services and the University network are error and virus free. Every effort is made to ensure downloadable content is free from viruses. The University accepts no liability for damages resulting from virus infection.</p></div> </li> <li id="d.en.44852" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">RSS feeds</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>By downloading or using a University of St&nbsp;Andrews RSS or Atom Feed (the "RSS feed") you agree to be bound by the terms of the following licence (the "licence terms").</p> <p>The University of St&nbsp;Andrews may amend the licence terms from time to time, and you should therefore review the licence terms each time you download the RSS feed. By using the RSS feed after such an amendment, you agree to be bound thereafter by the amended licence terms.</p> <h4>Copyright</h4> <p>Unless stated otherwise, the copyright and other intellectual property rights in all text, images and other material within an RSS feed are owned by the University of St&nbsp;Andrews or its licensors and may not be reproduced without prior written permission.</p> <p>See also pages on&nbsp;<a href="https://www.st-andrews.ac.uk/staff/policy/copyright/">copyright</a>.</p> <h4>Disclaimer</h4> <p>While all reasonable efforts are made to ensure that the content of the University's RSS feeds are accurate and up to date, all content, services and materials are provided "as is" and the University reserves the right to amend, add to or remove these at any time.</p> <p>While the University tries to make RSS feeds available 24 hours a day, it reserves the right to rename, suspend or withdraw access, without notice, to either the whole or part of these services, for any reason.</p> <h4>Licence</h4> <p>Subject to these licence terms, the University grants you a free, non-exclusive, non-transferable, non-sublicensable licence to display on your website the headlines, links and other information or materials that you select to receive from the University via the RSS feed ("University content").</p> <p>Except as expressly set out in these licence terms, you do not gain any ownership rights over the University content or the RSS feed. You may not use any University crest, logo or trademark on your website without the University's specific and written consent. Nothing in these licence terms shall be treated as giving any such consent.</p> <h4>Relationship with the University's website terms and conditions</h4> <p>The terms set out in the University's website terms and conditions document apply to the RSS feed in addition to these licence terms. If there is any conflict between the terms and conditions and the licence terms, the licence terms shall prevail.</p> <h4>Use of the RSS feed</h4> <ol> <li>You may not use the RSS feed or display any University content on any website that displays or contains information in the following categories: <ul> <li>information that the University considers is likely to incite hatred or that constitutes or encourages discrimination based on race, ethnicity, sexuality, gender, religion, political affiliation, social class or otherwise</li> <li>information that promotes, facilitates or condones anti-social behaviour; criminal or illegal behaviour; intimidation; violence, terrorism; vigilantism; or that risks UK national security</li> <li>information that is misleading, defamatory, pornographic or actionable at law.</li> </ul> </li> <li>You must not pass off University content as your own or anyone else's and must ensure that the University is clearly credited for University content on your website. Accreditation should be "From the University of St&nbsp;Andrews"; under no circumstances should the University be referred to as "St&nbsp;Andrews University".</li> <li>You must not make any commercial use of the feed, and University content and must not make any charge (including in-kind) for accessing the University content and using the RSS feed.</li> <li>You must provide a functional link back to the University website.</li> <li>You must not change the University content in any way or add any material to it.</li> <li>You may use the RSS feed in a 'mashup' application (an application that combines data or functionality from two or more sources into a single application) so long as these licence terms are adhered to.</li> <li>You must pass on the same licence terms to anyone gaining access to the RSS feed or University content via the website.</li> <li>Should you receive any enquiries which relate to the University of St&nbsp;Andrews or the University content, you should promptly refer such enquiries to&nbsp;<a href="mailto:itservicedesk@st-andrews.ac.uk">itservicedesk@st-andrews.ac.uk</a>.</li> </ol> <h4>Endorsement by the University</h4> <p>Nothing in these licence terms shall be treated as an endorsement by the University of the website or any material on or accessible via the website and you must not state or imply anything to the contrary.</p> <h4>Warranty and liability</h4> <p>You agree that:</p> <ul> <li>you have fully complied with and will continue to comply fully with all applicable laws and regulations</li> <li>the website shall not contain information that is actionable at law, obscene, pornographic or that may, in the University's sole opinion, bring the University into disrepute</li> <li>you agree to indemnify the University and keep the University fully and effectively indemnified in respect of all losses, costs (including legal and professional fees), damages, monies paid in settlement and other liabilities whatsoever, arising out of or in connection with a breach by you of the licence terms or use of the RSS feed and University content.</li> </ul> <h4>Termination</h4> <p>You may terminate this licence at any time by destroying or removing all copies of the RSS feed and all University content from your website, hard drives, networks and other storage media.</p> <p>The University may terminate this licence at any time for any reason without liability to you. You agree to destroy all copies of the RSS feed and University content upon receiving notice of such termination.</p></div> </li> <li id="d.en.44853" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Trademarks</button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>The University of St&nbsp;Andrews crest, logos and trademarks used and displayed on our website are the University's registered and unregistered trademarks, or those of others. You may not use these trademarks without our prior written consent, or that of the relevant owner.</p></div> </li> <li id="d.en.44854" class="accordion-item"> <div class="accordion-item__toggle"> <h3 class="accordion-item__toggle-title"> <button class="accordion-item__toggle-button" aria-controls="">Use of content </button> </h3> </div> <div class="accordion-item__content" id="" aria-hidden="true"><p>All text, images and other content on this website is copyright of the University of St&nbsp;Andrews unless explicitly stated otherwise. You may only download or copy it for the purposes of teaching, administration and research within the University, or for personal, non-commercial use. You are required to seek written permission from the University for any other use or purpose; please contact the digital communications team at&nbsp;<a href="mailto:itservicedesk@st-andrews.ac.uk">itservicedesk@st-andrews.ac.uk</a>.</p> <p>You may link to any page on the website. You are not permitted, however, to frame or page-jack the website (that is, copy keywords, meta tags, content or code from this website and place it on another website causing users or search engines to be redirected to that other site). You are not permitted to use any robot, spider, other automatic device or manual process to monitor or copy the website or the content expressed herein, other than for search engine indexing. Such search engines are expected to comply with the&nbsp;<a href="http://www.robotstxt.org/">robots exclusion protocol</a>&nbsp;as set out in any robots.txt files on the website.</p></div> </li> </ul> <!-- End: accordion group - end --> </div> <aside class="col-sm-4 sidebar content"> </aside> </div> </div> </main> <!--noindex--> <footer id="footer"> <div id="website-footer"> <div id="d.en.2484" class="container"> <div class="row"> <div class="col-sm-4"> <h2>Your St&nbsp;Andrews</h2> <ul> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/students/">Current students</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/pgstudents/">Postgraduate</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/staff/">Staff</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/semester-dates/">Semester dates</a></li> <li><a href="/jobs/">Jobs at St&nbsp;Andrews</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/policy/">Policies, procedures and guidance</a></li> </ul> </div> <div class="col-sm-4"> <h2>Navigation</h2> <ul> <li><a href="/about/schools/">Academic Schools and Departments</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/study/">Study at St&nbsp;Andrews</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/subjects/">Subjects</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/research/">Research</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/alumni/">Alumni and donors</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/community/">Community facilities</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/business-services/">Business services</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/visiting/">Visiting</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/about/">About</a></li> <li><a class="big-footer-links__link" href="https://news.st-andrews.ac.uk">News</a></li> <li><a class="big-footer-links__link" href="https://events.st-andrews.ac.uk/">Events</a></li> <li><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/contact/">Contact</a></li> </ul> </div> <div class="col-sm-4"> <h2><a class="big-footer-links__link" href="https://www.st-andrews.ac.uk/contact/">Contact us</a></h2> <address> <p><strong>University of St&nbsp;Andrews</strong><br />College Gate<br />St&nbsp;Andrews<br />KY16 9AJ</p> </address> <h3>Phone</h3> <p><a href="tel:+441334476161">+44 (0)1334 47 6161</a></p> <h3>Social media</h3> <ul> <li><a title="Facebook" href="https://www.facebook.com/uniofsta">Facebook</a></li> <li><a title="X" href="https://x.com/univofstandrews">X</a></li> <li><a title="Instagram" href="https://www.instagram.com/uniofstandrews">Instagram</a></li> <li><a title="YouTube" href="https://www.youtube.com/uofstandrews">YouTube</a></li> <li><a title="LinkedIn" href="https://www.linkedin.com/school/university-of-st-andrews/">LinkedIn</a></li> </ul> </div> </div> </div> </div> <div id="university-footer"> <div class="container"> <div class="row"> <div class="col-lg-12"> <p id="footer-charity" >漏 2024 The University of St&nbsp;Andrews is a charity registered in Scotland, No: SC013532</p> <ul id="footer-links"> <li><a class="footer-links__link cookie-control__open" aria-controls="ccc" tabindex="0">Cookie preferences</a></li> <li><a href="https://www.st-andrews.ac.uk/digital-standards/accessibility/accessibility-statement/" class="footer-links__link">Accessibility statement</a></li> <li><a href="https://www.st-andrews.ac.uk/terms/" class="footer-links__link">Terms and conditions</a></li> <li><a href="https://www.st-andrews.ac.uk/help/" class="footer-links__link">Website help</a></li> </ul> </div> </div> </div> </div> </footer> <script src="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/scripts/core.min.js" ></script> <script src="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/scripts/jquery.dataTables.min.js"></script> <script src="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/scripts/datatables.js"></script> <script src="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/scripts/lightbox.min.js"></script> <script src="https://www.st-andrews.ac.uk/~cdn/dpl/1.27.4/scripts/gallery.js"></script> <script src="https://www.st-andrews.ac.uk/s/resources-global/js/typeahead.bundle-0.11.1.min.js"></script> <script src="https://www.st-andrews.ac.uk/s/resources-global/js/handlebars-4.0.5.min.js"></script> <script src="https://www.st-andrews.ac.uk/s/resources-global/js/funnelback.autocompletion-2.6.0.js"></script> <script> jQuery(document).ready(function() { // ARIA $('.breadcrumbs li:last-child').attr('aria-current', 'page'); // Autocomplete jQuery('.form-control--autocomplete').autocompletion({ datasets: { organic: { collection: 'uosa-meta-global', profile : '_default', program: 'https://www.st-andrews.ac.uk/s/suggest.json', format: 'extended', alpha: '0.5', show: '8', sort: '0', group: true, template: { suggestion: function(context) { var pos = context.label.toLowerCase().indexOf(context.query.toLowerCase()); var pos2 = pos+context.query.length; console.log(pos + ' ' + pos2); return '<div class="tt-suggestion tt-selectable"><span class="tt-highlight">'+context.label.slice(0, pos) + "</span>" + context.label.slice(pos,pos2)+'<span class="tt-highlight">'+context.label.slice(pos2)+'</span></div>'; } } }, }, typeahead: { hint: true, highlight: false }, length: 3 }); }); </script> <script> dataLayer.push({'event':'staScripts_Loaded'}); </script> <!-- programmable layout - text/scripts --> <script src="https://www.st-andrews.ac.uk/t4-autocomplete/runtime.a92ea0e66810b490.js" type="module"></script> <script src="https://www.st-andrews.ac.uk/t4-autocomplete/polyfills.8ba94c94887e9329.js" type="module"></script> <script src="https://www.st-andrews.ac.uk/t4-autocomplete/main.50b79e24bb40e952.js" type="module"></script> <!--endnoindex--> </body > </html >

Pages: 1 2 3 4 5 6 7 8 9 10