Sync spelling of availabilityDate in XML to that of Schema
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Jan 2013 13:39:08 +0000 (14:39 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Jan 2013 13:39:08 +0000 (14:39 +0100)
The opacxml.xsd had the correct spelling of this member always.
The ASN.1 was mis-spelled and still is (API change) - we are
not changing this by this. However, the OPAC to XML conversion had yet
*another* typo. This is fixed by this commit.

src/opac_to_xml.c

index eb3fcdd..2e37091 100644 (file)
@@ -156,7 +156,7 @@ void yaz_opac_decode_wrbuf2(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf,
                     wrbuf_puts(wrbuf,"   <circulation>\n");
                     opac_element_bool(wrbuf, 4, "availableNow",
                                       d->circulationData[j]->availableNow);
-                    opac_element_str(wrbuf, cd1, cd2, 4, "availabiltyDate",
+                    opac_element_str(wrbuf, cd1, cd2, 4,  "availabilityDate",
                                      d->circulationData[j]->availablityDate);
                     opac_element_str(wrbuf, cd1, cd2, 4, "availableThru",
                                       d->circulationData[j]->availableThru);