#NEWLINE# def display_ill_link( holdings ) : #NEWLINE# #INDENT# y = 0 #NEWLINE# for holding in holdings : #NEWLINE# #INDENT# for loc in settings . INELIGIBLE_ILL_LOCS : #NEWLINE# #INDENT# if ( loc . lower ( ) in holding . get ( 'LOCATION_DISPLAY_NAME' , '' ) . lower ( ) ) : #NEWLINE# #INDENT# y = ( y + 1 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( y == len ( holdings ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# x = 0 #NEWLINE# for holding in marc856 : #NEWLINE# #INDENT# if holding . get ( 'MFHD_DATA' , None ) : #NEWLINE# #INDENT# for marc856 in holding [ 'MFHD_DATA' ] [ 'marc856list' ] : #NEWLINE# #INDENT# components = urlparse . urlparse ( marc856 [ 'u' ] ) #NEWLINE# if ( components . scheme and components . netloc ) : #NEWLINE# #INDENT# x = ( x + 1 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if ( x == len ( holdings ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return True