Lines 328-389
$(document).ready(function () {
Link Here
|
328 |
}, |
328 |
}, |
329 |
}, |
329 |
}, |
330 |
{ |
330 |
{ |
331 |
data: "", // author |
331 |
data: "", // Request details |
332 |
orderable: false, |
332 |
orderable: false, |
333 |
render: function (data, type, row, meta) { |
333 |
render: function (data, type, row, meta) { |
334 |
const author = display_extended_attribute( |
334 |
let display = ""; |
335 |
row, |
335 |
if ( |
336 |
"author" |
336 |
display_extended_attribute(row, "article_title") !== |
337 |
); |
337 |
"" |
338 |
if (author) return author; |
338 |
) { |
339 |
const articleAuthor = display_extended_attribute( |
339 |
display += |
340 |
row, |
340 |
'<span style="display:block"> Article: ' + |
341 |
"article_author" |
341 |
display_extended_attribute( |
342 |
); |
342 |
row, |
343 |
if (articleAuthor) return articleAuthor; |
343 |
"article_title" |
344 |
return ""; |
344 |
) + |
345 |
}, |
345 |
"</span>"; |
346 |
}, |
346 |
} |
347 |
{ |
347 |
if (display_extended_attribute(row, "title") !== "") { |
348 |
data: "", // title |
348 |
display += |
349 |
orderable: false, |
349 |
'<span style="display:block"> Title: ' + |
350 |
render: function (data, type, row, meta) { |
350 |
display_extended_attribute(row, "title") + |
351 |
return display_extended_attribute(row, "title"); |
351 |
"</span>"; |
352 |
}, |
352 |
} |
353 |
}, |
353 |
if ( |
354 |
{ |
354 |
display_extended_attribute( |
355 |
data: "", // article_title |
355 |
row, |
356 |
orderable: false, |
356 |
"article_author" |
357 |
render: function (data, type, row, meta) { |
357 |
) !== "" |
358 |
return display_extended_attribute(row, "article_title"); |
358 |
) { |
359 |
}, |
359 |
display += |
360 |
}, |
360 |
'<span style="display:block"> Article author: ' + |
361 |
{ |
361 |
display_extended_attribue( |
362 |
data: "", // issue |
362 |
row, |
363 |
orderable: false, |
363 |
"article_author" |
364 |
render: function (data, type, row, meta) { |
364 |
) + |
365 |
return display_extended_attribute(row, "issue"); |
365 |
"</span>"; |
366 |
}, |
366 |
} |
367 |
}, |
367 |
if (display_extended_attribute(row, "author") !== "") { |
368 |
{ |
368 |
display += |
369 |
data: "", // volume |
369 |
'<span style="display:block"> Author: ' + |
370 |
orderable: false, |
370 |
display_extended_attribute(row, "author") + |
371 |
render: function (data, type, row, meta) { |
371 |
"</span>"; |
372 |
return display_extended_attribute(row, "volume"); |
372 |
} |
373 |
}, |
373 |
if (display_extended_attribute(row, "issue") !== "") { |
374 |
}, |
374 |
display += |
375 |
{ |
375 |
'<span style="display:block"> Issue: ' + |
376 |
data: "", // year |
376 |
display_extended_attribute(row, "issue") + |
377 |
orderable: false, |
377 |
"</span>"; |
378 |
render: function (data, type, row, meta) { |
378 |
} |
379 |
return display_extended_attribute(row, "year"); |
379 |
if (display_extended_attribute(row, "volume") !== "") { |
380 |
}, |
380 |
display += |
381 |
}, |
381 |
'<span style="display:block"> Volume: ' + |
382 |
{ |
382 |
display_extended_attribute(row, "volume") + |
383 |
data: "", // pages |
383 |
"</span>"; |
384 |
orderable: false, |
384 |
} |
385 |
render: function (data, type, row, meta) { |
385 |
if (display_extended_attribute(row, "year") !== "") { |
386 |
return display_extended_attribute(row, "pages"); |
386 |
display += |
|
|
387 |
'<span style="display:block"> Year: ' + |
388 |
display_extended_attribute(row, "year") + |
389 |
"</span>"; |
390 |
} |
391 |
if (display_extended_attribute(row, "pages") !== "") { |
392 |
display += |
393 |
'<span style="display:block"> Pages: ' + |
394 |
display_extended_attribute(row, "pages") + |
395 |
"</span>"; |
396 |
} |
397 |
return display; |
387 |
}, |
398 |
}, |
388 |
}, |
399 |
}, |
389 |
{ |
400 |
{ |
390 |
- |
|
|