http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5863 Bug #: 5863 Summary: Add to Your Cart disappeared if login disabled on opac detail Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: ASSIGNED Severity: minor Priority: PATCH-Sent Component: OPAC AssignedTo: m.de.rooy@rijksmuseum.nl ReportedBy: m.de.rooy@rijksmuseum.nl QAContact: koha-bugs@lists.koha-community.org 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. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.