[Dspace-tech] Old index is not transfered into the solr search index, when enabling dspace discovery

2011-01-12 Thread Franck Borel

Hi List,

I have enabled dspace discovery as specified in 
http://www.dspace.org/1_7_0Documentation/Discovery.html but my old data 
were not transfered into the solr search index. Is there any trick to 
get the old index into the solr search index? Using ./bin/dspace 
update-discovery-index seems not to do the trick :-(


Have a nice day!

-- Franck

<>--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Range query search in dspace 1.7.0

2011-01-12 Thread Keith Gilbertson
Does it happen to work from either the discovery search or the solr admin 
interface if you leave the "TO" out of the query?

var:[10 20]


On Jan 10, 2011, at 10:44 AM, Mckeane Thomas wrote:

> Hello, 
> 
> I have recently installed dspace 1.7.0 But I am unable to perform range query 
> searches. I have turned on Discovery as outlined in the documentation.
> For example the search "var:[10 TO 20]" with keyword "var" of type sint 
> indexed within the range "10 TO 20" produced no results.But when I do a 
> search for the keyword "var" the values returned are those indexed with 
> keyword "var" 
> 
> I have edited the 
> /dspace-1.7.0-release/dspace-instance/solr/statistics/conf/schema.xml 
> document and added the fields: 
> 
> 
>  mulitvalued ="true" omitNorms ="true" />
>  
> 
>  multiValued="true"/>
>  stored="true" multiValued="true"/>
> 
> and added to : /dspace-1.7.0-release/dspace-instance/config dspace.cfg 
> document the field for indexing: search.index.13 = var:dc.format.extent
> 
> 
> 
> Also from Solr admin search interface I performed the following search: 
> "var:[10 TO 20]" which also produced no results. 
> Also if I perform a search for the keyword "var" I get the error below.
> 
> HTTP Status 500 - String index out of range: 2 
> java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at 
> java.lang.String.charAt(String.java:687) at 
> org.apache.solr.util.NumberUtils.SortableStr2int(NumberUtils.java:129) at 
> org.apache.solr.schema.SortableIntField.write(SortableIntField.java:72) at 
> org.apache.solr.schema.SchemaField.write(SchemaField.java:108) at 
> org.apache.solr.request.XMLWriter.writeDoc(XMLWriter.java:311) at 
> org.apache.solr.request.XMLWriter$3.writeDocs(XMLWriter.java:483) at 
> org.apache.solr.request.XMLWriter.writeDocuments(XMLWriter.java:420) at 
> org.apache.solr.request.XMLWriter.writeDocList(XMLWriter.java:457) at 
> org.apache.solr.request.XMLWriter.writeVal(XMLWriter.java:520) at 
> org.apache.solr.request.XMLWriter.writeResponse(XMLWriter.java:130) at 
> org.apache.solr.request.XMLResponseWriter.write(XMLResponseWriter.java:34) at 
> org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325)
>  at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) 
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 
> at java.lang.Thread.run(Thread.java:619) 
> 
> However, doing the same range searches in dspace 1.6.2 from solr admin search 
> interface returns the expected results. 
> 
> Any help would be appreciated.
> 
> --
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to 
> best implement a security strategy that keeps consumers' information secure 
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl 
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread helix84
On Wed, Jan 12, 2011 at 18:12, Thornton, Susan M. (LARC-B702)[LITES]
 wrote:
> Are you planning on running a handle-server on this second instance?  If not, 
> just use any number for your prefix.  That's what we do since we can't run a 
> handle server since our DSpace instances are not publicly available.

Yes, it will be public and handles are a must.

If I won't be able to solve it more elegantly, as a last resort I plan
to bump up handle_seq of the 2nd instance to a number the 1st instance
will never reach and go from from there.

Regards,
~~helix84

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread Thornton, Susan M. (LARC-B702)[LITES]
Are you planning on running a handle-server on this second instance?  If not, 
just use any number for your prefix.  That's what we do since we can't run a 
handle server since our DSpace instances are not publicly available.
Sue



Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center|LITES Contract
(757) 224-4074


-Original Message-
From: helix84 [mailto:heli...@centrum.sk] 
Sent: Wednesday, January 12, 2011 4:29 AM
To: dspace-tech
Subject: [Dspace-tech] Handle for second DSpace instance

Hello,

we're using a DSpace instance and have a registered handle prefix. Now
we'd like to set up a second DSpace instance instance but avoid having
to pay yearly fees for another subprefix (12345.1). I consider having
handles in form http://hdl.handle.net/12345/xyz6789, where the static
xyz part would determine our second instance and I don't see a problem
on the handle side, but my question is: does DSpace support this? Is
DSpace able to generate such handles? Will I be able to correctly
resolve them? With one handle server for each DSpace instance or a
common one?

Thanks in advance for an explanation.

Regards,
~~helix84

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread helix84
Thanks Tim, I understand much better now. I'll try some experiments
and come back later with more questions ;)

Regards,
~~helix84

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread Tim Donohue
helix84,

To clarify...

On 1/12/2011 9:49 AM, helix84 wrote:
> Thank you for your response.
>
> On Wed, Jan 12, 2011 at 16:21, Tim Donohue  wrote:
>> This auto-incrementing number ensures the next assigned handle is always
>> unique, and won't accidentally create a conflict in the system.
>
> I'm aware that there's a sequence in database which accomplishes this.
>
>> However, that being said, in DSpace 1.7.0, the underlying API now adds the
>> ability to *assign* your own specified handles to newly created objects
>> (Communities, Collections&  Items).  See these 1.7.0 API methods..
>>
>> Collection.create(context,handle)
>> Community.create(parent,context,handle)
>> InstallItem.installItem(context,submission,handle)
>>
>> At this point in time, these methods are *not* used by the DSpace UIs
>> (XMLUI, JSPUI etc), since DSpace doesn't yet have another method to
>> determine unique handles.
>
> I'm not sure I understand what you mean here by "method", since the
> first method is the sequence.
>

Here, I mean there are *Java API* methods which would allow you to 
assign your own handles.  But, currently they are not used anywhere 
*except* for in the new 1.7.0 AIP Backup & Restore feature:
https://wiki.duraspace.org/display/DSDOC/AIP+Backup+and+Restore

>> But, you would need to do some customizations to the UI to
>> ensure it was somehow determining the next unique handles to assign.
>
> Here I thought generating the handle has nothing to do with UI,
> because the handle.handle column contains '12345/6789'. So I imagined
> if I changed only the generating code, there would be nothing to
> change in the reading/UI part. Is this wrong?

Technically, you are right.  I was talking about an alternative way to 
get around this issue, if you knew Java.

So, currently, the DSpace API assigns handles (and the UI has nothing to 
do with handle assigning).  What I was pointing out is that there's now 
a way in the API to specify your own handles.  However, the UI doesn't 
know about this, and nothing else currently uses it.  So, it's in the 
API, but another bit of API code (or UI code) would need to be written 
in Java to make it work how you want it to work.

>
> What if I only changed this (dspace/etc/oracle/update-sequences.sql:97):
>
> @updateseq.sql handle_seq handle "to_number(regexp_replace(handle,
> '.*/', ''), '')" "WHERE REGEXP_LIKE(handle,
> '^.*/[0123456789]*$')"

Changing update-sequences.sql won't do anything.  This SQL file is 
actually not used by DSpace.  It's only there for System Admins to use 
after a restore from backup (as it ensures their handle sequence is 
reset properly).

>
>> But, should you go this route, I'm sure others would be interested in the 
>> work
>> (and it could also lead towards a new feature in a future version of
>> DSpace).
>
> I'm afraid I don't have the Java skills needed, so anything may I do
> will probably be limited to my simple use case of a static prefix to
> the local handle part. Though I can imagine other useful use cases -
> like generating a prefix for each comunity, i.e. "/comm1.1234",
> "comm2.1234" and some less useful ones like a hash or UUID.

Ok, no worries then.  I wasn't sure if you knew Java or not.  If you 
did, or if we can find someone else who is interested, I think this 
could make a nice feature.

- Tim

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Proxy Error

2011-01-12 Thread helix84
I'm afraid I can't help you since I don't use Apache with mod_proxy to
reach Tomcat, but here are some links that might help investigating
the problem:

http://www.google.com/search?client=opera&rls=cs&q=%22The+proxy+server+received+an+invalid+response+from+an+upstream+server.%22+%22The+proxy+server+could+not+handle+the+request+GET+/.%22+%2Btomcat

Regards,
~~helix84

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread helix84
Thank you for your response.

On Wed, Jan 12, 2011 at 16:21, Tim Donohue  wrote:
> This auto-incrementing number ensures the next assigned handle is always
> unique, and won't accidentally create a conflict in the system.

I'm aware that there's a sequence in database which accomplishes this.

> However, that being said, in DSpace 1.7.0, the underlying API now adds the
> ability to *assign* your own specified handles to newly created objects
> (Communities, Collections & Items).  See these 1.7.0 API methods..
>
> Collection.create(context,handle)
> Community.create(parent,context,handle)
> InstallItem.installItem(context,submission,handle)
>
> At this point in time, these methods are *not* used by the DSpace UIs
> (XMLUI, JSPUI etc), since DSpace doesn't yet have another method to
> determine unique handles.

I'm not sure I understand what you mean here by "method", since the
first method is the sequence.

> But, you would need to do some customizations to the UI to
> ensure it was somehow determining the next unique handles to assign.

Here I thought generating the handle has nothing to do with UI,
because the handle.handle column contains '12345/6789'. So I imagined
if I changed only the generating code, there would be nothing to
change in the reading/UI part. Is this wrong?

What if I only changed this (dspace/etc/oracle/update-sequences.sql:97):

@updateseq.sql handle_seq handle "to_number(regexp_replace(handle,
'.*/', ''), '')" "WHERE REGEXP_LIKE(handle,
'^.*/[0123456789]*$')"

> But, should you go this route, I'm sure others would be interested in the work
> (and it could also lead towards a new feature in a future version of
> DSpace).

I'm afraid I don't have the Java skills needed, so anything may I do
will probably be limited to my simple use case of a static prefix to
the local handle part. Though I can imagine other useful use cases -
like generating a prefix for each comunity, i.e. "/comm1.1234",
"comm2.1234" and some less useful ones like a hash or UUID.

Regards,
~~helix84

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread Tim Donohue
helix84,

Unfortunately, at this point, out-of-the-box DSpace doesn't support 
handles of the form "12345/xyz6789" (at least not in the user interfaces).

Currently, by default, DSpace assumes the handle suffix is always a 
number. Each newly assigned handle just increments that suffix by 1. 
So, DSpace assigns handles in the following order:
12345/1
12345/2
12345/3
etc..
This auto-incrementing number ensures the next assigned handle is always 
unique, and won't accidentally create a conflict in the system.

However, that being said, in DSpace 1.7.0, the underlying API now adds 
the ability to *assign* your own specified handles to newly created 
objects (Communities, Collections & Items).  See these 1.7.0 API methods..

Collection.create(context,handle)
Community.create(parent,context,handle)
InstallItem.installItem(context,submission,handle)

At this point in time, these methods are *not* used by the DSpace UIs 
(XMLUI, JSPUI etc), since DSpace doesn't yet have another method to 
determine unique handles.

So, this is to say, the underlying API in 1.7.0 would allow you to 
generate your own handles. But, you would need to do some 
customizations to the UI to ensure it was somehow determining the next 
unique handles to assign. Off the top of my head, I'm not sure how 
complex these customizations would be. But, should you go this route, 
I'm sure others would be interested in the work (and it could also lead 
towards a new feature in a future version of DSpace).

- Tim

On 1/12/2011 3:28 AM, helix84 wrote:
> Hello,
>
> we're using a DSpace instance and have a registered handle prefix. Now
> we'd like to set up a second DSpace instance instance but avoid having
> to pay yearly fees for another subprefix (12345.1). I consider having
> handles in form http://hdl.handle.net/12345/xyz6789, where the static
> xyz part would determine our second instance and I don't see a problem
> on the handle side, but my question is: does DSpace support this? Is
> DSpace able to generate such handles? Will I be able to correctly
> resolve them? With one handle server for each DSpace instance or a
> common one?
>
> Thanks in advance for an explanation.
>
> Regards,
> ~~helix84
>
> --
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Displaying Recent Submissions on XMLUI homepage

2011-01-12 Thread Evans, Kevin
Hi Folks,

 

We want to display the recent submissions to our repository on the home page
{XMLUI}

 

Is there a relatively quick way to achieve this?

 

Cheers

 

Kevin

 

 

Kevin Evans

Systems Developer,
Infrastructure Systems Team,

Room 54
5th Floor, Laver Building,
University of Exeter
North Park Road,
Exeter,
EX4 4RN

01392 725573

07775027574

  http://my.exeter.ac.uk

 

This email and any attachment may contain information that is confidential,
privileged, or subject to copyright, and which may be exempt from disclosure
under applicable legislation. It is intended for the addressee only. If you
received this message in error, please let me know and delete the email and
any attachments immediately. The University will not accept responsibility
for the accuracy/completeness of this e-mail and its attachments. The
University cannot guarantee that this message and any attachments are virus
free. Any views or opinions expressed in this message are my own and do not
necessarily represent those of the Universitydon't waste your life
reading this trash and get out and live.

 



smime.p7s
Description: S/MIME cryptographic signature
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Handle for second DSpace instance

2011-01-12 Thread helix84
Hello,

we're using a DSpace instance and have a registered handle prefix. Now
we'd like to set up a second DSpace instance instance but avoid having
to pay yearly fees for another subprefix (12345.1). I consider having
handles in form http://hdl.handle.net/12345/xyz6789, where the static
xyz part would determine our second instance and I don't see a problem
on the handle side, but my question is: does DSpace support this? Is
DSpace able to generate such handles? Will I be able to correctly
resolve them? With one handle server for each DSpace instance or a
common one?

Thanks in advance for an explanation.

Regards,
~~helix84

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech