$(".name-elements").append("<spanclas='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("<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>");
}
}
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
$(".name-elements").append("<spanclas='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("<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>");
}
}
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {
else if ((extension=="mp3") || (extension=="wav") || (extension=="m4a")) {