Lines 270-331
$(document).ready(function () {
Link Here
|
270 |
}, |
270 |
}, |
271 |
}, |
271 |
}, |
272 |
{ |
272 |
{ |
273 |
data: "", // author |
273 |
data: "", // Request details |
274 |
orderable: false, |
274 |
orderable: false, |
275 |
render: function (data, type, row, meta) { |
275 |
render: function (data, type, row, meta) { |
276 |
const author = display_extended_attribute( |
276 |
let display = ""; |
277 |
row, |
277 |
if ( |
278 |
"author" |
278 |
display_extended_attribute(row, "article_title") !== |
279 |
); |
279 |
"" |
280 |
if (author) return author; |
280 |
) { |
281 |
const articleAuthor = display_extended_attribute( |
281 |
display += |
282 |
row, |
282 |
'<span style="display:block"> Article: ' + |
283 |
"article_author" |
283 |
display_extended_attribute( |
284 |
); |
284 |
row, |
285 |
if (articleAuthor) return articleAuthor; |
285 |
"article_title" |
286 |
return ""; |
286 |
) + |
287 |
}, |
287 |
"</span>"; |
288 |
}, |
288 |
} |
289 |
{ |
289 |
if (display_extended_attribute(row, "title") !== "") { |
290 |
data: "", // title |
290 |
display += |
291 |
orderable: false, |
291 |
'<span style="display:block"> Title: ' + |
292 |
render: function (data, type, row, meta) { |
292 |
display_extended_attribute(row, "title") + |
293 |
return display_extended_attribute(row, "title"); |
293 |
"</span>"; |
294 |
}, |
294 |
} |
295 |
}, |
295 |
if ( |
296 |
{ |
296 |
display_extended_attribute( |
297 |
data: "", // article_title |
297 |
row, |
298 |
orderable: false, |
298 |
"article_author" |
299 |
render: function (data, type, row, meta) { |
299 |
) !== "" |
300 |
return display_extended_attribute(row, "article_title"); |
300 |
) { |
301 |
}, |
301 |
display += |
302 |
}, |
302 |
'<span style="display:block"> Article author: ' + |
303 |
{ |
303 |
display_extended_attribue( |
304 |
data: "", // issue |
304 |
row, |
305 |
orderable: false, |
305 |
"article_author" |
306 |
render: function (data, type, row, meta) { |
306 |
) + |
307 |
return display_extended_attribute(row, "issue"); |
307 |
"</span>"; |
308 |
}, |
308 |
} |
309 |
}, |
309 |
if (display_extended_attribute(row, "author") !== "") { |
310 |
{ |
310 |
display += |
311 |
data: "", // volume |
311 |
'<span style="display:block"> Author: ' + |
312 |
orderable: false, |
312 |
display_extended_attribute(row, "author") + |
313 |
render: function (data, type, row, meta) { |
313 |
"</span>"; |
314 |
return display_extended_attribute(row, "volume"); |
314 |
} |
315 |
}, |
315 |
if (display_extended_attribute(row, "issue") !== "") { |
316 |
}, |
316 |
display += |
317 |
{ |
317 |
'<span style="display:block"> Issue: ' + |
318 |
data: "", // year |
318 |
display_extended_attribute(row, "issue") + |
319 |
orderable: false, |
319 |
"</span>"; |
320 |
render: function (data, type, row, meta) { |
320 |
} |
321 |
return display_extended_attribute(row, "year"); |
321 |
if (display_extended_attribute(row, "volume") !== "") { |
322 |
}, |
322 |
display += |
323 |
}, |
323 |
'<span style="display:block"> Volume: ' + |
324 |
{ |
324 |
display_extended_attribute(row, "volume") + |
325 |
data: "", // pages |
325 |
"</span>"; |
326 |
orderable: false, |
326 |
} |
327 |
render: function (data, type, row, meta) { |
327 |
if (display_extended_attribute(row, "year") !== "") { |
328 |
return display_extended_attribute(row, "pages"); |
328 |
display += |
|
|
329 |
'<span style="display:block"> Year: ' + |
330 |
display_extended_attribute(row, "year") + |
331 |
"</span>"; |
332 |
} |
333 |
if (display_extended_attribute(row, "pages") !== "") { |
334 |
display += |
335 |
'<span style="display:block"> Pages: ' + |
336 |
display_extended_attribute(row, "pages") + |
337 |
"</span>"; |
338 |
} |
339 |
return display; |
329 |
}, |
340 |
}, |
330 |
}, |
341 |
}, |
331 |
{ |
342 |
{ |
332 |
- |
|
|