Package biblio :: Package webquery :: Module xisbn :: Class XisbnQuery
[hide private]
[frames] | no frames]

Class XisbnQuery

source code

           object --+        
                    |        
         impl.ReprObj --+    
                        |    
basewebquery.BaseWebquery --+
                            |
                           XisbnQuery

Instance Methods [hide private]
 
__init__(self, timeout=5.0, limits=None)
C'tor.
source code
 
query_service(self, isbn, method, format, fields=['*'])
A generalised query for xISBN.
source code
 
query_bibdata_by_isbn(self, isbn, format='bibrecord')
Return publication data based on ISBN.
source code
 
query_editions_by_isbn(self, isbn, format='xml')
Return the editions associated with an ISBN.
source code
 
query_isbn(self, isbn, method, format='string')
A generalised method for ISBN queries that return ISBNs.
source code
 
query_isbn10_to_13(self, isbn, format='string') source code
 
query_isbn13_to_10(self, isbn, format='string') source code
 
query_fix_isbn_csum(self, isbn, format='string') source code
 
query_hyphenate_isbn(self, isbn, format='string') source code

Inherited from basewebquery.BaseWebquery: request

Inherited from basewebquery.BaseWebquery (private): _build_request_url

Inherited from impl.ReprObj: __repr__, __str__, __unicode__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]

Inherited from basewebquery.BaseWebquery (private): _repr_fields

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, timeout=5.0, limits=None)
(Constructor)

source code 
C'tor.
Parameters:
  • root_url - The url to be used as the basis for all requests to this service. It should be the common "stem" that does not vary for any request.
  • timeout - How many seconds to wait for a response.
  • limits - A list of QueryThrottles to impose upon the use of this webservice.
Overrides: object.__init__

query_service(self, isbn, method, format, fields=['*'])

source code 

A generalised query for xISBN.

This serves a general way of accessing all the methods available for xISBN. It also normalises the ISBn to a suitable form for submission.

Parameters:
  • isbn (string) - A normalised ISBN-10 or -13.
  • method (string) - The request type to make of xISBN.
  • format (string) - The form for the response.
  • fields (iterable) - A list of the fields to include in the response.
Returns:
The response received from the service.

query_bibdata_by_isbn(self, isbn, format='bibrecord')

source code 
Return publication data based on ISBN.
Parameters:
  • isbn (string) - An ISBN-10 or ISBN-13.
Returns:
Publication data in Xisbn XML format.

query_editions_by_isbn(self, isbn, format='xml')

source code 
Return the editions associated with an ISBN.
Parameters:
  • isbn (string) - An ISBN-10 or ISBN-13.
  • format (string) - See query_service.
Returns:
Publication data in Xisbn XML format.

query_isbn(self, isbn, method, format='string')

source code 

A generalised method for ISBN queries that return ISBNs.

This allows functionality to be shared among the ISBN conversion and checking methods.