Anonymous avatar Anonymous committed e81b3cd

fixed mimetype attribute misspelling in didl prefix

Comments (0)

Files changed (3)

 MOAI changes
 ============
 
+MOAI 1.0.4 (2009-07-15)
+-----------------------
+
+- Fixed misspelled mimeType attribute in DIDL metadata prefix
+
+Bugs Fixed
+~~~~~~~~~~
+
 MOAI 1.0.3 (2009-06-23)
+-----------------------
 
 Bugs Fixed
 ~~~~~~~~~~
 
 setup(
     name='MOAI',
-    version='1.0.3',
+    version='1.0.4',
     author='Infrae',
     author_email='jasper@infrae.com',
     description="MOAI, A Open Access Server Platform for Institutional Repositories",

src/moai/extensions/didl.py

             self.config.get_oai_id(data['record']['id'])))
 
         # generate mods for this feed
-        mods_data = DIDL.Resource(mimetype="application/xml")
+        mods_data = DIDL.Resource(mimeType="application/xml")
         MODS('mods', self.config, self.db)(mods_data, metadata)
 
         asset_data = []
                       mimeType="application/xml")
                      ),
                     DIDL.Component(
-                     DIDL.Resource(mimetype=asset['mimetype'][0],
+                     DIDL.Resource(mimeType=asset['mimetype'][0],
                                    ref=url)
                      )
                     )
                    mimeType="application/xml")
                   ),
                  DIDL.Component(
-                  DIDL.Resource(mimetype="text/html", ref=data['metadata']['url'][0])
+                  DIDL.Resource(mimeType="text/html", ref=data['metadata']['url'][0])
                  )
                 )
              root_item.append(item)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.