DSpace should definetely get rid of hard coded field settings and let the
system read the form settings from configuration files.
I tried to comment out some lines from the code, but couldnt achieve what Im
looking after; that is to let user enter date.issued without having to use
the initial questions in workflow. Would some of the developers comment on
how to achieve this?

Thanks,
Mika


2008/10/6 Víctor Izaguirre <[EMAIL PROTECTED]>

> Yes, It's possible change this, you need change the code in this file
> dspace-source\src\org\dspace\app\webui\util\DCInputSet.java
>
>
>     /**
>      * Does this set of inputs include the previously published fields?
>      *
>      * @return true if the current set has all the prev. published fields
>      */
>     public boolean isDefinedPubBefore()
>     {
>      return ( isFieldPresent("date.issued") &&
>      isFieldPresent("identifier.citation") &&
>  isFieldPresent("publisher.null") );
>     }
>
> and
>
>     private static boolean doField(DCInput dcf, boolean
> addTitleAlternative,
>        boolean addPublishedBefore)
>     {
>      String rowName = dcf.getElement() + "." + dcf.getQualifier();
>      if ( rowName.equals("title.alternative") && ! addTitleAlternative )
>      {
>      return false;
>      }
>      if (rowName.equals("date.issued") && ! addPublishedBefore )
>      {
>      return false;
>      }
>      if (rowName.equals("publisher.null") && ! addPublishedBefore )
>      {
>      return false;
>      }
>      if (rowName.equals("identifier.citation") && ! addPublishedBefore )
>      {
>      return false;
>      }
>
>      return true;
>     }
> 2008/10/6 Sandoval, Alvaro <[EMAIL PROTECTED]>
>
> Hi:
>> Now I know why:
>> We excluded the citation field from the submission form, and it is
>> required
>> for the checkbox to appear. It would be easier if that behaviour is
>> included
>> in a configuration file.
>>
>> Thanks,
>> Alvaro
>>
>> -----Mensaje original-----
>> De: Sandoval, Alvaro [mailto:[EMAIL PROTECTED]
>> Enviado el: Miércoles, 01 de Octubre de 2008 13:11
>> Para: '[EMAIL PROTECTED]'
>> Asunto: [Dspace-tech] Submission form's initial questions
>>
>> Hi all:
>>
>> We have dspace1.5, and suddenly in the submission form doesn't appear the
>> "The item has been published or publicly distributed before" checkbox.
>> And because of that the field date.issued is not present in the form.
>>
>> Do you know why, and how to change it?
>>
>> Thanks in advance.
>> Alvaro Sandoval
>> [EMAIL PROTECTED]
>> Biblioteca del Congreso Nacional Chile
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>
>
>
> --
> Saludos cordiales,
>
> Víctor Izaguirre Castro
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to