Bug 10102

Summary: don't show empty novelist tab if no data
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P5 - low CC: george, nick, triciab
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Nicole C. Engard 2013-04-23 15:24:51 UTC
If you're using Novelist and have the data showing in a tab you see an empty tab for items not found in Novelist - videos specifically. The tab should be hidden if empty.
Comment 1 Nick Clemens (kidclamp) 2015-11-18 17:13:33 UTC
Tricky with the fact that Novelist is all js and loaded after the page, but adding the below to OPACUserJS seems to accomplish it.  Something cleaner would be nice but this works as a quick fix:

$(window).load(function(){
if( !$('#NovelistSelect').find('img').length ){
$("a[href=#NovelistSelect]").remove();
$("#NovelistSelect").remove();
}
});
Comment 2 Patricia Brauer 2016-08-05 21:42:30 UTC
Nick-
Sorry ignore my comment. Having browser problems. Tricia B.
Comment 3 Owen Leonard 2018-06-29 13:54:57 UTC
In my tests this has been resolved--presumably on the Novelist side of things. If anyone finds otherwise please re-open with additional details.