<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do you batch insert metadata into multiple datasets? in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-do-you-batch-insert-metadata-into-multiple/m-p/386509#M2382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK I have a folder and I want to insert a keyword into all the datasets metadata without overwriting any existing metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked at this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_metadata_template/003t00000025000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;page&lt;/A&gt;&lt;SPAN&gt; in help and got it working but I discovered that it blitzes any existing metadata which is not good :(. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I looked at this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Editing_metadata_for_many_ArcGIS_items/003t00000026000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;page&lt;/A&gt;&lt;SPAN&gt; which appears to be the solution but using nightmare XLST style sheets. Now I'm the first person to put their hand up for feeling very much a fish out of water. I had a good look at their sample XLST style sheet which gives an example of search and replace of contact details. I'm not at all familiar with this sort of thing so needless to say my botched attempted failed when I ran the import metadata tool, strangely it did not give an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took their sample XLST style sheet and tried to adapt it but it does not work, can any metadata guru out there have a look and tell me what I did wrong? I'm guessing its failing on matching dataIDInfo or have I missed something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;xsl:stylesheet version="2.0" xmlns:xsl="&lt;A href="http://www.w3.org/1999/XSL/Transform" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/XSL/Transform&lt;/A&gt;"&amp;gt;
&amp;nbsp; &amp;lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no" /&amp;gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- process the metadata using the templates below --&amp;gt;
&lt;/SPAN&gt; &amp;lt;xsl:template match="/"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:apply-templates select="node() | @*" /&amp;gt;
&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- copy all metadata conent --&amp;gt;
&lt;/SPAN&gt; &amp;lt;xsl:template match="node() | @*" priority="0"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:copy&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:apply-templates select="node() | @*" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:copy&amp;gt;
&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- all metadata XSLT stylesheets used to update metadata should be identical to this example up to this point --&amp;gt;
&amp;nbsp; &amp;lt;!-- add the templates you'll use to update the metadata below --&amp;gt;
&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- Insert a place name keyword --&amp;gt;
&lt;/SPAN&gt; &amp;lt;xsl:template match="dataIdInfo" priority="1" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:copy&amp;gt;
&amp;nbsp; &amp;lt;xsl:apply-templates select="node() | @*" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;placeKeys&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;keyword&amp;gt;Pakistan&amp;lt;/keyword&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/placeKeys&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:copy&amp;gt;
&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:stylesheet&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:45:27 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2021-12-11T17:45:27Z</dc:date>
    <item>
      <title>How do you batch insert metadata into multiple datasets?</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-do-you-batch-insert-metadata-into-multiple/m-p/386509#M2382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK I have a folder and I want to insert a keyword into all the datasets metadata without overwriting any existing metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked at this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_metadata_template/003t00000025000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;page&lt;/A&gt;&lt;SPAN&gt; in help and got it working but I discovered that it blitzes any existing metadata which is not good :(. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I looked at this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Editing_metadata_for_many_ArcGIS_items/003t00000026000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;page&lt;/A&gt;&lt;SPAN&gt; which appears to be the solution but using nightmare XLST style sheets. Now I'm the first person to put their hand up for feeling very much a fish out of water. I had a good look at their sample XLST style sheet which gives an example of search and replace of contact details. I'm not at all familiar with this sort of thing so needless to say my botched attempted failed when I ran the import metadata tool, strangely it did not give an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took their sample XLST style sheet and tried to adapt it but it does not work, can any metadata guru out there have a look and tell me what I did wrong? I'm guessing its failing on matching dataIDInfo or have I missed something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;xsl:stylesheet version="2.0" xmlns:xsl="&lt;A href="http://www.w3.org/1999/XSL/Transform" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/XSL/Transform&lt;/A&gt;"&amp;gt;
&amp;nbsp; &amp;lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no" /&amp;gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- process the metadata using the templates below --&amp;gt;
&lt;/SPAN&gt; &amp;lt;xsl:template match="/"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:apply-templates select="node() | @*" /&amp;gt;
&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- copy all metadata conent --&amp;gt;
&lt;/SPAN&gt; &amp;lt;xsl:template match="node() | @*" priority="0"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:copy&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:apply-templates select="node() | @*" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:copy&amp;gt;
&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- all metadata XSLT stylesheets used to update metadata should be identical to this example up to this point --&amp;gt;
&amp;nbsp; &amp;lt;!-- add the templates you'll use to update the metadata below --&amp;gt;
&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN style="color:#006400;"&gt;&amp;lt;!-- Insert a place name keyword --&amp;gt;
&lt;/SPAN&gt; &amp;lt;xsl:template match="dataIdInfo" priority="1" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:copy&amp;gt;
&amp;nbsp; &amp;lt;xsl:apply-templates select="node() | @*" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;placeKeys&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;keyword&amp;gt;Pakistan&amp;lt;/keyword&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/placeKeys&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:copy&amp;gt;
&amp;nbsp; &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:stylesheet&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-do-you-batch-insert-metadata-into-multiple/m-p/386509#M2382</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-11T17:45:27Z</dc:date>
    </item>
  </channel>
</rss>

