Re: [Dspace-tech] Applying nested lists to front page

2008-12-19 Thread McGee, Thomas A.
It was already set to a higher number in the source code when it was installed. 
Isn't there a simple way to apply what's being displayed on the CC page to the 
home page?

Oh how I wish DSpace was written in PHP...

Kostas Paraskevopoulos wrote:

You can change a parameter in sitemap.xmap
in:
[source]/dspace-xmlui/dspace-
xmlui-api/src/main/resources/aspects/ArtifactBrowser/

...
map:match pattern=
...
map:transform type=CommunityBrowser
map:parameter name=depth value=1/
/map:transform
map:serialize type=xml/
/map:match
...

Change the value of depth to 100, or more (it's 999 for match
pattern=community-list)
So when you are at the home page (map:match pattern=) the tranformer
CommunityBrowser will display communities and collection until it reaches
depth 100
After that rebuild, update...


Tom McGee
Seton Hall University


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


[Dspace-tech] Applying nested lists to front page

2008-12-18 Thread McGee, Thomas A.
I'd like to get the nested community/collection list that appears on the 
Communities and Collections page:

Community 1
Collection 1
Collection 2
Collection 3
Community 2
Collection 4
Collection 5
Subcollection 1

To appear on my home page. Out-of-the-box I just get the bare listing of 
communities.

I'm using 1.5 with XMLUI, and I can't quite figure out where in the XSLT that 
decision is made. Thanks.

_
Tom McGee
Senior Digital Media Specialist
Seton Hall University
400 South Orange Ave., South Orange, NJ 07079
973.275.2992



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Applying nested lists to front page

2008-12-18 Thread McGee, Thomas A.
I already have the structure correct, it displays that way on my communities 
and collections page. I simply want to apply that display to my home page.

-


You want to have sub-sommunities within communities. Sub-communities in turn 
can have sub-sub-communities. You arrange them as parent-child relationships 
using the CommunityFiliator. The command is:

dsrun org.dspace.administer.CommunityFiliator --set --parent=parentID 
--child=childID

This is described in more detail on page 133 of the DSpace manual.
--
Regards,

Andrew M.
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] HANDLE update issue

2008-12-15 Thread McGee, Thomas A.
Following up on my question of last week on the failed UPDATE queries for 
changing handles on an Oracle database, this is what happened.

Stuart Lewis suggested that the failing query was this:
UPDATE metadatavalue SET text_value= (SELECT 'http://hdl.handle.net/' || handle 
FROM handle WHERE handle.resource_id=item_id AND
handle.resource_type_id=2) WHERE  text_value LIKE 'http://hdl.handle.net/%';

When I ran that in the Oracle SQL Developer application, I got an error 
something like no statement at cursor. I simply deleted the semicolon and ran:

UPDATE metadatavalue SET text_value= (SELECT 'http://hdl.handle.net/' || handle 
FROM handle WHERE handle.resource_id=item_id AND
handle.resource_type_id=2) WHERE  text_value LIKE 'http://hdl.handle.net/%'

Which worked. Could that really be all that it is?

_
Tom McGee
Senior Digital Media Specialist
Seton Hall University
400 South Orange Ave., South Orange, NJ 07079
973.275.2992



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] FW: HANDLE update issue

2008-12-10 Thread McGee, Thomas A.


I'm trying to update a lot of communities and collections that were set up 
prior to our HANDLE being assigned. So according to the cookbook I'm doing:

update-handle-prefix 123456789 10420 (10420 being the new HANDLE number)

After seeing how many items are being updated and selecting yes,  the 
all-too-familiar-by-now string of Java errors:

Have you taken a backup, and are you ready to continue? [y/n]: y
Updating handle table... 214 items updated
Updating metadatavalues table... Exception in thread main 
java.sql.SQLException: ORA-00911: invalid character

at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
at 
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
at 
oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3454)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at 
org.dspace.storage.rdbms.DatabaseManager.updateQuery(DatabaseManager.java:354)
at org.dspace.handle.UpdateHandlePrefix.main(UpdateHandlePrefix.java:97)

Is this YAOI (yet another Oracle incompatibility)? I'm tempted to go into the 
database and manually write some SQL commands to update the  tables. Is that 
even an option? After the metadatavalues table is updated, what else has to be 
done?

_
Tom McGee
Senior Digital Media Specialist
Seton Hall University
400 South Orange Ave., South Orange, NJ 07079
973.275.2992



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech