8de80449dd
This page utilises the Additional Contents feature to add custom pages to the staff client and the OPAC in the user's desired language. To test: 1. Apply patch and restart services 2. In the staff client, go to Tools, then go to the new 'Pages' page 3. Add a new page to display on both the staff client and OPAC. 4. Confirm the URLs in the Page URL column work as expected. 5. Confirm that any pages made for the staff client only do not show in the OPAC, and that any pages made for the OPAC only do not show in the staff client. 6. Confirm that pages do not show on the OPAC main page where news items show. Confirm news items show on the OPAC main page as expected. Sponsored-by: Chartered Accountants Australia and New Zealand Signed-off-by: Thibault Kero <thibault.keromnes@univ-paris8.fr> Signed-off-by: Lisette Scheer <lisettePalouse+Koha@gmail.com> Signed-off-by: Lisette Scheer <lisettePalouse+Koha@gmail.com> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
24 lines
1.7 KiB
JavaScript
24 lines
1.7 KiB
JavaScript
$(document).ready(function() {
|
|
var path = location.pathname.substring(1);
|
|
if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 && path.indexOf("barcode") < 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
|
|
} else if (path.indexOf("patroncards") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').addClass("current");
|
|
} else if (path.indexOf("clubs") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/clubs/clubs.pl"]').addClass("current");
|
|
} else if (path.indexOf("patron_lists") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').addClass("current");
|
|
} else if (path.indexOf("rotating_collections") >= 0 ){
|
|
$('#navmenulist a[href$="/cgi-bin/koha/rotating_collections/rotatingCollections.pl"]').addClass("current");
|
|
} else if ((path+location.search).indexOf("batchMod.pl?del=1") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/tools/batchMod.pl?del=1"]').addClass("current");
|
|
} else if (path.indexOf("quotes-upload.pl") >= 0 ){
|
|
$('#navmenulist a[href$="/cgi-bin/koha/tools/quotes.pl"]').addClass("current");
|
|
} else if (path.indexOf("stockrotation") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/tools/stockrotation.pl"]').addClass("current");
|
|
} else if (path.indexOf("plugins") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/plugins/plugins-home.pl?method=tool"]').addClass("current");
|
|
} else if (path.indexOf("page.pl") >= 0 ) {
|
|
$('#navmenulist a[href$="/cgi-bin/koha/tools/additional-contents.pl?category=pages"]').addClass("current");
|
|
}
|
|
});
|