|
https://github.com/metabrainz/musicbrainz-server/pull/63 okay, that was a lot less painful than my other webservice stuff, apparently I'm either getting better at this or this is an easy task for the webservice! Noting, of course, that that loads URLs by MBID. Hopefully that's correct? Example working on Beta: Thanks Ian :-D |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hate the perl code for the WS, so I haven't started on that part yet. But for the mmd-schema changes:
diff --git a/schema/musicbrainz_mmd-2.0.rng b/schema/musicbrainz_mmd-2.0.rng index f4356d6..56f9ecd 100644 --- a/schema/musicbrainz_mmd-2.0.rng +++ b/schema/musicbrainz_mmd-2.0.rng @@ -64,6 +64,9 @@ <ref name="def_work-element"/> </optional> <optional> + <ref name="def_url-element"/> + </optional> + <optional> <ref name="def_puid-element"/> </optional> <optional> @@ -643,6 +646,25 @@ </element> </define> + <define name="def_url-element"> + <element name="url"> + <optional> + <attribute name="id"> + <data type="anyURI"/> + </attribute> + </optional> + + <optional> + <element name="resource"> + <text/> + </element> + </optional> + <zeroOrMore> + <ref name="def_relation-list"/> + </zeroOrMore> + </element> + </define> + <define name="def_disc-element"> <element name="disc">