ExtendedMetadata

Added by BRUNET Clément almost 2 years ago

Hello,

I'd like to know how and where is generated the xml section named ExtendMetadata in a metadata ?

Is there a relation to create in the catalog to manage this fields or is it made automaticaly ?

I've a problem with this xml section that i can't see in my metadatas.

Thanks.


Replies (4)

RE: ExtendedMetadata - Added by BRUNET Clément almost 2 years ago

Ok,

I've find some answers: the ExtendMetadta section is created on the fly in the cswmetadata.php file and more exactly in the extend function.

What I can confirm after some research, is that the xml attribute name isharvested in the code remains blocked at true, and so the ExtendedMetadata block is never generated.

What I can't explain is why in my database my metadata seems good, i.e whith harveted at false value:

<sdi:platform guid="4db7ef53-9751-11e5-ba8b-bc305bdf52d8" harvested="false">
<sdi:resource guid="996e0f19-eae6-c2f4-a1c2-0ffa469e39a0" alias="nouvelle-metadonnee" name="nouvelle metadonnée" type="donneesgeographique" organism="805e9016-2adb-efc4-b9f2-24b5c017593c" scope="public">
<sdi:metadata guid="711a513e-6cb6-0664-05f1-6f8cebe5c81a" created="2015-12-11 15:45:14" published="2015-12-11 00:00:00" endpublished="0000-00-00 00:00:00" state="published">
<sdi:diffusion isFree="false" isDownloadable="false" isOrderable="false" />
<sdi:visualization isViewable="false" />
</sdi:metadata>
</sdi:resource>
</sdi:platform>

whereas when I open it with the xml view from the catalog I see the value set to "true" ?


<sdi:platform guid="4db7ef53-9751-11e5-ba8b-bc305bdf52d8" harvested="true">
<sdi:resource guid="996e0f19-eae6-c2f4-a1c2-0ffa469e39a0" alias="nouvelle-metadonnee" name="nouvelle metadonnée" type="donneesgeographique" organism="805e9016-2adb-efc4-b9f2-24b5c017593c" scope="public">
<sdi:metadata guid="711a513e-6cb6-0664-05f1-6f8cebe5c81a" created="2015-12-11 15:45:14" published="2015-12-11 00:00:00" endpublished="0000-00-00 00:00:00" state="published">
<sdi:diffusion isFree="false" isDownloadable="false" isOrderable="false"/>
<sdi:visualization isViewable="false"/>
</sdi:metadata>
</sdi:resource>
</sdi:platform>

Is it a known bug or just a personnal one ;-) ?
Thanks.

RE: ExtendedMetadata - Added by Blatti Yves almost 2 years ago

Hi Cléments, sorry for late reply.

You got it right, sdi:platform base is saved in XML metadata in your CSW catalog and used for CSW filters (search etc), then the metadata is dynamically extended with database elements in cswmetadata::extend on read.

I don't have harvesting on my platform, so I cannot guarantee any of my answers, but I may have a track to follow:
  • You data stored in GeoNetwork says harvested="false" and when you get it with easySDI catalog you get harvested="true", am I right ?
  • the process tunnel to get a data is:
    • [read from CSW catalog (geonetowrk)] -> [java proxy] -> [Joomla Catalog component] -> [XSL transforms] -> [display]
  • I suppose you don't overwrites this values in XSL
  • My guess is proxy is the problem
    • What is your proxy configuration ?
      • Have you accidentally set the 'harvester service' ('Moissonnage') flag on your geonetwork catalog virtual service? (I suppose this could lead to this kind of symptoms... )
      • See lines 443+ here

HIH

RE: ExtendedMetadata - Added by BRUNET Clément almost 2 years ago

Hi,

Thanks, yes it helped me.

I had ever seen this option harvested checked but without the confirmation of a specific procesing in the java code it was difficult to confirm it, futhermore I needed to restart the proxy war to make it effective.

After that I could see again my own metadata. Then I could see that my BBox pushed on the policy was to restricted and prevented a coherent display !

I've got some other work on it to make a nice catalog but I can now goes on !

thanks.
Bye.

Clément.

RE: ExtendedMetadata - Added by BRUNET Clément almost 2 years ago

BRUNET Clément wrote:

Hi,

Thanks, yes it helped me.

I had ever seen this option harvested checked but without the confirmation of a specific procesing in the java code it was difficult to confirm it, futhermore I needed to restart the proxy war to make it effective.

After that I could see again my own metadata. Then I could see that my BBox pushed on the policy was to restricted and prevented a coherent display !

I've got some other work on it to make a nice catalog but I can now go on !

thanks.
Bye.

Clément.

(1-4/4)