[Dspace-tech] Apache/Tomcat/DSpace munging jquery files

2013-09-09 Thread Owen Williams
Hello,
  We're using:

Apache 2.2.15
Tomcat 7.0.41
DSpace 3.1 branch from git

Some aspect of the above and XMLUI is munging things like /* */ comments
from Javascript and other things which are difficult to identify because
the Javascript is minified.  The result breaks the fancy box code I'm
using.

I'll just deal with the first symptom.  If I take the code that gets
rendered as static HTML and copy the original Javascript files to a
vanilla Apache server the page is rendered OK and the fancy box works.

The first line of jquery-1.7.1.min.js reads :

/*! jQuery v1.7.1 jquery.com | jquery.org/license */

which is there if I use the vanilla Apache but missing when I use the
DSpace instance.

Can someone suggest a fix, please, or an approach to find the problem?
Why are .js files being 'handled' instead of just being served?

Best regards,

Owen.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] default.license : Manakin : XMLUI : style

2013-09-03 Thread Owen Williams
helix84,

On Tue, 2013-09-03 at 14:13 +0200, helix84 wrote:
 I did some preliminary investigation.
 
 The license text gets added to DRI here:
 https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/LicenseStep.java#L105
 
 And here's JavaDoc for that method:
 http://demo.dspace.org/javadocs/3/apidocs/org/dspace/app/xmlui/wing/element/Division.html#addSimpleHTMLFragment(boolean,
 java.lang.String)
 
 Depending on what you want to do, you may try to use blankLines = true
 or replace the method call altogether with whatever you need. 

I did the same investigation.  While we're competent enough to change
the Java we try to stick to customising XSLT, Javascript etc leaving the
actual code base alone.  We've managed so far.  I nearly did change the
Java because I had been pulling my hair out trying to get the text file
to behave differently at all.

Thanks.

Owen.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] default.license : Manakin : XMLUI : style

2013-09-03 Thread Owen Williams
Helix84,

On Tue, 2013-09-03 at 15:42 +0200, helix84 wrote:
 I understand your motivation to refrain from modifying any Java code.
 Without digging much deeper, I recommend you to ignore (in XSL) the
 license text as Java inserts it into DRI. Instead, use the XSL
 document() call to include a license file with DRI tags (same as in
 news-xmlui.xml). Please notice that those are DRI tags, not HTML tags.
 There's DRI element reference here:
 https://wiki.duraspace.org/display/DSDOC3x/DRI+Schema+Reference
 
 Regards,
 ~~helix84 

That's a good suggestion.

Thanks.

Owen.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] default.license : Manakin : XMLUI : style

2013-09-02 Thread Owen Williams
Hello,
  I'm trying to update our DSpace 3.1 dev instance to use a new license.
When I change the default.license file on disk, rebuild and re-start the
service any style is stripped (in this case just newlines) from the
license when rendered.  In JSPUI we can use /dspace-admin/license-edit
to change the text.  That's not available in XMLUI but I don't think it
would help.  The license is bracketed by 'p class=ds-paragraph' and
any HTML (I've) added to the UTF-8 text file get stripped.

--

I've just found something approaching a solution:

#aspect_submission_StepTransformer_div_submit-license-standard-text {
  white-space: pre-line;
}

added to the style sheet.  This respects the newlines in the text file
and works for Firefox and .

Hope someone finds this useful.

Owen.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] Producing an ICS file on the fly

2013-07-18 Thread Owen Williams
Hello,
  I have a plan to create an ICS file on the fly given a date and a
summary:


BEGIN:VCALENDAR 
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:u...@example.com
DTSTAMP:19970714T17Z
ORGANIZER;CN=DSpace Admin:MAILTO:dspace.ad...@example.com
DTSTART:19970714T17Z
DTEND:19970715T035959Z
SUMMARY:http://dspace.example.com/handle/2001/1002
END:VEVENT
END:VCALENDAR

I need to create a URL with parameters that will be displayed on item
summary pages.  On clicking the URL I want DSpace (rather than another
service) to create the file with the appropriate mime type.

What is the best approach please?  I'm looking at the java around
FeedGenerator at the moment...

Best regards,

Owen.

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] Changing Thumbnails

2011-08-10 Thread Owen Williams
Hello,
  I'm developing code to produce sliders or carousels of thumbnails.
We're hoping to include video in our repository www.dora.dmu.ac.uk.  I
thought I could add a thumbnail upload at the point where a bitstream is
uploaded.  But I found that the preferred method is to use:


dspace filter-media 

I think, though and people on this list agree, that the user should be
able to choose the thumbnail for a video, or any media, because the
automated process is too indiscriminate.

I'm hoping that I can produce something where the automated process is
backed up by the chance to change the thumbnail with one the user
chooses.

Has anyone done something like it?  Is this a good approach?

Best regards,

Owen.


signature.asc
Description: This is a digitally signed message part
--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech