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?