#NEWLINE# def availability( request ) : #NEWLINE# #INDENT# '\n    API call for getting the availability for a particular bibid.\n    ' #NEWLINE# bibid = request . GET . get ( 'bibid' ) #NEWLINE# if ( not bibid ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# return HttpResponse ( json . dumps ( db . get_availability ( bibid ) , indent = 2 ) , content_type = 'application/json' )