$(".name-elements").append("<spanclass='mobile-pdf'>The PDF cannot be displayed on mobile. Please download the file to see it.</span>"+"<li><objectclass='listed-pdf'data='files/"+ledocument+"'/><br><br><spanclass='librarians-label'><b>Librarian(s):</b> "+librarianstring+"</span><br><spanclass='method-label'><b>Method:</b> "+methodstring+"</span><br><br><ahref='/files/"+ledocument+"'download><buttonclass='download'>Download file</button></a></li>");
$(".name-elements").append("<li><spanclass='mobile-pdf'>The PDF cannot be displayed on mobile. Please download the file to see it.</span><objectclass='listed-pdf'data='files/"+ledocument+"'/><br><br><spanclass='librarians-label'><b>Librarian(s):</b> "+librarianstring+"</span><br><spanclass='method-label'><b>Method:</b> "+methodstring+"</span><br><br><ahref='/files/"+ledocument+"'download><buttonclass='download'>Download file</button></a></li>");
}
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
$(".name-elements").append("<spanclass='mobile-pdf'>The PDF cannot be displayed on mobile. Please download the file to see it.</span>"+"<li><objectclass='listed-pdf'data='files/"+ledocument+"'/><br><br><spanclass='librarians-label'><b>Librarian(s):</b> "+librarianstring+"</span><br><spanclass='method-label'><b>Method:</b> "+methodstring+"</span><br><br><ahref='/files/"+ledocument+"'download><buttonclass='download'>Download file</button></a></li>");
$(".name-elements").append("<li><spanclass='mobile-pdf'>The PDF cannot be displayed on mobile. Please download the file to see it.</span><objectclass='listed-pdf'data='files/"+ledocument+"'/><br><br><spanclass='librarians-label'><b>Librarian(s):</b> "+librarianstring+"</span><br><spanclass='method-label'><b>Method:</b> "+methodstring+"</span><br><br><ahref='/files/"+ledocument+"'download><buttonclass='download'>Download file</button></a></li>");
}
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {