Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Steps:


  1. Download the sample plugin.
  2. Extract the downloaded plugin in to a folder and delete jar file. Eg. os-sample-plugin

    $ jar -xvf os-sample-plugin.jar
  3. To change a field name appearing in UI, edit file os-sample-plugin/test/META-INF/resources/os-plugin/i18n/en.js and add the field which needs to be changed in the key value format. Eg. To  change Short Title field in Distribution protocol to appear as Request ID.

    {
    "dp" : {
        "short_title": "Request ID"
      }
    }
  4. Save and exit  en.js the file.
  5. The en.js file will change the value in UI. To  change the a field in backend and in Templates message.properties needs to be updated.

  6. Edit os-sample-plugin/os-plugin-jar/errors/message.properties to change the value of field in backend. Search the for the field needs to be changed. 
    eg. If dp_short_title should be  Request ID instead of Short Title. 

    dp_short_title = Short Title 

    Replace Short Title with Request ID.

    dp_short_title = Request ID
  7. Save and exit message.properties
  8. Create new plugin using given command:  

    $jar -cf os-sample-plugin.jar META-INF/ pluginContext.xml errors/ pluginApiContext.xml pluginContext.xml
    
  9. Copy the newly created plugin to $OS_HOME/plugins/  and restart OpenSpecimen service.



  • No labels