Solução 7 - TEDE2

De IBICT
Ir para: navegação, pesquisa

Para adicionar embargo ao Upload de um arquivo, siga os seguintes passos:

  • Localize o arquivo item.submission.xml localizado em [dspace-base]/config
  • Localize as seguintes linhas de código:
      <!--Step 4 will be to Upload the item -->
      <step>
        <heading>submit.progressbar.upload</heading>
        <processing-class>org.dspace.submit.step.UploadStep</processing-class>
        <jspui-binding>org.dspace.app.webui.submit.step.JSPUploadStep</jspui-binding>
		<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.UploadStep</xmlui-binding>
        <workflow-editable>true</workflow-editable>
      </step>
      

       <!-- Step 4 Upload Item with Embargo Features
            to enable this step, please make sure to comment-out the previous step "UploadStep"  
       <step>
           <heading>submit.progressbar.upload</heading>
           <processing-class>org.dspace.submit.step.UploadWithEmbargoStep</processing-class>
           <jspui-binding>org.dspace.app.webui.submit.step.JSPUploadWithEmbargoStep</jspui-binding>
           <xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.UploadWithEmbargoStep</xmlui-binding>
           <workflow-editable>true</workflow-editable>
       </step>
       -->
  • Repare que o segundo step 4 está completamente comentado e o primeiro não, basta inverter esses comentários, ficando assim:
      <!--Step 4 will be to Upload the item 
      <step>
        <heading>submit.progressbar.upload</heading>
        <processing-class>org.dspace.submit.step.UploadStep</processing-class>
        <jspui-binding>org.dspace.app.webui.submit.step.JSPUploadStep</jspui-binding>
		<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.UploadStep</xmlui-binding>
        <workflow-editable>true</workflow-editable>
      </step>
      -->

       <!-- Step 4 Upload Item with Embargo Features
            to enable this step, please make sure to comment-out the previous step "UploadStep" --> 
       <step>
           <heading>submit.progressbar.upload</heading>
           <processing-class>org.dspace.submit.step.UploadWithEmbargoStep</processing-class>
           <jspui-binding>org.dspace.app.webui.submit.step.JSPUploadWithEmbargoStep</jspui-binding>
           <xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.UploadWithEmbargoStep</xmlui-binding>
           <workflow-editable>true</workflow-editable>
       </step>
       
  • Repare que houveram mudanças nos "-->" que nada mais é que o símbolo que determina até onde o comentário irá atingir
  • Salve o arquivo, e
  • Reinicie o tomcat e verifique se deu tudo certo.