You can see in this fiddle that I'm looking for a solution that lets me join a couple of JSON fields in the same Datatables column. This is the solution I found:
function ( data, type, full ) {
var a = (full["container-title"]);
var b = (full["volume"]);
var c = (full["issue"]);
var d = (full["page"]);
var x = ([a, b, c, d]);
return $.map( x, function ( d, i ) {
return d;}).join( ', ' );
}
This outputs the values I want, separated by commas. However, I would like to add some html to each variable before the output. Say, for instance, I want "volume" to be preceded by "Vol.". But if I try this
var a = 'Vol.' + (full["volume"]);
the value is passed as "undefined" and completely unusable. Any other route?