Download presentation
Presentation is loading. Please wait.
Published byMarylou Shaw Modified over 6 years ago
1
Using character conversion to display non standard Unicode values
Yoel Kortick Aleph Support Manager
2
Problem (from actual SI):
We would like to add a phonographic copyright symbol as a prefix to the display of the subfield 245$$p We would need to use the Unicode U+2117 in edit_field.lng which is currently outside the available codes that can be used in this table. This is being considered for use in MARC21 in order to comply with RDA rules
3
Solution via configuration:
In $alephe_unicode we will make a table which will convert a specific character to the phonographic copyright symbol with unicode value 2117 We will then refer to this table in $alephe_unicode/tab_character_conversion_line with a unique identifier We will then use this unique identifier in edit_field.eng
4
Step One In $alephe_root/unicode directory create the following character conversion table $alephe_unicode/yoel_to_unicode !!-!!-!!-!!-!!-!!-!!-!!-!!-!!!! !* The first column below should be the Hx column in !* The second column below should be the value from # ! will become sound recording copyright A # " will become smiley face This means that in table yoel_to_unicode the “ (quotation mark, Ascii value 22) becomes the phonographic copyright symbol (Unicode value 2117) We could have used any symbol, we chose “ because it is not used often (as is a regular character like a,b,c,d etc.)
5
Step Two Now in tab_character_conversion_line we will make reference to the yoel_to_unicode table yoel_to_unicode $alephe_unicode/tab_character_conversion_line YOEL_TO_UTF ##### # line_sb2line_utf yoel_to_unicode This means that character conversion YOEL_TO_UTF will use the values defined in table $alephe_unicode/yoel_to_unicode.
6
Step Three Now in edit_field.eng we need to add the appropriate character conversion line before the phonographic copyright symbol (2117) so that will be converted from “ (21) We also need to disable the character conversion after the “ is converted to the phonographic copyright symbol, otherwise every “ will become the phonographic copyright symbol. Therefore in the line after the conversion of “ to phonographic copyright symbol we will use the default character conversion table which is 8859_1_to_UTF.
7
Step Three For example, we created the following setup in edit_field.eng: Here we state the Z should convert to phonograph symbol 1 # 245## D B -6 a A ^ b A ^ c A ^ h A ^ CHARACTER_CONVERSION=YOEL_TO_UTF p A " CHARACTER_CONVERSION=8859_1_TO_UTF 1 # 245## # Due to the character conversion line the “ will become a phonographic copyright symbol Here we state that the character conversion should return “back to normal”
8
Step Four System number has field 24510$$p:
9
Step Five In the full view of this record in web OPAC we can see this symbol is being added as a prefix. The configuration effects web full view because it was done for identifier D in edit_field.eng
10
The Unicode Value in templates
It is also possible to add the Unicode value characters to cataloging templates For example if we want to add the phonographic copyright symbol value to a cataloging template as a prefix to 245$$p we can add it as follows: Here we state the Z should convert to phonograph symbol Due to the character conversion line the “ will become a phonographic copyright symbol 0821 L $$a 1001 L $$a $$d CHARACTER_CONVERSION=YOEL_TO_UTF 2451 L $$a $$b $$c $$h $$p" CHARACTER_CONVERSION=8859_1_TO_UTF 250 L $$a $$b Here we state that the character conversion should return “back to normal”
11
The Unicode Value in templates
Here is the phonographic copyright symbol in the template template using the special character conversion
12
Yoel. Kortick@exlibrisgroup.com
Thank You Yoel.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.