<< Click to Display Table of Contents >> Highlight mode |
![]() ![]() ![]() |
Defines how items can be highlighted in check out page. Possible values are:
No: No highlighting is done, all items are listed as-is.
Show AF: Displays the AF text of items on top of each item
Highlight all AF items: Will highlight ANY item in the list that has ANY text in the AF-field, in SIP check in response message (12).
Highlight latest AF item: Will highlight LAST item that has ANY text in AF-field, in SIP check in response.
Highlight only if AF item is last: Will highlight the item if it is last in the list, and has text in AF-field in SIP check in response message.
This can be used together with scripting, to identify specific texts to highlight. Using AfTextTranslatorScript.cs script file, the text can be parsed and cleared for items for which highlighting is not wanted, thus highlighting only specific items. For example the following script would find the text "special_item" from the AF field, and if it is found change it to something more user-friendly; otherwise clear out everything from the AF field, thus only highlighting items with "special_item" in the AF field:
namespace Translator
{
public class AfTextTranslatorScript
{
public string Translate(string languageCode, string text)
{
if (text.Contains("special_item"))
return "There is a newer edition of this book available - please check with staff!";
else
return "";
}
}
}