Commits

"Jas...@ubib.eur.nl>"  committed a0b1153 Merge

merged in from head

  • Participants
  • Parent commits faaa3c5, 0d774a3

Comments (0)

Files changed (1)

File moai/metadata/mods.py

                 daiList = DAI.daiList()
                 for id, dai in dai_list:
                     daiList.append(DAI.identifier(
-                        dai[0],
+                        dai[0].split('/')[-1],
                         IDref=id,
                         authority='info:eu-repo/dai/nl'))
                 
 
         mods.append(MODS.typeOfResource('text'))        
         if data['metadata'].get('dare_type'):
-            mods.append(MODS.genre(data['metadata']['dare_type'][0]))
+            dt = 'info:eu-repo/semantics/%s' % data['metadata']['dare_type'][0]
+            mods.append(MODS.genre(dt))
 
         
         classifications = data['metadata'].get('classification', [])