#NEWLINE# def oclc( request , oclc ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# bibid = voyager . get_primary_bibid ( num = openurl , num_type = 'oclc' ) #NEWLINE# openurl = _openurl_dict ( request ) #NEWLINE# if bibid : #NEWLINE# #INDENT# url = ( '%s?%s' % ( reverse ( 'item' , args = [ bibid ] ) , openurl [ 'query_string_encoded' ] ) ) #NEWLINE# return redirect ( url ) #NEWLINE# #UNINDENT# return non_wrlc_item ( request , num = oclc , num_type = 'oclc' ) #NEWLINE# #UNINDENT# except DatabaseError : #NEWLINE# #INDENT# return redirect ( 'error503' )