fixed bug in getrecordfromlsid in the curl call, removed R3.1 dependency