Open Bibliography and Open Bibliographic Data » docs http://openbiblio.net Open Bibliographic Data Working Group of the Open Knowledge Foundation Tue, 08 May 2018 15:46:25 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.1 Getting bibliographica content via jquery http://openbiblio.net/2011/02/16/getting-bibliographica-content-via-jquery/ http://openbiblio.net/2011/02/16/getting-bibliographica-content-via-jquery/#comments Wed, 16 Feb 2011 15:03:15 +0000 http://openbiblio.net/?p=713 Continue reading ]]> It is possible to get records of the British Library dataset by requesting output from bibliographica via jquery. Here is an example:

<!-- get a copy of jquery locally -->
&lt;!--

--&gt;

<!-- get a copy of jquery from google CDN -->



<!-- add the jquery to do useful stuff -->


// on document ready, do something
$(document).ready(function() {

    // insert a hello world to check this is working
    $('body').html("hello world");

    // do an ajax jquery call
    // this just callls to a url
    // which is at http://bnb.bibliographica.org
    // appended with
    // /entry/GB5000065.json to get that particular record in json
    $.ajax(
        {   type: "get",
            url: "http://bnb.bibliographica.org/entry/GB5000065.json",
            dataType: "json",
            success: function(data) {
                // on success, do something with the output data
                for ( item in data ) {
                    alert("here is an item name " + item);
                }
            },
        }
    );
})







<!-- we do not need anything in here -->

This works in Firefox at least…

]]>
http://openbiblio.net/2011/02/16/getting-bibliographica-content-via-jquery/feed/ 0
Using the bibliographica sparql API http://openbiblio.net/2011/02/16/using-the-bibliographica-sparql-api/ http://openbiblio.net/2011/02/16/using-the-bibliographica-sparql-api/#comments Wed, 16 Feb 2011 14:54:34 +0000 http://openbiblio.net/?p=711 Details about how to use the sparql API on bibliographica are available at http://bibliographica.org/demos/sparql.html.

]]>
http://openbiblio.net/2011/02/16/using-the-bibliographica-sparql-api/feed/ 0