Comment 0 for bug 1674171

Revision history for this message
Eva Cerninakova (ece) wrote :

1) When non ASCII characters is used for Organization Unit Policy Code or Organization Unit Name (or its translation to locale language) Holding Maintenance interface crashes and results in empty list libraries, call numbers or copies and error message:
cat.copy_browser.library_menu_init():
"Could not js-ify the JSON: SyntaxError: JSON.parse: bad control character in string literal"

2) This applies not for all extended ASCII characters. When some of the characters are used, the Holding Maintenance interface opens normally and no error message appears (and the libraries, call numbers and copies are listed correctly). However in the "Limit to" field for the library selection some of these charracters are displayed incorrectly in the organization units list, see attached image.

I have tested the characters using sentence containing all special Czech characters: "příliš žluťoučký kůň úpěl ďábelské ódy" for organization unit name.
Finally I discovered that Holding Maintenance interface crashes when following characters are used:
č, ď, ě
(unfortunately "č" is used in the word "český" which means "Czech" and is used in the name of every other institution in the Czech Republic)

When following extended ASCII characters are used:
á, é, í, ň, ó, ř,š,ť, ú, ů, ý, ž,
the Holding Maintenance interface dose not crash, but in some cases the characters above are not displayed correctly (see image). I have tested the behaviour using Czech words "příliš žluťounký kůn úpal ódy". This happens with some of the special French characters too.

I believe this problem is related (or analogical) to bug 997284 and bug 1365581