Commit 943e26d8 authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Added PRODID to be able to set the ProductId to a value.

parent f2543ce9
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -43,6 +43,17 @@ void IsisMain() {
    throw  IException(IException::User, msg, _FILEINFO_);
  }

  if ( ui.WasEntered("PRODID")) {
    PvlGroup &archiveGroup = label->findObject("IsisCube").findGroup("Archive");
    try {
      PvlKeyword &prodId = archiveGroup.findKeyword("ProductId");
      prodId.setValue( ui.GetString("PRODID") );
    }
    catch (IException &e) {
      archiveGroup.addKeyword( PvlKeyword("ProductId", ui.GetString("PRODID")) );
    }
  }

  /*
  * Add additional pds label data here
  */
+18 −1
Original line number Diff line number Diff line
@@ -29,6 +29,10 @@
    <change name="Marjorie Hahn" date="2017-06-08">
      Moved code to write out .img and .xml PDS4 data to WritePds4 in ProcessExportPds4.
    </change>
    <change name="Kaitlyn Lee" date="2018-05-16">
      Added parameter PRODID to set the ProductId keyword. If the keyword does
      not exist in the label, it will add it.
    </change>
  </history>

  <category>
@@ -65,5 +69,18 @@
        <filter>*.img</filter>
      </parameter>
    </group>

    <group name="Keywords">
      <parameter name="PRODID">
        <type>string</type>
        <brief>
          Poduct ID value
        </brief>
        <description>
          Update the default Product ID value.
        </description>
      </parameter>
    </group>

  </groups>
</application>