EPrints Technical Mailing List Archive

Message: #02640


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Changes to response pages


Hi Andrew,
I have an xpage on our server that tries to demonstrate the item request process - including the phrases used in emails.
I've attached a copy - but we me have phrases/pins that you don't - so expect to tinker with it!

If you save it to: ~/archives/ARCHIVEID/cfg/lang/en/static/requests.xpage you *should* be able to see it at http://your-repo.org/requests.html
You can see our output here:
http://etheses.whiterose.ac.uk/requests.html

If you can't view the page, check the apache error logs - there will probably be something helpful in there.

If any of the phrases have pins in them, you have to set them using an epc:param e.g.
<epc:param name='title'>THIS IS THE TITLE</epc:param>

There was a bug with phrase handling/params in xpages in earlier releases of EPrints (can't remember which version it was fixed in - possibly 3.3.11 or 3.3.12), that meant that any whitespace in the phrase/params XML would cause the xpage to break.
Setting the phrase out nicely is broken:
<epc:phrase ref="request/request_email:body">
    <epc:param name="eprint">Thesis title link</epc:param>
    <epc:param name="document">Document</epc:param>
    <epc:param name="requester">requester@email</epc:param>
    <epc:param name="reason">The reason specified</epc:param>
</epc:phrase>

Running it all into one line is OK:
<epc:phrase ref="request/request_email:body"><epc:param name="eprint">Thesis title link</epc:param><epc:param name="document">Document</epc:param><epc:param name="requester">requester@email</epc:param><epc:param name="reason">The reason specified</epc:param></epc:phrase>

Hope that helps!
Cheers,
John

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 12 February 2014 14:22
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Changes to response pages

Hello! I think I’m getting to grips with the way EPrints plugs together. My next question is related to “result pages”, for example, if someone requests a copy of a document and the owner of the document receives this request by email. When they click on the “approve request” link, they are taken to a page which is generated based on the request token. Is there any way of getting to that page outside of this email loop so that, for example, we can make typo changes and check them in a test environment?

Andrew

The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.

The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/

Attachment: requests.xpage
Description: requests.xpage