MODS note element in DiVA

When trying to understand the MODS record, I see that the note element (Anmärkning) does not have any attributes according to https://wiki.epc.ub.uu.se/pages/viewpage.action?pageId=27466063 Links to an external site. . However, in the MODS for record diva2:479643 I can see four different types of notes:

<note>&lt;p&gt;1983; 752498871; Maguire, Gerald Quentin, Jr; 8313153; 26551011; 303280688; Copyright UMI - Dissertations Publishing 1983; 66569; English; 128 p.; M1: Ph.D.; M3: 8313153. QC 20120120&lt;/p&gt;</note> 
<note type="thesis">Diss.  Stockholm : Kungliga Tekniska högskolan, 1983</note> <note type="degree" lang="en">Degree of Doctor of Philosophy</note><note type="degree" lang="sv">Filosofie doktorsexamen</note> <note type="venue">University of Utah, Merrill Engineering Building, Salt Lake City, UT, USA</note>

In a 2nd cycle thesis (such as urn:nbn:se:kth:diva-172760) I see notes with the following attributes:

<note type="level" lang="swe">Självständigt arbete på avancerad nivå (masterexamen)</note>
<note type="universityCredits" lang="swe">20 poäng / 30 hp</note>
<note type="venue">Seminar room Grimeton, Isafjordsgatan 22, Kista</note>

So this raises a question of what different versions of the note element are there. In any case, it means that note is not a "simple" element, hence in bibutils's function: modsin_mods( xml *node, fields *info, int level )
we must comment out the entry for note:

// { "note", "NOTES", 0, 0 },

Thus I have added a new function modsin_note( xml *node, fields *info, int level ) to handle the different types of notes.