Add metadata bound fields in the Publication search page
The Search page for publications requires specific settings.
Procedure
- Add the field(s) to
SearchNewPublications.xml(\Infoshare\Web\Author\ASP\XSL) like with any other field you want to add to the Search. - In addition you need to add the
data-metadatabinding-propertyattribute to indicate the name and level of the field the binding needs to be applied on. These should match with the regular name and level attributes.<ishfield name="FTESTCITIES" label="Cities" level="logical" sort="no" info="Cities" showoperator="no" operator="contains" datatype="text" data-metadatabinding-property='{ "fieldLevel": "Logical", "fieldName": "FTESTCITIES" }'/> - In the <head> of
SearchNewPublications.asp(\Infoshare\Web\Author\ASP) add the.jsscripts that will allow to find the values of the added fields.<script type="text/javascript" src="Scripts/MetadataBinding/MetadataBindingFormRenderer.js"></script> <script type="text/javascript"> // Apply binding after the document is ready $(function () { Trisoft.MetadataBinding.FormRenderer.applyBindings("", function () { // Do your custom stuff here }); }); </script> - In the
<form>element forSearchNewPublications.aspadd thedata-metadatabinding-viewattribute.<form method="POST" action="DocumentMsg.asp" target="DocumentMsg" data-metadatabinding-view='{ }'>