Bug 41769: Translate "%s, by %s"
Instead of translating ", by" we add more flexibility for languages that need to invert author and title for instance. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
97b4b2f1db
commit
f1c3c2d89a
|
|
@ -1294,10 +1294,8 @@
|
|||
searchable: true,
|
||||
orderable: true,
|
||||
render: function (data, type, row, meta) {
|
||||
let node = '<a href="suggestion.pl?suggestionid=%s&op=show" title="%s">%s'.format(row.suggestion_id, _("suggestion"), row.title);
|
||||
if(row.author) {
|
||||
node += ", %s %s".format(_("by"),row.author.escapeHtml());
|
||||
}
|
||||
let a = '<a href="suggestion.pl?suggestionid=%s&op=show" title="%s">'.format(row.suggestion_id, _("suggestion"));
|
||||
let node = a + ( row.author ? a + _("%s, by %s").format(row.title.escapeHtml(), row.author.escapeHtml()) : row.title.escapeHtml());
|
||||
node += '</a><br />';
|
||||
if(row.copyright_date) node += ' © <span class="suggestion_copyrightdate">%s</span>'.format(row.copyright_date);
|
||||
if(row.volume_desc) node += '; <span class="suggestion_volume">%s:<em>%s</em></span>'.format(_("Volume"), row.volume_desc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue