Re: [Dspace-tech] Mapped items not showing in browse-item and browse-date

2010-05-17 Thread rafa
Hi,

This is the index-all script (DS 1.4). It makes all the job by running 
./index-all without any parameters.

Regards

# Shell script for creating the browse and search indices.

# Get the DSPACE/bin directory
BINDIR=`dirname $0`

echo Creating browse index
$BINDIR/dsrun org.dspace.browse.InitializeBrowse

echo Creating search index
$BINDIR/dsrun org.dspace.search.DSIndexer

On 05/15/2010 11:12 AM, helix84 wrote:
 On Sat, May 15, 2010 at 08:43, Rafa Carreresr...@ua.es  wrote:

 I'm running DSpace 1.4 and there's no index-init or index-update script.
 It's all packed in the index-all script, that is, all the search and browse
 indexing stuff. So, I presume I did all that is needed to get it work. I
 restarted Tomcat after that too.
  
 I see. So what's the command to rebuild _all_ indices in 1.4. Is there this 
 one?
 /dspace/bin/dspace index --rebuild

 Regards,
 ~~helix84



--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Internal System Error (How can I access my dspace with new IP)

2010-05-17 Thread thandu venkat narayana
Dear All,
I am using Dspace 1.4.2 on WidowsXP Platform, it is working fine. Recently my 
system administrator changed the IP of my system. I modified the config file in 
dspace with new IP. I am unable to access my dspace. it is giving the message - 
internal system error pl contact system administrator. I need your suggestions 
to solve the problem.How can I access my dspace with new IP
Best Regards,Venkat


--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] seting up authority

2010-05-17 Thread Blanco, Jose
I'm trying to figure out how to setup authority using the jspui, but I can't 
find good documentation.  Could some one point me to where I should be reading.

Thank you!
Jose

--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Withdrawing Item Authentication Issue

2010-05-17 Thread bryce ray
I'm attempting to withdraw an item from my current dspace installation.  I
read that there is a withdraw button on the item page.  However, an
authentication issue is preventing dspace from displaying this button to
me.  I have logged in as an administrator and remain authenticated for all
pages in dspace except the page which displays the abstract, title, etc for
an item.  When I go to this page it acts as if I'm not authenticated as an
admin.  Due to this, the withdraw button is not displayed.  However, when I
go from the un-authenticated state of this page back to any other page in
dspace I am once again authenticated.

What could cause authentication to break down on just this one page?

Please let me know what information would be helpful to diagnose this
problem.

Thanks.
--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Internal system error

2010-05-17 Thread Daniel Francis

Hi,

I'm getting an internal system error when trying to upload a file in my
dspace.

Please can anyone help.

Regards,

Daniel

--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Internal system error

2010-05-17 Thread Tim Donohue
Daniel,

See the Troubleshoot an Error page on our Wiki for hints/tips.  As it 
says, the Internal Server/System Error is a generic error message -- 
to figure out what is really going on, you'll have to check your log 
files.  If you are not able to figure out the problem, you can send the 
full error message to this list and we'll try to help you.

Instructions at:
http://wiki.dspace.org/confluence/display/DSPACE/Troubleshoot+an+error

- Tim

On 5/17/2010 10:45 AM, Daniel Francis wrote:

 Hi,

 I'm getting an internal system error when trying to upload a file in my
 dspace.

 Please can anyone help.

 Regards,

 Daniel

 --

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace-tech Digest, Vol 49, Issue 47: setting up authority (Blanco, Jose)

2010-05-17 Thread Christof
Dear


Last month I created a trial version which worked for us.

In the document attached you will find the changes I made in order to
make our DSpace 1.6 Authority Control (authors) enabled.

Roughly said you add in dspace.cfg.:
1. The database properties (driver,url,username,password)
2. The SQL Query to retrieve id,lastname, firstname.

The other, minor, changes are there to choose between binding the id to
a standard name or another spelling of this name. For example Greek
names have different (Greek  English) writings. Both can be 'bind' to
the same id.

 

Yours Sincerely



Christof
---BeginMessage---
Denys

 

 

In the document attached you will find the changes I made in order to make our 
DSpace 1.6 Authority Cotrol enabled.

Roughly said you add the database properties (driver,url,username,password) and 
a query to retrieve id,lastname, firstname in dspace.cfg.

 

Yours Sincerely

 

 

Christof

1. New File
---
DB.java (org.dspace.storage.rdbms)
--
This class creates the connection to an external Database.
The number, lastname and firstname for the Authority Control is 
retrieved.
package org.dspace.storage.rdbms;
//Imports
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;

public class DB{
//ICV
private Connection connection;
private String driver = null;
private String url = null;
private String username = null;
private String password = null;
//DC
public DB(String driver, String url, String username, String 
password){
this.driver = driver;
this.url = url;
this.username = username;
this.password = password;
}
//getConnection
public boolean getConnection(){
boolean isConnected = false;
try {
Class.forName(driver);
connection = DriverManager.getConnection(url, username, 
password);
isConnected = true;
System.out.println(isConnected?  + isConnected);
} catch (SQLException ex) {
Logger.getLogger(DB.class.getName()).log(Level.SEVERE, 
null, ex);
} catch (ClassNotFoundException ex) {
Logger.getLogger(DB.class.getName()).log(Level.SEVERE, 
null, ex);
}
return isConnected;
}
//getNames
public Vector getPersons(String sql, String key){
Vector persons = new Vector();
Statement stmt = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try{
try {
String orderby = 
sql.substring(sql.indexOf(ORDER BY));
stmt = connection.createStatement();
if (key.equals()) sql = sql.substring(0, 
sql.indexOf(WHERE)).concat(orderby);
else sql = sql.replace(?, 
'%+key.toLowerCase()+%');
rs = stmt.executeQuery(sql);
int nCols = rs.getMetaData().getColumnCount();
String [] values = new String[nCols];
try {
while ( rs.next() ){
for (int i = 0 ; i  nCols ; i++){
if (rs.getString(i + 1) != null) 
values[i] = rs.getString(i + 1);
else values[i] = ;
}
persons.add(values[1] + ,  + 
values[2] + ( + values[0] + ));
}
} finally {
if (rs != null) rs.close();
}
} finally {
if (pstmt != null ) pstmt.close();
}
} catch (SQLException ex) {
Logger.getLogger(DB.class.getName()).log(Level.SEVERE, 
null, ex);
}
return persons;