opac-account.pl does not include login branchcode, whereas the other pages (opac-user, opac-memberentry, opac-passwd, opac-readingrecord, opac-suggestions, opac-messaging, opac-shelves)available to users on login DO provide the login branchode. Having the login branchcode available on opac-account.pl would facilitate customization of the OPAC for individual branches.
Got a fix for this but it's on a kohadevbox that I'm not really friends with yet :) I'll see if I can get the patch up on monday. It seems to only be an issue of removing the hardcoded line to get the correct class.
Created attachment 57782 [details] [review] Bug 17652: opac-account.pl does not include login branchcode opac-account.pl does not include the login branchcode, whereas the other pages available to users (opac-user, opac-memberentry, opac-passwd, opac-readingrecord, opac-suggestions, opac-messaging, opac-shelves, etc.) on login DO provide the login branchcode. Having the login branchcode available on opac-account.pl would facilitate customization of the OPAC for individual branches. To test: 1) Login to the OPAC and open /cgi-bin/koha/opac-account.pl 2) Inspect the body tag and observe the class attribute does not include the login branchcode. 3) Apply the patch. 4) Repeat step 2. 5) Observe that the login branchcode is present.
Created attachment 57816 [details] [review] Attachment to Bug 17652 - opac-account.pl does not include login branchcode Bug 17652: opac-account.pl does not include login branchcode opac-account.pl does not include the login branchcode, whereas the other pages available to users (opac-user, opac-memberentry, opac-passwd, opac-readingrecord, opac-suggestions, opac-messaging, opac-shelves, etc.) on login DO provide the login branchcode. Having the login branchcode available on opac-account.pl would facilitate customization of the OPAC for individual branches. To test: 1) Login to the OPAC and open /cgi-bin/koha/opac-account.pl 2) Inspect the body tag and observe the class attribute does not include the login branchcode. 3) Apply the patch. 4) Repeat step 2. 5) Observe that the login branchcode is present. Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Created attachment 57907 [details] [review] Bug 17652: opac-account.pl does not include login branchcode opac-account.pl does not include the login branchcode, whereas the other pages available to users (opac-user, opac-memberentry, opac-passwd, opac-readingrecord, opac-suggestions, opac-messaging, opac-shelves, etc.) on login DO provide the login branchcode. Having the login branchcode available on opac-account.pl would facilitate customization of the OPAC for individual branches. To test: 1) Login to the OPAC and open /cgi-bin/koha/opac-account.pl 2) Inspect the body tag and observe the class attribute does not include the login branchcode. 3) Apply the patch. 4) Repeat step 2. 5) Observe that the login branchcode is present. Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Certainly caused by bug 12162.
Pushed to master for 17.05, thanks Chris!
This patch has been pushed to 16.11.x, will be in 16.11.01.
Pushed to 3.22.x for 3.22.14
Pushed to 16.05.x, for 16.05.07 release