CINXE.COM
Biota of NZ
<!DOCTYPE html> <html lang="en"> <head> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src='https://www.googletagmanager.com/gtag/js?id=G-BXK73T3LSQ'></script> <script nonce="h8ogtWOMduxJL3ZFRuUNzaWBtKgAZ/fWT1u5ZZ5ntSs="> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-BXK73T3LSQ', { cookie_domain: document.location.hostname, cookie_flags: 'max-age=7200;secure;samesite=none' }); </script> <meta charset="UTF-8"> <title>Biota of NZ</title> <meta name="description" content="Find out information about the fungi, invertebrates and plants that are found in, or relevant to Aotearoa - New Zealand."> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type="image/x-icon" href="/images/favicon.ico"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@2.4.21/dist/css/themes/splide-sea-green.min.css" /> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.7.0/nouislider.min.css" integrity="sha512-40vN6DdyQoxRJCw0klEUwZfTTlcwkOLKpP8K8125hy9iF4fi8gPpWZp60qKC6MYAFaond8yQds7cTMVU8eMbgA==" crossorigin="anonymous" /> <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.7.0/nouislider.min.js" integrity="sha512-jWNpWAWx86B/GZV4Qsce63q5jxx/rpWnw812vh0RE+SBIo/mmepwOSQkY2eVQnMuE28pzUEO7ux0a5sJX91g8A==" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/wnumb/1.2.0/wNumb.min.js" integrity="sha512-igVQ7hyQVijOUlfg3OmcTZLwYJIBXU63xL9RC12xBHNpmGJAktDnzl9Iw0J4yrSaQtDxTTVlwhY730vphoVqJQ==" crossorigin="anonymous"></script> <link rel="stylesheet" type="text/css" href="/_content/Biota.Portals.Web.Shared/css/mwlr.css?v=hP8uwh8tSbyIj58MeZlFZeplqAxfW3aq578yzW61Ft4" /> <link rel="stylesheet" type="text/css" href="/_content/Biota.Portals.Web.Shared/css/biota.css?v=zQSYjq3jY0-zpmBShicZEq9JSJI3DoeVkAoJP_BSyk0" /> <link rel="stylesheet" type="text/css" href="/_content/Biota.Portals.Web.Shared/css/table.css?v=u_9VLO1pTIbcuGSRlIfZ956XvVbWkelSbZ2BDzSCAdg" /> <link rel="stylesheet" type="text/css" href="/_content/Biota.Portals.Web.Shared/css/biota-overrides.css?v=6sUTnlr1cgMWTyPOOtbQyoZ85dEfoOHepnVeXGV_nb8" /> <link rel="stylesheet" type="text/css" href="/css/systematics-portal.css?v=21qxtydlbCtS1gkucEydnz0EOQ-IGPcTMd_HRYe8qmA" /> <link rel="stylesheet" media="print" href="/_content/Biota.Portals.Web.Shared/css/print.css?v=ANkq9EMhbRDT7bwWYLp5-6zcS8xwYeqZ5gxuuu7G7Bk" /> </head> <body> <div class="container-fluid"> <header id="header" class="row pt-4 pb-3"> <div class="offset-md-1 col-md-7 mw-100 me-5 pe-5"> <div class="page-header ps-0"> <h1 class="d-none d-print-inline"><strong>BIOTA</strong>of NEW ZEALAND</h1> <a href="/" class="d-none d-md-block d-lg-block page-title d-print-none"><h1 class="d-print-block"><strong>BIOTA</strong> of NEW ZEALAND</h1></a> <a href="/" class="d-none d-sm-block d-md-none d-print-none"><span class="d-print-block">BIOTAofNZ</span></a> <div class="d-inline-block"> <h4>Names and classification of bacteria, fungi, land invertebrates and plants</h4> </div> </div> </div> <div class="logo-wrapper col-md-3 mw-100"> <a href="https://www.landcareresearch.co.nz/" target="_blank"> <picture> <source media="(min-width:768px)" alt="Manaaki Whenua - Landcare Research" title="Manaaki Whenua - Landcare Research" srcset="/_content/Biota.Portals.Web.Shared/images/mwlr-logo-landscape-275-white.svg" class="float-end pt-0"> <img alt="Manaaki Whenua - Landcare Research" title="Manaaki Whenua - Landcare Research" src="/_content/Biota.Portals.Web.Shared/images/mwlr-logo-landscape-233-white.svg" class="float-end pt-2"> </picture> </a> </div> </header> <div id="page-body"> <div class="row d-print-none"> <div class="col other-nav-search"> <div class="row ps-0 d-print-none"> <div class="col-md-10 offset-md-1"> <ul class="nav mt-3"> <li class="nav-item"> <a class="nav-link " href="/">Home</a> </li> <li class="nav-item"> <a class="nav-link active" href="/about">About</a> </li> <li class="nav-item"> <a class="nav-link " href="/terms-of-use">Terms of use</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"> Related resources </a> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="https://www.landcareresearch.co.nz/tools-and-resources/collections/" target="_blank">Biological Collections</a></li> <li><a class="dropdown-item" href="https://www.nzflora.info/" target="_blank">Electronic Flora of New Zealand</a></li> <li><a class="dropdown-item" href="https://floraseries.landcareresearch.co.nz/" target="_blank">Flora of New Zealand Series</a></li> <li><a class="dropdown-item" href="https://www.landcareresearch.co.nz/tools-and-resources/identification" target="_blank">Identification tools</a></li> <li><a class="dropdown-item" href="https://interestinginsects.landcareresearch.co.nz/" target="_blank">Interesting Insects</a></li> <li><a class="dropdown-item" href="https://rauropiwhakaoranga.landcareresearch.co.nz/" target="_blank">Ngā Rauropi Whakaoranga</a></li> <li><a class="dropdown-item" href="https://scd.landcareresearch.co.nz/" target="_blank">Systematics Collection Data</a></li> </ul> </li> </ul> </div> </div> <div class="row pb-4 search-row"> <div class="col-sm-12 col-md-10 offset-md-1 col-lg-8 offset-lg-2 col-xl-8 offset-xl-2 d-print-none"> <form id="form" class="align-items-center" method="get" autocomplete="off" action="/search"> <div class="input-group input-group-lg"> <select class="btn" id="searchDropdownOption" name="facets"><option selected="selected" value="">All records</option> <option value="source:"Names_Fungi"">Bacteria & Fungi Names</option> <option value="source:"Names_NZAC"">Invertebrate Names</option> <option value="source:"Names_Plants"">Plant Names</option> </select> <input class="form-control" type="text" placeholder="Search Biota of NZ..." aria-label="Enter search term" name="query" id="query" value="" autocomplete="off"> <button id="search-button" type="submit" form="form" title="Search" class="btn btn-dark btn-sm search-svg-button" aria-label="Search Biota of NZ"> <img class="search-svg-icon" alt="Click to search" title="Click to search" src="/_content/Biota.Portals.Web.Shared/images/icons/svg/search-icon-white.svg" /> </button> <a target="_blank" title="Search help" class="btn btn-dark btn-sm search-svg-button" style="border-left: white 1px solid;" aria-label="Search help" href="/search-syntax"> <img style="padding-top: 3px;" class="search-svg-icon" alt="Click for help" title="Click for help" src="/_content/Biota.Portals.Web.Shared/images/icons/svg/help-icon-white.svg" /> </a> </div> <div style="color: white; padding-top: 0.4rem;"> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="searchType" value="all" checked="checked" /> <label class="form-check-label" for="searchAll">All data</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="searchType" value="associations" /> <label class="form-check-label" for="searchAssociations">Associations</label> </div> </div> </form> </div> </div> </div> </div> <div class="row"> <div class="page-content-wrapper col-lg-9 pt-5 pb-5 ps-5 order-1 order-lg-2"> <div class="page-content"> <h2 class="page-heading-h2"> About </h2> <div class="clearfix"> <div class="float-sm-end ms-sm-4"> <div class="supporting-image"> <img class="loading-img" title="© P.R. Johnston 2010. [Image: 3V1Q]" alt="© P.R. Johnston 2010. [Image: 3V1Q]" src="https://data.landcareresearch.co.nz/Image/3V1Q/PreviewSheet" loading="lazy" /> <span class="text-end">© P.R. Johnston 2010. [Image: 3V1Q]</span> </div> </div> <div class="lede"> <Text> <p>An overview of Biota of New Zealand.</p> </Text> </div> <div> <div> <p>Biota of New Zealand provides access to information about the fungi, land invertebrates and plants as well as some virus and bacteria that are found in, or relevant to, Aotearoa – New Zealand.</p> <h3>Scope of information provided</h3> <p>The information provided is the taxonomic and nomenclatural data associated with the collections managed by Manaaki Whenua – Landcare Research. It includes</p> <ul> <li>scientific names. Details on a record may include <ul> <li>the publication details for the name</li> <li>associated taxonomy information including the status as a current (preferred) name or synonym, place in the higher classification</li> <li>biostatus details (origin and occurrence) if it is considered a current name</li> <li>descriptions and identification keys</li> <li>images of the taxon or associated specimens</li> <li>vernacular names</li> </ul> </li> <li>vernacular (common) names <ul> <li>details on the origin of the vernacular name (when available)</li> <li>details on the application of the vernacular name</li> </ul> </li> <li>references - the literature associated with taxonomic and nomenclatural data. Details may include <ul> <li>the taxonomy and names used in the reference</li> <li>descriptions published in the reference</li> </ul> </li> </ul> <p>For Biota of New Zealand "relevant" includes information for the taxa that are found naturally in, or introduced to, Aotearoa New Zealand. It also includes taxa that may be absent from Aotearoa New Zealand, for example taxa intercepted at the border. The data also includes scientific names that have been historically incorrectly used for organisms in New Zealand, so called misapplications.</p> <p>The taxonomic groups covered by the data are</p> <ul> <li>fungi</li> <li>land invertebrates - including insects and nematodes</li> <li>"plants" - including seed plants, ferns and allies, mosses, liverworts, hornworts, lichens, and some algae (mainly fresh-water)</li> <li>plant pathogenic bacteria and virus</li> </ul> </div> <div> <h3>Data sources</h3> <p>Biota of NZ combines the data from three data sources</p> <table class="line-columnheader" tableId="17e01fd0-e81a-11eb-b7a5-a3903c3c4e36"> <thead> <tr> <th>Source database</th> <th>Abbreviation</th> </tr> </thead> <tbody> <tr> <td><a href="https://www.landcareresearch.co.nz/tools-and-resources/databases/nzfungi-new-zealand-fungi-and-bacteria/" target="_blank">Ngā Harore o Aotearoa – New Zealand Fungi and Bacteria</a></td> <td>Names_Fungi</td> </tr> <tr> <td><a href="https://www.landcareresearch.co.nz/tools-and-resources/databases/ko-te-aitanga-pepeke-o-aotearoa-new-zealand-land-invertebrates/" target="_blank">Ko te Aitanga Pepeke o Aotearoa – New Zealand Land Invertebrates</a></td> <td>Names_NZAC</td> </tr> <tr> <td><a href="https://www.landcareresearch.co.nz/tools-and-resources/collections/allan-herbarium/nga-tipu-aotearoa-new-zealand-plants/" target="_blank">Ngā Tipu o Aotearoa – New Zealand Plants Names Database</a></td> <td>Names_Plants</td> </tr> </tbody> </table> <p>The source of each record is indicatedthe search results and the detailed view of the record, it can also be used to filter search results.</p> <h3>Currency of data</h3> <p>We attempt to keep these sources up-to-date with the scientific literature. The data within each of the sources is therefore edited on a daily basis. These changes are published to the website automatically, and will normally appear within 15 minutes of an editor updating the record.</p> <p>The updated date in the metadata of a record indicates when a record was last modified. The updated date should be used only to indicate there has been recent work in that taxonomic area that we have captured in the databases. It should not be taken to indicate that a record is out of date if it is not recent. Taxonomic areas vary in the rates of taxonomic and nomenclatural change, reflecting the differences of scientific understanding and/or endeavour.</p> </div> <div> <h3>Notification service</h3> <p>A notification service for changes to data is available as an ATOM feed for:</p> <ul> <li>Names_Plants – <a href="https://nzflora.landcareresearch.co.nz/feed" target="_blank">https://nzflora.landcareresearch.co.nz/feed</a></li> <li>Names_Fungi – <a href="https://nzfungi2.landcareresearch.co.nz/feed" target="_blank">https://nzfungi2.landcareresearch.co.nz/feed</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-12 col-lg-3 mw-100 sidebar-other ps-sm-5 pt-3 pb-5 order-2 order-lg-1 d-print-none"> <div class="sticky-top"> <div class="heading-divider mt-4"> </div> <div class="nav-links"> <div class="sidebar-item"> <a class="active" href="/about"> About </a> </div> <div class="sidebar-item"> <a class="" href="/getting-started"> Getting started </a> </div> <div class="sidebar-item"> <a class="" href="/help"> Help </a> </div> <div class="sidebar-item"> <a class="" href="/field-definitions"> Field definitions </a> </div> <div class="sidebar-item"> <a class="" href="/download"> Downloading records </a> </div> <div class="sidebar-item"> <a class="" href="/faq"> FAQ </a> </div> <div class="sidebar-item"> <a class="" href="/glossary"> Glossary </a> </div> <div class="sidebar-item"> <a class="" href="/search-syntax"> Search syntax </a> </div> <div class="sidebar-item"> <a class="" href="/checklists"> Checklists </a> </div> <div class="sidebar-item"> <a class="" href="/acknowledgements"> Acknowledgements </a> </div> <div class="sidebar-item"> <a class="" href="/privacy"> Privacy policy </a> </div> <div class="sidebar-item"> <a class="" href="/terms-of-use"> Terms of use </a> </div> <div class="sidebar-item"> <a class="" href="/contact-us"> Contact us </a> </div> </div> </div> </div> </div> </div> </div> <div id="back-to-top"> <a href="#"> <div class="back-to-top"> <div> <img class="top-image" alt="Click to go back to the top of the page" title="Click to go back to the top of the page" src="/_content/Biota.Portals.Web.Shared/images/icons/top-white-50px.png" /> </div> <div> <strong>Top</strong> </div> </div> </a> </div> <div id="shareModal" class="modal fade" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title mt-1">Share</h4> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div id="copyUrlMessage" class="invisible mb-2 alert-error">Error copying URL.</div> <div class="input-group mb-3"> <input type="text" id="url" class="form-control" placeholder="URL" aria-label="URL" aria-describedby="URL"> <span class="input-group-text clickable" id="copyUrl">Copy</span> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> <div id="citationModal" class="modal fade" role="dialog" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title mt-1">Citation</h4> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div id="copyCitationMessage" class="invisible mb-2 alert-error">Error copying citation.</div> <div class="form-group mb-3"> <div id="citation" rows="5" aria-label="Citation" aria-describedby="Citation"></div> <div class="clickable float-end mt-3"> <span class="input-group-text clickable" id="copyCitation">Copy</span> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> <div id="rangeSliderErrorModal" class="modal fade" role="dialog" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Error</h4> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <p>The value you have selected falls outside of either the minimum or maximum range allowed.</p> <p id="valid-range"></p> <p>Please try again.</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> <div id="dynamicModal" class="modal fade" role="dialog" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"></h4> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"></div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> <footer class="py-5 mh-100 ps-sm-4 pe-4"> <div class="row d-print-none"> <div class="col-md-2 offset-md-1 mw-100"> <h3>General</h3> <ul class="text-start list-inline"> <li><a href="https://www.landcareresearch.co.nz/" target="_blank">Manaaki Whenua</a></li> <li><a href="/privacy">Privacy policy</a></li> <li><a href="/terms-of-use">Terms of use</a></li> </ul> </div> <div class="col-md-3 ms-md-5 mw-100"> <h3>Contact details</h3> <ul class="text-start list-inline"> <li> <img class="contact-svg-icon me-2 img-vertical-centering" alt="Contact phone icon" title="Contact phone icon" src="/_content/Biota.Portals.Web.Shared/images/icons/svg/phone-icon-white.svg" /> +64 3 321 9999 </li> <li> <img class="contact-svg-icon me-2 img-vertical-centering" alt="Contact email icon" title="Contact email icon" src="/_content/Biota.Portals.Web.Shared/images/icons/svg/email-icon-white.svg" /> <a href="mailto:BiotaNZ@landcareresearch.co.nz?subject=Contact%20us%20-%20Biota%20NZ">BiotaNZ@landcareresearch.co.nz</a> </li> <li> <img class="contact-svg-icon me-2 img-vertical-centering" alt="Contact address icon" title="Contact address icon" src="/_content/Biota.Portals.Web.Shared/images/icons/svg/phyical-address-icon-white.svg" /> PO Box 69040, Lincoln, New Zealand </li> </ul> </div> <div class="col-md-2 ms-md-5"> <h3>Using Biota of NZ</h3> <ul class="text-start list-inline"> <li><a href="/getting-started">Getting started</a></li> <li><a href="/about">About</a></li> <li><a href="/faq">FAQ</a></li> <li><a href="/help">Help</a></li> <li><a href="/search-syntax">Search syntax</a></li> </ul> </div> <div class="col-md-2 ms-md-5"> <h3>About the data</h3> <ul class="text-start list-inline"> <li><a href="/field-definitions">Field definitions</a></li> <li><a href="/glossary">Glossary</a></li> <li><a href="/checklists">Checklists</a></li> </ul> </div> </div> <div id="copy-right" class="row pt-5"> <div class="col-md-10 offset-md-1"> © Manaaki Whenua – Landcare Research 2024 </div> </div> <div class="row pt-0 d-print-none"> <div class="col-md-10 offset-md-1"> Version 1.4.0-build-2823-main+33122fef203fd6809522f04f09a0368aa461852e </div> </div> </footer> <div id="imageModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="imageModalTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered image-modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title m-0" id="imageModalTitle">Biota of NZ</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body image-modal-body"> <button id="nextImageModalBtn" class="large-img-modal-arrow modal-arrow-right" type="button"><img src="/_content/Biota.Portals.Web.Shared/images/icons/svg/splide-arrow.svg" /></button> <button id="previousImageModalBtn" class="large-img-modal-arrow modal-arrow-left" type="button"><img style="transform: scaleX(-1);" src="/_content/Biota.Portals.Web.Shared/images/icons/svg/splide-arrow.svg" /></button> <img id="modalImage" class="img-fluid image-modal-img" src="" /> </div> <div id="modalImageMetadata" class="modal-footer image-modal-footer"> <span id="modalImageCaption" class="float-start"></span> <div class="clearfix m-0"></div> <span id="modalImageAttribution" class="float-end"></span> </div> </div> </div> </div> <div id="imageModalFromGallery" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="imageModalFromGalleryTitle" aria-hidden="true" style="z-index: 1200"> <div class="modal-dialog modal-dialog-centered image-modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title m-0" id="imageModalFromGalleryTitle">Biota of NZ</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body image-modal-body"> <img id="modalImageFromGallery" class="img-fluid image-modal-img" src="" /> </div> <div id="modalImageFromGalleryMetadata" class="modal-footer image-modal-footer"> <span id="modalImageFromGalleryCaption" class="float-start"></span> <div class="clearfix m-0"></div> <span id="modalImageFromGalleryAttribution" class="float-end"></span> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha512-72WD92hLs7T5FAXn3vkNZflWG6pglUDDpm87TeQmfSg8KnrymL2G30R7as4FmTwhgu9H7eSzDCX3mjitSecKnw==" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/@splidejs/splide@2.4.21/dist/js/splide.min.js" integrity="sha512-AXCK6flWU3k7e+78hcZM+elMxbpq+M93sMBjHY6HzncKCDdAXDY4ATPTuMjAcAqq2dM2YsEfA6pPl9+vKvJDMw==" crossorigin="anonymous"></script> <script type="text/javascript" src="/_content/Biota.Portals.Web.Shared/js/general-functions.js?v=SvYfLTkXUw8hb9GXW520n0iKSwbrqa2dOkaEWE6lalE"></script> <script type="text/javascript" nonce="h8ogtWOMduxJL3ZFRuUNzaWBtKgAZ/fWT1u5ZZ5ntSs="> let returnUrl = null; function updateMessages(result) { let message = ""; if (!result.Information == "") { let message = "<p><span class='label label-success'><i class='icon-ok icon-white'></i></span> " + result.Information + "</p>"; } $('#message').html(message); let errorMessage = ""; if (!result.Error == "") { let errorMessage = "<p><span class='label label-important'><i class='icon-ban-circle icon-white'></i></span> " + result.Error + "</p>"; } $('#error').html(errorMessage); } function goToReturnUrl() { if (returnUrl != null) { window.location = returnUrl; } } $('#search-button').click(function () { if ($.trim($("#query").val()) === "") { return false; } }); $('#shareModal').on('shown.bs.modal', function () { let url = ''; if (location.href.includes('search')) { url = location.href; } else { url = location.href.split('?')[0]; } $("#url").val(url); $("#copyUrl").text('Copy'); }); function copyUrl() { navigator.clipboard.writeText($("#url").val()) .then(() => { $("#copyUrl").text('Copied'); }) .catch((error) => { $('#copyUrlMessage').removeClass('invisible'); $('#copyUrlMessage').addClass('visible'); console.log(`Error copying URL: ${error}`); }) }; function copyCitation() { navigator.clipboard.writeText($("#citation").text()) .then(() => { $("#copyCitation").text('Copied'); }) .catch((error) => { $('#copyCitationMessage').removeClass('invisible'); $('#copyCitationMessage').addClass('visible'); console.log(`Error copying citation: ${error}`); }) } </script> </body> </html>