I use the following in page-structure.xsl, not elegant but effective ☺

<script type="text/javascript">

                        $(function() {
                                    $( 
"#aspect_submission_StepTransformer_field_dc_date_created" ).datepicker({
                                                changeMonth: true,
                                                changeYear: true,
                                                dateFormat: "yy-mm-dd",
                                                constrainInput: true,
                                                maxDate: new Date(),
                                                onClose: function(selectedDate) 
{
                                                            $(this).blur();
                                                },
                                                onSelect: 
function(selectedDate) {
                                                            $(this).blur();
                                                }
                                    });
                                    
$("#aspect_submission_StepTransformer_field_dc_date_created").attr('readOnly','true');
                        });
                        </script>

Requires JQuery

Ben

From: Iyer M [mailto:[email protected]]
Sent: 25 November 2014 15:44
To: [email protected]; dspace-tech
Subject: [Dspace-tech] Date Range Search in DSpace 4.x and above (Re posting)

Hello Community Members,

We are trying to implement Date Range search and trying to integrate Calendar 
in date fields.

I understand that its possible to make date range search by putting value in 
"yyyymmdd to yyyymmdd".

However, we want to put two fields for putting Start Date and End Date, along 
with adding Calendar in both field for selecting date in ddmmyyyy mode.

Request help of community for achieving this functionality. As it'll be easier 
for users to make date range search in this manner, while compared with crude 
mechanism of putting "yyyymmdd to yyyymmdd" input.

Thanks in advance.

M Iyer
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&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