When cart is ENabled but opac login is DISabled or user not logged in, the Add to Cart link is not shown. This is caused by an error in the ready function. The ready function refers to .tagbutton which does not exist in this context. Adding the conditionals for opacuserlogin and loggedinusername around this statement resolves the error and restores Add to Cart. NOTE: Problem appears only on Normal view tab. MARC view and ISBD are fine. Additionally, the position in the list is adjusted to conform with MARC and ISBD: Add to Your Cart now follows Save to Your Lists. This is done by moving it from the ready function to the template html, reducing some additional checks in ready and doing it conform with the templates of the MARC/ISBD views. Test this patch by toggling the values of opacuserlogin, opacbookbag as well as being logged in/out if applicable.
Pushed, please test and mark resolved
Works for me. Anyone else to close it?