Like so?
I did this by updating the myprofile files. the attached zip has the files for it.
hi, this is indeed possible, but requires a few things:
Hi Marten,
Thank you for the detailed reply, I really appreciate it.
Yes, exactly like so. Wow, thank you. I now can examine the files and use it for myself.
So how does one apply these new files /tabs /fields to the existing geoportal? I overwrite the existing 'myprofile' or is there another process?
yep! just replace the existing myprofile folder with the contents of the zip. no need even to restart Tomcat. Just a 'clear browser cache' in Chrome will show the updated editor.
I must be missing something, I did replace the existing myprofile folder but it's the same. I can't get the Ecommerce to show.
So, I login and go to the Admin menu, I choose Create Metadata and choose the New Document option.
From there, I have the following options
Is the myprofile profile supposed to be here or should I choose one of the above templates /profiles?
ah, that means you have not yet configured the geoportal to consider myprofile yet. to do so, you will need to edit geoportal\app\context\metadata-editor.js. That file lists the known and used profiles. You will see a list 'allowedTypeKeys' with quite some values. Those values are the keys of the active metadata profiles in your geoportal. You can remove some you don't need and then add "myprofile-iso-19115" to the list.
Then notice the list called 'typeDefinitions'. The entries in this list describe the different metadata profiles by telling geoportal where to find a profile (in the webapp structure) and how to recognize XML to be of the defined profile by an XPath expression ("path"), a criterion ("must":true) and sometimes a value. In that list insert the following JSON object:
{
key: "myprofile-iso-19115",
requiredPath: "app/gxe/types/myprofile/base/DataDocumentType",
interrogationRules: [{
path: "/gmd:MD_Metadata/gmd:metadataStandardName/gco:CharacterString",
value: "MyProfile",
must: true
}]
}
Yes, that did the trick. I did not know of the metadata-editor.js - Thank you kind sir!
One last question, this custom profile you have provided me with, is based of which profile? I'd like to extend the 'Arcgis metadata' but I will need to examine the custom profile you have made so that I can do it on my own. I need to extend this type