Error parsing find request, "unbalanced expr"
- Article Type: General
- Product: Aleph
- Product Version: 20
Problem Symptoms:
Records with the prefix (OCoLC) cannot be retrieved in the xxx01 OPAC or GUI and the message 'error parsing find request' appears. The string (OCoLC)813231857 is retrievable only if a space is inserted i.e. (OCoLC) 813231857.
The pc_server log shows:
unbalanced expr
aleph_ccl_expr_build_stack_c failed
aleph_ccl_expr_build_tree_c failed
aleph_ccl_expr_build_normal_tree_c failed
Info: Empty table /tmp/utf_files/exlibris/aleph/u21_1/alephe/error_eng/pc_sear_c1011
Info: Empty table /tmp/utf_files/exlibris/aleph/u21_1/alephe/error_eng/global
Load: /tmp/utf_files/exlibris/aleph/a21_1/aleph/error_eng/pc_sear_c1011
Cause:
Program defect; improper handling of right parenthesis not followed by a space.
Resolution:
After installing v20 rep_change 3487 or after installing version 22, add the routine "ccl_brackets1" to section 90 of ./[BIB_library]/tab/tab_word_breaking. See rep_change 3487 in Additional information, below.
Additional Information
v20 rep_change 3487:
Description: It is now possible to search for a term that includes opening brackets in the middle of a word, for example - "(e)conomics". See the Implementation Notes and also rep_change #383 (Aleph version 16).
Implementation Notes:
To search for a term that includes opening brackets in the middle of a word, add the routine "ccl_brackets1" to section 90 of ./[BIB_library]/tab/tab_word_breaking. The following is an example of section 90:
90 # ccl_brackets1 c
90 # to_blank_2 ,.;:
The following should also be taken into account:
1. The parameter of the routine "ccl_brackets1" can be either "c" (compress brackets) or "b" (replace by blank). For example, if the serach term is "(e)conomics" and the parameter is "c", the output of the routine is "economics". If the parameter is "b", the output is " e conomics".
2. If the routine "to_blank" is used before "ccl_brackets1", make sure that the bracket signs - '(' and ')' - are not included. Otherwise, "to_blank" will remove all brackets - both logical and inner-word.
Category: System Management (500)
- Article last edited: 7/30/2014