Dear all,

I have successfully created document delivery form by duplicating the
feedback form. I added a checkboux for the terms/agreement. My problem now
is that how can I disable the submission of the form if the user did not
check 'agreement' checkbox. I circumvent this by using javascript to
disable the submit button if the checkbox is uncheck, but the form will be
submitted if javascript was disabled. Also, I want to include the requested
item title to be part of the form(or message) so that the recipient of the
request will know the title (although the generated email message includes
the referring page) and the user don't have to type/input the title that
he/she's interested in. I tried to copy pieces of code from the request
copy feature of muelle (https://github.com/DSpace/DSpace/pull/260) but I
keep getting java.lang.NullPointerException error. I also tried to lookup
in the SuggestServlet but I can't figure out how to incorporate this in my
code since AFAIK (and I'm not a java developer/programmer), this feature
was made for JSPUI only. I enabled the form by creating a link to every
item with no bitstream:


<p><i18n:text>xmlui.dri2xhtml.METS-1.0.item-no-files</i18n:text></p>
                            <p>
                                <a>
                                <xsl:attribute name="href">
                                    <xsl:value-of

select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/>
                                    <xsl:text>/ill</xsl:text>
                                </xsl:attribute>
                                <xsl:text>Request this document</xsl:text>
                            </a>
                            </p>

Attached is my code for the document delivery request form. Hope someone
can help me on how to make my document delivery form worked as I expected.
Any ideas would be greatly appreciated!

Thanks in advance and regards,
Elvi

On Fri, Aug 9, 2013 at 6:50 PM, Nemiz, Elvi <[email protected]> wrote:

> Dear All,
>
> I'm wondering if somebody have developed a feature to generate a document
> delivery/ILL form just like the feedback form. I am aware of the request
> copy feature that allows users to request restricted pdfs but I'm also
> concerned if the publisher specifically prohibits uploading of the
> publisher's version and we don't have the available version (e.g. old
> journal articles or the original author don't have a copy anymore) that
> they allow to archive in the author's institutional repository? It would be
> nice if the generated form were already prefilled with information like
> title, author, citation, etc. Please see this item from IDRC:
> http://idl-bnc.idrc.ca/dspace/handle/10625/15625, where there's a
> button/link "Request this document" and clicking this link will send you to
> a Document Delivery Form. Of course the user could just use the feedback
> form but what I'm trying to achieve here is to automatically generate the
> title of the item that they're interested.
>
> Thanks in advance and cheers!
>
> --
> Elvi S. Nemiz
> Information Assistant
> Library and Data Bank Services Section
> Training and Information Division
> SEAFDEC Aquaculture Department
> Tigbauan, Iloilo
> Philippines
>

Attachment: SendILLAction.java
Description: Binary data

Attachment: ILLForm.java
Description: Binary data

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to