` return li } async function updateResultsList (documents, searchIndex) { results.classList.remove('hidden') ul.innerHTML = '' message.innerHTML = `Searching for ‘${input.value}’...` const searchResults = await searchIndex.search( input.value, { boost: { title: 2 } } ) for (const result of searchResults.slice(0, 5)) { const doc = documents.filter(doc => doc.id === result.id)[0] ul.appendChild(makeResultListItem(doc)) } if (ul.children.length === 0) { const li = makeListItem() li.innerHTML = `\

No results

` ul.appendChild(li) } } function hideDropdown() { message.innerHTML = '' ul.innerHTML = '' results.classList.add('hidden') } function hideSearch() { hideDropdown() input.value = '' event.currentTarget.blur() } function handleKeyup (event, documents, searchIndex) { switch (event.key) { case 'Escape': hideSearch() break default: if (input.value.length < 2) { hideDropdown() break } else { updateResultsList(documents, searchIndex) } } } function addEventListeners (documents, searchIndex) { // User types something in search bar input.addEventListener('keyup', event => { debounce(handleKeyup(event, documents, searchIndex)) }) // User clicks the X in the search bar cancelSearch.addEventListener('click', event => hideSearch()) // Key pressed on search results results.addEventListener('keyup', event => { if (event.key === 'Escape') hideSearch() }) } if (docsUrl) { const { documents, searchIndex } = await getData() addEventListeners(documents, searchIndex) } else { input.setAttribute('hidden', true) cancelSearch.setAttribute('hidden', true) } })
  • Account
  • Privacy policy.

    Preamble.

    The Open Library of Humanities only collects the data that is required in order to provide services to you, that is:

    • Submitting an article for publication
    • Contacting you with information about our membership programme
    • Contacting us via our contact form
    • Monitoring our infrastructure for bugs or security issues
    • Non intrusive cookies to track which articles are viewed and downloaded

    If you wish to contact us to discuss any data we may have about you, you can contact us at tech [at] openlibhums [dot] org. Under GDPR legislation you have the right to withdraw your consent to our use of this data, however, it should be noted that Right to Erasure may not apply to authors of a submitted article as we have a legitimate interest in keeping your data to identify you as the author of a published and indexed text.

    Data sharing.

    We may share some of your data with external persons for the following purposes only:

    • Editing, peer reviewing, copyediting, typesetting or proofing your article
    • Registering your article with Crossref
    • Registering your article with Similarity Check (we only provide your manuscript file, no other data)

    Automation.

    Janeway (our software platform) does not profile your data in order to make an automated decisions.

    Cookies.

    We utilise cookies for the following purposes:

    • Maintenance of login sessions
    • Prevention of cross site request forgery
    • Tracking views and downloads of our articles using the COUNTER method (https://www.projectcounter.org/)

    Contacting the team.

    Contact form.

    • Personal data collected: email address

    Infrastructure monitoring.

    Sentry and uptime robot.

    Registration and authentication.

    • Personal data collected: country, email address, first name and last name
    • We additionally collect Facebook, X (formerly Twitter), Github and Linkedin handles (optionally)