','Find it!'
) AS "Title and Cover"
FROM virtualshelfcontents
LEFT JOIN biblio USING (biblionumber)
LEFT JOIN biblioitems USING (biblionumber)
LEFT JOIN biblio_metadata USING (biblionumber)
JOIN (SELECT @num :=0) AS n ON 1=1
WHERE shelfnumber=<<>> AND virtualshelfcontents.borrowernumber IN ('BORROWER NUMBER OF THE STAFF USE ACCOUNT THAT WILL CREATE THE LISTS')
GROUP BY title, biblionumber
ORDER BY 1
HTML (added, in our case, to opacnavbottom);
CSS (added to opacuserCSS)
.lists_link {
float:right;
padding-bottom: 10px;
font-style: italic;
font-size: 20pt;
}
.lists_title {
padding-top: 5px;
font-size: 16pt;
}
.coveri img {
padding-left: 50px;
}
#srlists h3 {
font-weight: normal;
padding-left: 5px;
}
#srlists .modal {
display:none;
}
#srlists .modal-header .close
{
float: right;
font-size: 20px;
margin-top: 10px;
}
JQuery (added to opacuserjs):
// Custom list script
$(document).ready(function() {
$('#opacnavbottom .table').each(function () {
var data1;
var listnum = this.id;
$.get( "/cgi-bin/koha/svc/report?id=Koha_report_number&sql_params="+listnum, function( data1 ) {
$.each(data1, function(index, value) {
var json = value;
var tr;
var tbname = '#' + listnum;
tr = $('
|
');
$.each(json, function(index, value) {
tr.append("
" + value + " | ");
});
$( tbname ).append(tr);
});
});
});
});