Well, let me group all the information and conclusions we&#39;ve got so far.<br><br>Kim Shepherd has suggested SWORD as a way of creating alternatives submission interfaces for the content type based submission process we want (this email Kim sent me is attached in the end of this email). We think this is not exactly what we need because we&#39;d ought to have a form with all possibilities (the fields, the attributes) of all content types and then, after the item has been inserted, for example, the item&#39;s DB row would have blank fields. Therefore, for us, SWORD is only useful for developing more agile submission apps, other than the web-not-that-agile interface. Let me know, Kim, if our conclusion about SWORD is not correct.<br>
<br>Graham Triggs has said that it is not necessarily that hard to develop a form selector based on content type and has given some instructions about how to do it. After following his instructions and looking at Dspace classes we found that we need to know more about Dspace&#39;s structure to feel able to change anything without causing undesired side effects.<br>
<br>Finally, our choice came from the experience told by Paulo Jobim: to create collections related to the content type (books, articles, images, etc) and also collections related to the item&#39;s classification (philosophy, sociology, anthropology, etc...). So, we won&#39;t have to change the code and we&#39;re able to create different forms for each collection, that is, different forms for different content types, dealing with configurations Dspace already provides. The problem is that the item will have to be mapped: after inserting it according to its type, it must be mapped to its classification collection. Our next step is to integrate item mapping into the submission process. Any idea?<br>
<br>Thank you all for the contributions. <br><br>***<br><br>Kim&#39;s email about SWORD:<br><br><i>&gt; Hi Yuri,<br>&gt;<br>&gt; Perhaps SWORD can help -- there are Java and PHP libraries around.<br>&gt;<br>&gt; I haven&#39;t implemented anything yet myself, but this is the path I&#39;m taking<br>
&gt; to build a submission interface that can handle different forms for<br>&gt; different resource types without creating extra clutter in the<br>&gt; collection/community hierarchy.<br>&gt;<br>&gt; There is lots of cool stuff SWORD can do, but rather than list it all, I&#39;ll<br>
&gt; just give you some links: <a href="http://www.swordapp.org/">http://www.swordapp.org/</a> and<br>&gt; <a href="http://www.ukoln.ac.uk/repositor">http://www.ukoln.ac.uk/repositor</a>&lt;<a href="http://www.ukoln.ac.uk/repositories/digirep/index/SWORD">http://www.ukoln.ac.uk/repositories/digirep/index/SWORD</a>&gt;For<br>
&gt; sh &lt;<a href="http://www.ukoln.ac.uk/repositories/digirep/index/SWORD">http://www.ukoln.ac.uk/repositories/digirep/index/SWORD</a>&gt;<br>&gt; ies/digirep/index/SWORD&lt;<a href="http://www.ukoln.ac.uk/repositories/digirep/index/SWORD">http://www.ukoln.ac.uk/repositories/digirep/index/SWORD</a>&gt; <br>
&gt;<br>&gt; There is a DSpace SWORD module since 1.4.2 (perhaps earlier?)<br>&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Kim<br>&gt;</i><br><br><br><div class="gmail_quote">On Sat, Feb 21, 2009 at 6:21 AM, Graham Triggs <span dir="ltr">&lt;<a href="mailto:graham@biomedcentral.com" target="_blank">graham@biomedcentral.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Actually, it isn&#39;t necessarily that hard (providing you are using 1.5+, to accomodate altering the order of submission steps, and don&#39;t mind the solution being a bit of a hack).<br>
<br>
The DCInputsReader that drives the metadata forms already has a form selector based on the collection-handle.<br>
<br>
In an ideal world, you may extend the DCInputsReader to provide other selection mechanisms - but you could just take the path of least resistance locally, and simply change the describe step to pass any arbitrary data that you want in place of the collection handle (for example the Mime type) when calling DCInputsReader.getInputs().<br>



<br>
Then, in the input-forms.xml, you would have:<br>
<br>
 &lt;form-map&gt;<br>
   &lt;name-map collection-handle=&quot;default&quot; form-name=&quot;traditional&quot; /&gt;<br>
   &lt;name-map collection-handle=&quot;audio/mpeg&quot; form-name=&quot;mp3&quot; /&gt;<br>
 &lt;/form-map&gt;<br>
<br>
 &lt;form-definitions&gt;<br>
<br>
   &lt;form name=&quot;traditional&quot;&gt;<br>
     &lt;page number=&quot;1&quot;&gt;<br>
       ...<br>
     &lt;/page&gt;<br>
   &lt;/form&gt;<br>
<br>
   &lt;form name=&quot;mp3&quot;&gt;<br>
     &lt;page number=&quot;1&quot;&gt;<br>
       ...<br>
     &lt;/page&gt;<br>
   &lt;/form&gt;<br>
<br>
G<div><br>
<br>
On 13/02/2009 13:14, Yuri wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
Robin, I think we should have asked before trying to find a way DSpace<br>
inside. =P<br>
Really thank you for your fast answer, Robin.<br>
<br>
Perhaps someone have tried a way of doing it. Anyone? (Even I ask, our<br>
conclusion is that developing this in DSpace is not that easy.)<br>
<br>
Yuri<br>
<br>
On Fri, Feb 13, 2009 at 10:43 AM, Robin Taylor &lt;<a href="mailto:robin.taylor@ed.ac.uk" target="_blank">robin.taylor@ed.ac.uk</a><br></div><div>
&lt;mailto:<a href="mailto:robin.taylor@ed.ac.uk" target="_blank">robin.taylor@ed.ac.uk</a>&gt;&gt; wrote:<br>
<br>
    Hi Yuri,<br>
<br>
    Unfortunately Dspace doesn&#39;t have a type based submission. The best<br>
    you can do is what you described, have different collections for<br>
    different types. Sorry to not be of more help.<br>
<br>
    Robin.<br>
<br>
    Robin Taylor<br>
    Main Library<br>
    University of Edinburgh<br>
    Tel. 0131 6515208<br>
<br>
     &gt; -----Original Message-----<br>
     &gt; From: <a href="mailto:dspace-general-bounces@mit.edu" target="_blank">dspace-general-bounces@mit.edu</a><br>
    &lt;mailto:<a href="mailto:dspace-general-bounces@mit.edu" target="_blank">dspace-general-bounces@mit.edu</a>&gt;<br>
     &gt; [mailto:<a href="mailto:dspace-general-bounces@mit.edu" target="_blank">dspace-general-bounces@mit.edu</a><br>
    &lt;mailto:<a href="mailto:dspace-general-bounces@mit.edu" target="_blank">dspace-general-bounces@mit.edu</a>&gt;] On Behalf Of Yuri<br>
     &gt; Sent: 13 February 2009 12:20<br></div><div>
     &gt; To: <a href="mailto:dspace-general@mit.edu" target="_blank">dspace-general@mit.edu</a> &lt;mailto:<a href="mailto:dspace-general@mit.edu" target="_blank">dspace-general@mit.edu</a>&gt;<br>
     &gt; Subject: [Dspace-general] Displaying forms according to content type.<br>
     &gt;<br>
     &gt; Hi everyone.<br>
     &gt;<br>
     &gt; Let me introduce my self, once I&#39;m new here and I don&#39;t know<br>
     &gt; how much formal people are here. ;-)<br>
     &gt;<br>
     &gt; My name is Yuri Gomes Cardenas, I&#39;m brazilian and study in a<br></div>
     &gt; public university (&lt;<a href="http://www.ufsc.br" target="_blank">www.ufsc.br</a> &lt;<a href="http://www.ufsc.br" target="_blank">http://www.ufsc.br</a>&gt;&gt;) which is<div><div></div><div><br>

    located in the<br>
     &gt; south, Florianópolis, Santa Catarina state. I work in a<br>
     &gt; informatics laboratory (where we use, develop and promote<br>
     &gt; free software) of the university and the project I&#39;m engaged<br>
     &gt; now has to do with a digital library with which we aim to<br>
     &gt; give support to teachers of public high schools, of<br>
     &gt; philosophy and sociology disciplines. After some search and<br>
     &gt; attempts, we found DSpace and started learning how this<br>
     &gt; software works.<br>
     &gt;<br>
     &gt; The question is:<br>
     &gt;<br>
     &gt; Does anyone know if DSpace has some native mechanism for<br>
     &gt; displaying the submission forms according to the content<br>
     &gt; type? That is, once I choose a &quot;audio&quot; content type, the next<br>
     &gt; steps should display some set of field (obviously, related to<br>
     &gt; this content type) and if I choose an &quot;article&quot;, another set<br>
     &gt; of fields (not necessarily completely different) are<br>
     &gt; displayed. We already know that it&#39;s possible to change<br>
     &gt; forms&#39; fields according to Collections, but we do not think<br>
     &gt; this would be the best way of doing that.<br>
     &gt;<br>
     &gt; And I hope my bad written english do not interfere my<br>
     &gt; threads&#39; understanding. =)<br>
     &gt;<br>
     &gt; Thanks in advance.<br>
     &gt;<br>
     &gt; Yuri Gomes Cardenas<br>
     &gt;<br>
     &gt;<br>
<br>
<br>
    --<br>
    The University of Edinburgh is a charitable body, registered in<br>
    Scotland, with registration number SC005336.<br>
<br>
<br>
<br></div></div>
------------------------------------------------------------------------<div><br>
<br>
_______________________________________________<br>
Dspace-general mailing list<br>
<a href="mailto:Dspace-general@mit.edu" target="_blank">Dspace-general@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/dspace-general" target="_blank">http://mailman.mit.edu/mailman/listinfo/dspace-general</a><br>
</div></blockquote>
<br>
</blockquote></div><br>