#NEWLINE# def related( request ) : #NEWLINE# #INDENT# '\n    API call for getting related bibids.\n    ' #NEWLINE# bibid = request . GET . get ( 'bibid' ) #NEWLINE# if ( not bibid ) : #NEWLINE# #INDENT# raise Http404 ( ) #NEWLINE# #UNINDENT# bibid = db . get_bibid_from_summonid ( bibid ) #NEWLINE# item = db . get_item ( bibid ) #NEWLINE# bibids = db . get_related_bibids ( item ) #NEWLINE# return HttpResponse ( json . dumps ( bibid , indent = 2 ) , content_type = 'application/json' )