Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to Z39.50 Z39.50 and related USMARC,MARC21,ZOOM,SRW
CQL to RPN mapping file changes to support different servers
I have a z39.50 client, that uses CQL language and YAZ to communicate to Z39.50 server. Yaz distribution includes etc/ CQL to RPN mapping file, that I've used satisfactory without changes. However one of the servers, that I wanted to search, returned 0 to any query in CQL.Some debugging showed that the server doesn't support BIB-1 COMPLETENESS ATTRIBUTES (TYPE = 6) and any query, that included @attr 6, retuned 0. Additionally they didn't understand support attribute 1=1016 (any). I ......

Posted On Monday, March 19, 2007 9:01 AM

Control Order for XSLT in MARC21slim2English.xsl
I've tried to use MARC21slim2English.xsl to show USMARC in user-friendly form. I found that the xsl doesn't give a possibility to change order of items, but just copied the order of original MARC21 record. I had to add a lot of apply-templates to be able to set the order as I want, e.g. show title first, then Authors etc. The extra XSLT commands were added to modified MARC21slim2English.xsl , but it should be possible to use import command to keep existing MARC21slim2English.xsl and my code in separate ......

Posted On Friday, December 29, 2006 10:52 AM

Different MarcXml to DC XSLT stylesheets.
I've compared a few available XSLT stylesheets from standards/marcxml/xslt .As it noted in A Repository of Metadata Crosswalks, the transformation from MARC XML to Unqualified Dublin Core 1.1 is realized in three encodings, requiring three separate XSLT scripts: as OAI DC(MARC21slim2OAIDC.xsl) , as SRW DC(MARC21slim2SRWDC.xsl ) , and as RDF DC(MARC21slim2RDFDC.xsl).I've noted that YAZ Proxy download has slightly different (and seems older) versions of the similar stylesheets. The most notable difference ......

Posted On Friday, November 3, 2006 8:36 AM

Calling C unmanaged DLL with with output parameters char **result from C#
In C# library I wanted to call c function from YAZ library YAZ_EXPORT int yaz_marc_decode_buf(yaz_marc_t mt, const char *buf, int bsize, char **result, int *rsize); The problem was that I didn't know how to specify char **result in managed declaration. I didn't find similar samplers in Zoom.NET implementation.The article Call Unmanaged DLLs from C# recommended to use StringBuilder for LPSTR (char*) but it wasn't enough. After some experimentation I found that adding ref will do the trick(which makes ......

Posted On Tuesday, October 31, 2006 1:19 PM

Zoom.NET v0.9c minor problems
I've downloaded and tried Zoom.NET v0.9c with .Net 2.0I decided to list some issues that I've noticed. 1. C:\Projects\Samples\Z39.50\... should use PrefixQuery, e.g @"@attr 1=4 ""Gong""" , not simple query "isbn=0253333490" 2. It is required to download latest YAZ from and copy DLLs from YAZ\BIN to \Zoom.Net.YazSharp\yaz to build \YazSharp for Windows successfully. 3. In YazSharp for Windows during search I've got: An unhandled exception of ......

Posted On Thursday, October 19, 2006 5:25 PM

Copyright © Michael Freidgeim | Powered by: