Class: ZOOM::Record

Inherits:
Object
  • Object
show all
Defined in:
ext/zoom/rbzoomrecord.c

Instance Method Summary collapse

Instance Method Details

#database(charset_from = nil, charset_to = nil) ⇒ Object

charset_from: the name of the charset to convert from (optional).

charset_to: the name of the charset to convert to (optional).

Returns: the database name of the record.



89
90
91
92
93
94
95
# File 'ext/zoom/rbzoomrecord.c', line 89

static VALUE
rbz_record_database (int argc, VALUE *argv, VALUE self)
{
    return CSTR2RVAL (ZOOM_record_get (rbz_record_get (self),
                                       rbz_record_type ("database", argc, argv),
                                       NULL));    
}

#rawObject

MARC records are returned in ISO2709. GRS-1 and OPAC records are not supported for this form.

Returns: an ISO2709 record.



166
167
168
169
170
171
172
# File 'ext/zoom/rbzoomrecord.c', line 166

static VALUE
rbz_record_raw (int argc, VALUE *argv, VALUE self)
{
    return CSTR2RVAL (ZOOM_record_get (rbz_record_get (self),
                                       rbz_record_type ("raw", argc, argv),
                                       NULL));    
}

#render(charset_from = nil, charset_to = nil) ⇒ Object Also known as: to_s

charset_from: the name of the charset to convert from (optional).

charset_to: the name of the charset to convert to (optional).

Returns: a display friendly description of the record.



125
126
127
128
129
130
131
# File 'ext/zoom/rbzoomrecord.c', line 125

static VALUE
rbz_record_render (int argc, VALUE *argv, VALUE self)
{
    return CSTR2RVAL (ZOOM_record_get (rbz_record_get (self),
                                       rbz_record_type ("render", argc, argv),
                                       NULL));    
}

#syntax(charset_from = nil, charset_to = nil) ⇒ Object

charset_from: the name of the charset to convert from (optional).

charset_to: the name of the charset to convert to (optional).

Returns: the symbolic transfer syntax name of the record.



107
108
109
110
111
112
113
# File 'ext/zoom/rbzoomrecord.c', line 107

static VALUE
rbz_record_syntax (int argc, VALUE *argv, VALUE self)
{
    return CSTR2RVAL (ZOOM_record_get (rbz_record_get (self),
                                       rbz_record_type ("syntax", argc, argv),
                                       NULL));    
}

#xml(charset_from = nil, charset_to = nil) ⇒ Object

charset_from: the name of the charset to convert from (optional).

charset_to: the name of the charset to convert to (optional).

Returns an XML description of the record. SRW/SRU and Z39.50 records with transfer syntax XML are returned verbatim. MARC records are returned in MARCXML (converted from ISO2709 to MARCXML by YAZ). GRS-1 and OPAC records are not supported for this form.

Returns: an XML description of the record.



148
149
150
151
152
153
154
# File 'ext/zoom/rbzoomrecord.c', line 148

static VALUE
rbz_record_xml (int argc, VALUE *argv, VALUE self)
{
    return CSTR2RVAL (ZOOM_record_get (rbz_record_get (self),
                                       rbz_record_type ("xml", argc, argv),
                                       NULL));    
}