Lines 374-386
Link Here
|
374 |
const a = document.createElement('a'); |
374 |
const a = document.createElement('a'); |
375 |
a.appendChild(document.createTextNode(oRow.title)); |
375 |
a.appendChild(document.createTextNode(oRow.title)); |
376 |
a.href = '/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + oRow.biblionumber; |
376 |
a.href = '/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + oRow.biblionumber; |
377 |
a.setAttribute('title', [% t('Go to record detail page').json %]); |
377 |
a.setAttribute('title', [% t('Go to record detail page').json | $raw %]); |
378 |
|
378 |
|
379 |
let output = a.outerHTML; |
379 |
let output = a.outerHTML; |
380 |
if (oRow.author) { |
380 |
if (oRow.author) { |
381 |
const marcflavour = [% Koha.Preference('marcflavour').json %]; |
381 |
const marcflavour = [% Koha.Preference('marcflavour').json | $raw %]; |
382 |
if (marcflavour === 'UNIMARC') { |
382 |
if (marcflavour === 'UNIMARC') { |
383 |
output += ' ' + [% t('by').json %]; |
383 |
output += ' ' + [% t('by').json | $raw %]; |
384 |
} |
384 |
} |
385 |
output += ' ' + oRow.author; |
385 |
output += ' ' + oRow.author; |
386 |
} |
386 |
} |
Lines 417-423
Link Here
|
417 |
if (oRow.barcode) { |
417 |
if (oRow.barcode) { |
418 |
const a = document.createElement('a'); |
418 |
const a = document.createElement('a'); |
419 |
a.href = '/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=' + oRow.biblionumber + '#item' + oRow.itemnumber; |
419 |
a.href = '/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=' + oRow.biblionumber + '#item' + oRow.itemnumber; |
420 |
a.setAttribute('title', [% t('Go to item details').json %]); |
420 |
a.setAttribute('title', [% t('Go to item details').json | $raw %]); |
421 |
a.appendChild(document.createTextNode(oRow.barcode)); |
421 |
a.appendChild(document.createTextNode(oRow.barcode)); |
422 |
output = a.outerHTML; |
422 |
output = a.outerHTML; |
423 |
} |
423 |
} |
Lines 479-485
Link Here
|
479 |
const pencil = document.createElement('i'); |
479 |
const pencil = document.createElement('i'); |
480 |
pencil.classList.add('fa', 'fa-pencil'); |
480 |
pencil.classList.add('fa', 'fa-pencil'); |
481 |
|
481 |
|
482 |
const edit = document.createTextNode(' ' + [% t('Edit').json %] + ' '); |
482 |
const edit = document.createTextNode(' ' + [% t('Edit').json | $raw %] + ' '); |
483 |
|
483 |
|
484 |
const caret = document.createElement('span'); |
484 |
const caret = document.createElement('span'); |
485 |
caret.classList.add('caret') |
485 |
caret.classList.add('caret') |
Lines 496-506
Link Here
|
496 |
|
496 |
|
497 |
const edit_item = document.createElement('a'); |
497 |
const edit_item = document.createElement('a'); |
498 |
edit_item.href = '/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=' + oRow.biblionumber + '&itemnumber=' + oRow.itemnumber; |
498 |
edit_item.href = '/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=' + oRow.biblionumber + '&itemnumber=' + oRow.itemnumber; |
499 |
edit_item.appendChild(document.createTextNode([% t('Edit item').json %])); |
499 |
edit_item.appendChild(document.createTextNode([% t('Edit item').json | $raw %])); |
500 |
|
500 |
|
501 |
const edit_record = document.createElement('a'); |
501 |
const edit_record = document.createElement('a'); |
502 |
edit_record.href = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + oRow.biblionumber; |
502 |
edit_record.href = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + oRow.biblionumber; |
503 |
edit_record.appendChild(document.createTextNode([% t('Edit record').json %])); |
503 |
edit_record.appendChild(document.createTextNode([% t('Edit record').json | $raw %])); |
504 |
|
504 |
|
505 |
const ul = document.createElement('ul'); |
505 |
const ul = document.createElement('ul'); |
506 |
ul.classList.add('dropdown-menu'); |
506 |
ul.classList.add('dropdown-menu'); |
507 |
- |
|
|