Support Requests: Browse | Submit New | Admin

[#28256] I need help on sorting records

Date:
2010-05-27 12:03
Priority:
3
Submitted By:
Alexander Antonakakis (motoris)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
I need help on sorting records

Detailed description
Hello
I am having trouble on using the new_sort_by method to query a Z39.50 connection
The code I am using is the following

ZOOM::Connection.open(ip,port) do |conn|
  conn.database_name = database_name
  conn.preferred_record_syntax = preferred_record_syntax
  sort_term = ZOOM::Query.new_sort_by('1=31 a')
  query_text = '@and @attr 1=1003 "my search term" @attr 1=4 "PAPER"'
  @rset = conn.search(utf2adv(query_text))
end

I get this error
TypeError: wrong argument type Class (expected Data)
from the line
sort_term = ZOOM::Query.new_sort_by('1=31 a')

Can someone explain me how to sort my results

Thanks in advance

Alexander Antonakakis
alexis@maich.gr

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item