View Single Post
Old 02-17-2022, 11:35 AM   #347
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,149
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quick question: I'm having issues with the placement of a fi:

Code:
program:
vl = current_virtual_library_name();

	if 'OVERDRIVE' inlist approximate_formats() && vl!='Loans' then 'overdrive.png'
	elif 'PAPERBOOK' inlist approximate_formats() && vl!='Physical Books' then 'book.png'

	elif '^(|Read|Unread|Currently Reading|On Device|Cleanup)$' in vl then
		if $#manualtype then 'helpbook.png'	
		elif $#fanficcat then icons_fanfic() 
		else 'view.png'	
		fi

	fi
In this one, 'view.png' only appears when the current VL is All Books|Read|Unread|Currently Reading|On Device|Cleanup.

Code:
program:
vl = current_virtual_library_name();

	if 'OVERDRIVE' inlist approximate_formats() && vl!='Loans' then 'overdrive.png'
	elif 'PAPERBOOK' inlist approximate_formats() && vl!='Physical Books' then 'book.png'

	elif '^(|Read|Unread|Currently Reading|On Device|Cleanup)$' in vl then
		if $#manualtype then 'helpbook.png'	
		elif $#fanficcat then icons_fanfic() 
		fi

	else 'view.png'	

	fi
With this, view.png doesn't appear when the current VL is All Books|Read|Unread|Currently Reading|On Device|Cleanup -- I think the fi after icons_fanfic() is making the template stop processing?

If I want view.png to appear on any book that doesn't match the other checks on any VL, where should I put it?

Last edited by ownedbycats; 02-17-2022 at 11:49 AM.
ownedbycats is offline   Reply With Quote