Skip to content

Commit

Permalink
feat: add a detail link to the reference listings
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed May 17, 2023
1 parent 7473f0e commit 099acbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function reinitialize_bibsonomy_tooltips() {
$deepc.children('input#id_object_id').val($bib.bibsObject_pk)
$deepc.children('input#id_content_type').val($bib.bibsContenttype)
$deepc.children('input#id_attribute').val($bib.bibsAttribute)
$res = $('<div class="bibs-container"><table class="table"><thead><tr><td>delete</td><td>authors</td><td>title</td><td>year</td><td>Pages Start</td><td>Pages End</td><td>Folio</td><td>Notes</td></tr></thead><tbody></tbody></table></div>')
$res = $('<div class="bibs-container"><table class="table"><thead><tr><td>delete</td><td>authors</td><td>title</td><td>year</td><td>Pages Start</td><td>Pages End</td><td>Folio</td><td>Notes</td><td>Detail</td></tr></thead><tbody></tbody></table></div>')
$res.append($deepc)
$res.append($('<div id="bibs-messages"></div>'))
instance.content($res)
Expand All @@ -43,7 +43,7 @@ function reinitialize_bibsonomy_tooltips() {
$('div.bibs-container > table > tbody').html('');
$('div.bibs-container > div#bibs-messages').html('');
data.responseJSON.forEach(function (entry) {
$('div.bibs-container > table > tbody').append($('<tr id="bib-entry-' + entry.pk + '"><td><a href="#" data-bib-id="' + entry.pk + '" class="delete-bib-entry"><i data-feather="trash"></i></a></td><td>' + entry.author + '</td><td>' + entry.title + '</td><td>' + entry.year + '</td><td>' + entry.pages_start + '</td><td>' + entry.pages_end + '</td><td>' + entry.folio + '</td><td>' + entry.notes + '</td></tr>'))
$('div.bibs-container > table > tbody').append($('<tr id="bib-entry-' + entry.pk + '"><td><a href="#" data-bib-id="' + entry.pk + '" class="delete-bib-entry"><i data-feather="trash"></i></a></td><td>' + entry.author + '</td><td>' + entry.title + '</td><td>' + entry.year + '</td><td>' + entry.pages_start + '</td><td>' + entry.pages_end + '</td><td>' + entry.folio + '</td><td>' + entry.notes + '</td><td><a href="/bibsonomy/references/'+entry.pk+'"><i data-feather="book-open"></a></td></tr>'))
});
feather.replace()
}
Expand Down

0 comments on commit 099acbd

Please sign in to comment.