Re: [Dspace-tech] Open Search

2015-05-03 Thread Gary Browne
Argh I was sure I tried that already, but obviously not!

Thanks a lot Andrea, that did the trick.

Cheers,
Gary


Gary Browne | Development Programmer
University of Sydney Library
THE UNIVERSITY OF SYDNEY
Level 1, Fisher Library F03 | The University of Sydney | NSW | 2006
T +61 2 9351 5946 | M +61 405 647 868
E gary.bro...@sydney.edu.au
On 04/05/15 15:00, Andrea Schweer wrote:
Hi Gary,

On 04/05/15 16:37, Gary Browne wrote:
I'm trying to get open search working. I have enabled it and restarted tomcat. 
If I send a search like:

http://ses-dev.library.usyd.edu.au/open-search/?q=test

Looks like this needs to be query=test (and you don't strictly speaking need 
the trailing slash, though it shouldn't cause any problems either)
https://github.com/DSpace/DSpace/blob/dspace-4.1/dspace-jspui/src/main/java/org/dspace/app/webui/discovery/DiscoverUtility.java#L190

Does this work? http://ses-dev.library.usyd.edu.au/open-search/?query=test

cheers,
Andrea

--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Open Search

2015-05-03 Thread Andrea Schweer

  
  
Hi Gary,

On 04/05/15 16:37, Gary Browne wrote:


  
  I'm trying to get open search
working. I have enabled it and restarted tomcat. If I send a
search like:

http://ses-dev.library.usyd.edu.au/open-search/?q=test
  


Looks like this needs to be query=test (and you don't strictly
speaking need the trailing slash, though it shouldn't cause any
problems either)
https://github.com/DSpace/DSpace/blob/dspace-4.1/dspace-jspui/src/main/java/org/dspace/app/webui/discovery/DiscoverUtility.java#L190

Does this work? http://ses-dev.library.usyd.edu.au/open-search/?query=test

cheers,
Andrea
-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
  


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Open Search

2015-05-03 Thread Gary Browne
Hi all,

I'm using DSpace 4.1 JSPUI on RHEL 6 with Apache and Tomcat 7.

I'm trying to get open search working. I have enabled it and restarted tomcat. 
If I send a search like:

http://ses-dev.library.usyd.edu.au/open-search/?q=test

I can see in the logs the request is sent but it then bums out with:

2015-05-04 14:34:28,750 WARN  org.dspace.app.webui.servlet.InternalErrorServlet 
@ :session_id=1E8A239479112C95FCBFE4F668C82:internal_error:-- URL Was: 
http://ses-dev.library.usyd.edu.au/open-search?q=test
-- Method: GET
-- Parameters were:
-- q: "test"

java.lang.NullPointerException
   at java.net.URLEncoder.encode(URLEncoder.java:205)
   at org.dspace.app.util.OpenSearch.openSearchMarkup(OpenSearch.java:237)
   at org.dspace.app.util.OpenSearch.getResults(OpenSearch.java:215)
   at org.dspace.app.util.OpenSearch.getResultsDoc(OpenSearch.java:190)

etc.

What am I doing wrong?

Thanks,
Gary


Gary Browne | Development Programmer
University of Sydney Library
THE UNIVERSITY OF SYDNEY
Level 1, Fisher Library F03 | The University of Sydney | NSW | 2006
T +61 2 9351 5946 | M +61 405 647 868
E gary.bro...@sydney.edu.au


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Building DSpace after bug fix (DS-2542)

2015-05-03 Thread Margaret Vail
Thank you so much Andrea! I did step two as a quick and dirty check, and it 
works now!!

From: Andrea Schweer [mailto:schw...@waikato.ac.nz]
Sent: Sunday, May 3, 2015 6:39 PM
To: Margaret Vail; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Building DSpace after bug fix (DS-2542)

Hi Margaret,
On 02/05/15 01:48, Margaret Vail wrote:
I am trying to apply the suggested bug fix for DS-2542 
(https://jira.duraspace.org/browse/DS-2542) to my DSpace 5.1 instance. However, 
the changes are not displaying. Can someone please log through my build process 
and advise on any mistakes or anything I may be missing.

Update lyncode/xoai:

git clone https://github.com/lyncode/xoai.git
git checkout 3.x
(The bug fix was already accepted in this version of the code, so I did not 
need to apply it)
cd to lyncode/xoai root directory
mvn package
(Jar file built in target directory)
(I de-compiled the jar file and was able to confirm that the bug fix was 
included in the jar)

Run
mvn package install
that will install the jar file into your local maven cache, by default 
~/.m2/repository


Apply code changes in https://github.com/DSpace/DSpace/pull/912 to source code
cd [dspace-src]/dspace
mvn clean package
cd target/dspace-installer
ant update_code

You still need to tell DSpace to use your updated jar file -- there are two 
options. You can do this "properly", by changing the XOAI version in the DSpace 
pom file. Or you can do the rebuild as always and just swap in the updated jar 
file later.

First option

In the DSpace codebase ([dspace-src]/dspace-oai/pom.xml) change the OAI version 
to 3.2.10-SNAPSHOT -- this is exactly what's in the pom.xml file in the lyncode 
xoai project you just compiled. ("SNAPSHOT" means that this isn't an officially 
released version)
Since you are changing something in a [dspace-src]/dspace-* directory, you will 
need to do the full rebuild option
cd [dspace-src]   <- not [dspace-src]/dspace
mvn clean package
ant as in your description (I always use the update ant target; I'm not sure 
whether update_code is enough, I think you'd need update_webapps too
Then you should see the xoai-3.2.10-SNAPSHOT.jar in 
[dspace]/webapps/oai/WEB-INF/lib/ and in [dspace]/lib (and you should _not_ see 
xoai-3.2.9.jar in those directories)

Second option

Don't make the pom change, just do your normal rebuild (mvn&ant)
Then delete [dspace]/webapps/oai/WEB-INF/lib/xoai-3.2.9.jar and instead copy 
over the xoai you built yourself (xoai-3.2.10-SNAPSHOT.jar)
Then delete [dspace]/lib/xoai-3.2.9.jar and instead copy over the xoai you 
built yourself

I hope this helps.

cheers,
Andrea



--

Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Hiding sub-communities from main page

2015-05-03 Thread Andrea Schweer
Hi,

On 02/05/15 13:45, Ilana Kingsley wrote:
> I've just inherited a dspace project and know nothing about the software.

You've found the right place to ask questions :) Also, the official 
documentation is here: 
https://wiki.duraspace.org/display/DSDOC/All+Documentation

> I've been told there's no "admin" interface via the web-- which I find 
> hard to believe, and all changes need to be done command line.

That's not entirely true, but what you are asking about cannot be done 
via the admin interface.

> I'm wondering if someone can tell me how to hide sub-communities from 
> the community page.
> On https://scholarworks.alaska.edu/community-list if you click one of 
> the communities (example, UAF) we want to hide the third sub-community 
> on the list.
>
> Does anyone know how to do this?
>
> Note, it don't even know what version of dspace we are running or how 
> to tell what version we're running.

According to the "Generator" meta tag, you're running DSpace 3.1 
https://wiki.duraspace.org/display/DSDOC3x/DSpace+3.x+Documentation
Looking at the resources pulled in to the pages (css / JavaScript), 
you're using XMLUI with a theme based on Mirage 
https://wiki.duraspace.org/display/DSDOC3x/Mirage+Configuration+and+Customization

The community page looks nothing like a standard Mirage community page, 
so this must have been customised quite extensively. You'll probably 
want to try and find those customisations and see whether you can hide 
the communities you want to hide.

There is embedded JavaScript code on the community list page. It looks 
like this is generated in this xsl file: 
https://scholarworks.alaska.edu/themes/Mirage/lib/xsl/core/page-structure.xsl 
-- so you'll want to change that file. Find where the source code for 
your DSpace instance lives and figure out where the page-structure.xsl 
file is. It should be either under a "dspace/modules" directory tree or 
a "dspace-xmlui/src/main/webapp" tree -- for comparison, here is the 
standard 3.1 source tree: https://github.com/DSpace/DSpace/tree/dspace-3.1
Then you will probably need to rebuild DSpace to deploy the changes -- 
or you may be able to get away with just copying the page-structure.xsl 
file across. You may wish to try this whole process on a test instance 
if there is one; depending on how changes to the code and configuration 
have been managed, doing a rebuild may remove functionality.

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
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] Building DSpace after bug fix (DS-2542)

2015-05-03 Thread Andrea Schweer

  
  
Hi Margaret,

On 02/05/15 01:48, Margaret Vail wrote:


  
  
  
  I am trying to apply the suggested bug
fix for DS-2542 (https://jira.duraspace.org/browse/DS-2542)
to my DSpace 5.1 instance. However, the changes are not
displaying. Can someone please log through my build process and
advise on any mistakes or anything I may be missing.
 
Update lyncode/xoai:
 
git clone
  https://github.com/lyncode/xoai.git
git checkout 3.x
(The bug fix was already accepted in this
  version of the code, so I did not need to apply it)
cd to lyncode/xoai root directory
mvn package
(Jar file built in target directory)
(I de-compiled the jar file and was able to
  confirm that the bug fix was included in the jar)
  


Run 
mvn package install 
that will install the jar file into your local maven cache, by
default ~/.m2/repository


  Apply code changes in 
  https://github.com/DSpace/DSpace/pull/912 to source code
  cd [dspace-src]/dspace
  mvn clean package
  cd target/dspace-installer
  ant update_code  

You still need to tell DSpace to use your updated jar file -- there
are two options. You can do this "properly", by changing the XOAI
version in the DSpace pom file. Or you can do the rebuild as always
and just swap in the updated jar file later.

First option

In the DSpace codebase ([dspace-src]/dspace-oai/pom.xml) change the
OAI version to 3.2.10-SNAPSHOT -- this is exactly what's in the
pom.xml file in the lyncode xoai project you just compiled.
("SNAPSHOT" means that this isn't an officially released version)
Since you are changing something in a [dspace-src]/dspace-*
directory, you will need to do the full rebuild option
cd [dspace-src]   <- not [dspace-src]/dspace
mvn clean package
ant as in your description (I always use the update ant target; I'm
not sure whether update_code is enough, I think you'd need
update_webapps too
Then you should see the xoai-3.2.10-SNAPSHOT.jar in
[dspace]/webapps/oai/WEB-INF/lib/ and in [dspace]/lib (and you
should _not_ see xoai-3.2.9.jar in those directories)

Second option

Don't make the pom change, just do your normal rebuild (mvn&ant)
Then delete [dspace]/webapps/oai/WEB-INF/lib/xoai-3.2.9.jar and
instead copy over the xoai you built yourself
(xoai-3.2.10-SNAPSHOT.jar)
Then delete [dspace]/lib/xoai-3.2.9.jar and instead copy over the
xoai you built yourself

I hope this helps.

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
  


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] a thumbnail is not displayed

2015-05-03 Thread Evgeni
Thank you euler,

It works.
The comments in dspace.cfg are however very criptic:
### Settings for Item lists in Mirage theme ###
# What should the emphasis be in the display of item lists?
# Possible values : 'file', 'metadata'. If your repository is
# used mainly for scientific papers 'metadata' is probably the
# best way. If you have a lot of images and other files 'file'
# will be the best starting point

Thank you again
Evgeni



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/a-thumbnail-is-not-displayed-tp4677651p4677656.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
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