X-Services sort-set error: "Sort instructions must be given"
- Article Type: General
- Product: Aleph
- Product Version: 16.02
Description:
I'm having trouble getting the sort-set operation to work.
I tried this:
http://mysvr.univ.edu:8991/X?op=sort-set&library=abc01&set_number=002304&sort_code_1=01&sort_order_1=A
got this:
Sort instructions must be given
I looked in tab_sort, found this:
01 99 008 260## c 08 04
! Sort by Author
02 99 100## a 110## a 111## a 130## a 700## a 00 00
! Sort by Title
03 99 245## a 2 240## a 00 00
! Sort by Sublib-CollCode-Call#
04 99 LOC## bchi 00 00
! Sort by Call #
05 99 PSTS# h 00 00
I tried sort_code_1 = 01 up to 05, but it didn't work
What are the values that should go in the sort instructions?
Resolution:
According to the X-Services documentation, "If one of the four parameters indicating what kind of re-sort is needed is empty, the following error message appears in the XML output: <error>Sort instructions must be given</error>". The four parameters referred to are:
SORT_CODE_1
SORT_ORDER_1
SORT_CODE_2
SORT_ORDER_2
In other words, it appears that you must specify both a primary and a secondary sort in the sort-set service for it to work.
- Article last edited: 10/8/2013