Select to view content in your preferred language

Customize metadata profile to draw HTML page

1882
7
10-27-2010 07:42 PM
InWeedy
Emerging Contributor
I'm doing some metadata customization work using GPT 9.3.1. The hints capabilities provided in GPT is definitely a good one, whereas, im wondering how to display another icon to the right of the input field and when this icon is clicked, a new browser (a preconfigured HTML pages) will be lauched automatically. In fact, i have tried adding some HTML code in gpt.properties file to display the icon and draw the HTML page.

Adding the HTML code before the parameter Content Information:
catalog.mdParam.general.content = <a href="http://weedyexplorer/geoportal/catalog/page/page1.html" target="_blank" width="200" height="200"><img src="http://weedyexplorer/geoportal/catalog/images/mark.gif" alt="Guideline to choose the correct content" height="15" width="15" border="0"/></a> Content Information:

Images (mark.gif) is stored in:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoportal\catalog\images

HTML guideline(page1) mentioned above is stored in a folder named page:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoportal\catalog\page

However GPT seems like cannot read this HTML code. After the metadata is published and the "view details" is clicked, all the HTML code appears.

Hope to get some helps in order for me to link my HTML page to GPT 9.3.1.

Thanks, weedy
0 Kudos
7 Replies
CliveReece
Esri Contributor
Weedy,
Let me see if I understand.  The 'hints' you are referring to, are they the hintResourceKey property that you can set in the definitions.xml file for a metadata profile?  ... and are you saying that the resource string associated with that hintResourceKey displays the html markup when a user clicks 'view details' but the markup does not display properly when a publisher loads the web form?
Clive
0 Kudos
InWeedy
Emerging Contributor
Hi Clive,

Yea, the hint i'm referring to is the hintResourceKey property that I set in the definitions.xml file for my customized metadata profile. And right now, I would like to display one more icon to the right of the input field and when this icon is clicked, it will open up a HTML pages (which is some descriptions I would like to show to users, I use Dreamweaver to customize this short description and save as .html). Any way to do this? Obviously my way of doing it is incorrect. But i can briefly explain what i did.

Initially I tried to put in some html tag(red color) in gpt.properties to display the icon i want and to make the icon to launch a html page when it is clicked, it is just some simple html markup added. As a result, when "view detail" is clicked, the markup displayed together with the metadata parameter as below:

___________________________________________________________________________________
Metadata Details

GENERAL INFORMATION (METADATA)

<a href="http://weedyexplorer/geoportal/catalog/page/page1.html" target="_blank" width="200" height="200"><img src="http://weedyexplorer/geoportal/catalog/images/mark.gif" alt="Guideline to choose the correct content" height="15" width="15" border="0"/></a> Content Information: Live Data
and Maps
Metadata Language: English (en)
Character Set: 8859part3 (008)
Hierarchy Level: dataset (005)
Metadata Create Date: 2010-10-25
_____________________________________________________________________________________

I just want to add an icon and when this particular icon is clicked , it open up a HTML page. That's all. Thanks.
0 Kudos
CliveReece
Esri Contributor
Weedy,

If I add a new resource key-value to the gpt.properties:
[INDENT]catalog.mdParam.testHtml.hint = <a href="http://www.arcgis.com" target="_blank"><img src="http://gptogc.esri.com/geoportal/catalog/images/ContentType_document.png" alt="Guideline to choose the correct content" height="16" width="16" border="0"/>ArcGIS.com</a> &lt; Get more help here[/INDENT]
and then add a new hintResourceKey="catalog.mdParam.testHtml.hint" to an input element on one of my metadata definition.xml files, then I can get the html markup to show in the web form for a publisher. As in ...
[INDENT]ArcGIS.com < Get more help here[/INDENT]

However, it won't show up in the View Details because the hintResourceKey is designed for use as a hint for Publishers using the web form.

Clive
0 Kudos
InWeedy
Emerging Contributor
Clive, I managed to do it with the solution you provided. Wonderful. Thumb up!! ^.^ Thanks a million.

Regards,
Weedy
0 Kudos
InWeedy
Emerging Contributor
Clive,

One thing, it seems like the hintResourceKey doesn't work for input type="selectManyCheckbox". html markup doesn't appear in the web form for this particular input type.

Weedy
0 Kudos
CliveReece
Esri Contributor
One thing, it seems like the hintResourceKey doesn't work for input type="selectManyCheckbox". html markup doesn't appear in the web form for this particular input type.


Weedy,  Assuming you have maintenance support for Geoportal 9.3.1, please log this with Esri Technical Support and it will get logged into the the defect tracking system if needed.
Clive
0 Kudos
InWeedy
Emerging Contributor
Yea, forgot to say thank you.
Thanks a lot, Clive.

-Weedy-
0 Kudos