DOCS-WEB
>
Rechercher
|
Tout lister
|
API démo
|
Connexion
INPN
login
mot de passe
[
Mot de passe perdu
]
API Démo
Références à partir de termes
Références à partir de la citation
Référence à partir du cd_doc
Démonstration
Source
<script type="text/javascript"> function refresh(){ $.ajax({ url: "https://taxref.mnhn.fr/api/sources/matchByCitation", type : "GET", data: {"citation" : $("#term").val()}, dataType: "json", success:function(data){ var listCitations = ""; if (data.hasOwnProperty('_embedded')) { $.each(data._embedded.bibliography, function() { listCitations += "<p>"; listCitations += "<strong>" + this.shortCitation + "</strong>"; listCitations += " [cd_doc = " + this.id + "]<br/>"; listCitations += this.fullCitation; var url = this.url; var file = this._links.file; if (null != url) listCitations += " [<a href=\"" + url + "\" target=\"_blank\">Consulter</a>]"; if (null != file) listCitations += " [<a href=\"" + file + "\" target=\"_blank\">Télécharger</a>]"; listCitations += "</p>"; }) $("#listCitations").html(listCitations); } else { $("#listCitations").html("Aucune réponse."); }; } }); } $(document).ready( function (){ refresh(); } ); </script> <input type=text" value="Dupont, A. (1979) Captures de Lépidoptères en 1979. Bulletin du Cercle des Lépidoptéristes de Belgique, 9: 6." id="term"/> <input type="button" value="Mettre à jour" onclick="refresh();"/> <p id="listCitations"></p>