From 740331c39e65aca18244bbf759ed6f722eeb0ac9 Mon Sep 17 00:00:00 2001
From: Agustin Moyano "+row.biblio.title.escapeHtml()+"";
+ result = " "+_escape_str(row.biblio.title)+"";
if ( row.biblio.author != null )
- result += _(" by ") + row.biblio.author.escapeHtml();
+ result += _(" by ") + _escape_str(row.biblio.author);
if ( row.biblio.isbn != null )
- result += " – " + row.biblio.isbn.escapeHtml();
+ result += " – " + _escape_str(row.biblio.isbn);
[% IF Koha.Preference('marcflavour')=='UNIMARC' %]
if ( row.biblio.ean != null )
- result += " – EAN:" + row.biblio.ean.escapeHtml();
+ result += " – EAN:" + _escape_str(row.biblio.ean);
[% END %]
if ( row.biblio.publisher != null ) {
- result += " '
+ _("Internal note: ")
- + '' + internal_note.escapeHtml()
+ + '' + _escape_str(internal_note)
+ ' [' + _("Change internal note") + '] '
+ _("Vendor note: ")
- + '' + vendor_note.escapeHtml() + '
" + _("Publisher: ") + row.biblio.publisher.escapeHtml();
+ result += "
" + _("Publisher: ") + _escape_str(row.biblio.publisher);
if ( row.biblio.publication_year != null ) {
- result += ", " + row.biblio.publication_year.escapeHtml();
+ result += ", " + _escape_str(row.biblio.publication_year);
}
else if ( row.biblio.copyright_date != null ) {
- result += row.biblio.copyright_date.escapeHtml();
+ result += _escape_str(row.biblio.copyright_date);
}
}
var suggestions = row.biblio.suggestions;
@@ -461,10 +461,10 @@
var suggester = suggestion.suggester;
var suggested_by = [];
if ( suggester.surname != null ) {
- suggested_by.push(suggester.surname.escapeHtml());
+ suggested_by.push(_escape_str(suggester.surname));
}
if ( suggester.firstname != null ) {
- suggested_by.push(suggester.firstname.escapeHtml());
+ suggested_by.push(_escape_str(suggester.firstname));
}
result += "
" + _("Suggested by: ") +
@@ -472,7 +472,7 @@
+ encodeURIComponent(suggestion.suggestionid)
+ '&op=show">'
+ suggested_by.join(", ")
- + " (#" + suggestions[0].suggestionid.escapeHtml() + ")"; // FIXME: could be changed if we allow matching multiple suggestions
+ + " (#" + _escape_str(suggestions[0].suggestionid) + ")"; // FIXME: could be changed if we allow matching multiple suggestions
}
}
result += '