clarin-eric / component-registry-front-end

Test prototype for new CMDI Component Registry frontend
https://trac.clarin.eu/wiki/ComponentRegistryAndEditor/ReactFrontEnd
GNU General Public License v3.0
3 stars 1 forks source link

Root component reference does not get expanded in browser/editor #26

Closed twagoo closed 8 years ago

twagoo commented 8 years ago

CMDI allows all <CMD_Component> elements to have an @componentId attribute, including the root component - even though it is impossible to make such a component or profile in the Component Registry. However, there is at least one known case (the imdi-session profile) in the registry:

<CMD_ComponentSpec isProfile="true">
  <Header>
    <ID>clarin.eu:cr1:p_1271859438204</ID>
    <Name>imdi-profile-instance</Name>
    <Description>IMDI metadata</Description>
  </Header>
  <CMD_Component ComponentId="clarin.eu:cr1:c_1271859438201" filename="component-session.xml"/>
</CMD_ComponentSpec>

However, the browser and editor assume that the root component is always inline and render no content for such a component/profile. If there are more cases like this, consider supporting this case in the front end.

twagoo commented 8 years ago

Cases: clarin.eu:cr1:p_1271859438204 -> imdi-session

Others are (old) private components and profiles:

clarin.eu:cr1:c_1274880881805
clarin.eu:cr1:c_1302702320468
clarin.eu:cr1:c_1299509410094
clarin.eu:cr1:c_1302702320473
clarin.eu:cr1:c_1299509410087
clarin.eu:cr1:c_1302702320469
clarin.eu:cr1:p_1295178776916
clarin.eu:cr1:c_1274880881803