[Dspace-tech] Feedback page problem (DSpace 3.0)

2013-01-24 Thread mErRYo
Hi all, I am using dspace 3.0 with jspui  discovery. I am facing problem
when i click on feedback page. Problem is when a anonymous user clicks on
this page link it ask for username and password (that is redirect to 
password login page). While for authenticated users it gives the message that
you don't have the authorization. Can anyone tell what is going wrong with 
this page. Have i done something wrong in dspace.cfg file. As far as i know 
there is no setting on dspace.cfg file which effects this.

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] List of Internal Server Error DSpace 3.0 (JSPUI + Postgresql with discovery)

2013-01-24 Thread helix84
On Thu, Jan 24, 2013 at 7:52 AM, mErRYo merryob...@yahoo.com wrote:
 Hi all, I am getting different errors from different pages of my Dspace
 production instance. Please help me to resolve it. I did set the
 db.maxconnection to 50 and db.maxwait to 3 in dspace.cfg file.

What max. number of connections did you set in Postgres configuration?

Do the problems persist when you set these options back to their
default values? (Changing db.maxwait is probably a bad idea, anyway.)
db.maxconnections = 30
db.maxwait = 5000

Also try restarting Postgres just once.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] View Accepted Submissions displays nothing now -- setting?

2013-01-24 Thread Bram Luyten
Hi Irene,

Are these people for some reason signing on as a different Eperson?

Submitter ID is stored as a key in the item table, and the query that is
used is relatively simple:

String myQuery = SELECT * FROM item WHERE in_archive='1' AND
submitter_id=+ eperson.getID();

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/Item.java#L258

best regards,

Bram Luyten

-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
  
http://www.atmire.com/www.atmire.comhttp://atmire.com/website/?q=servicesutm_source=emailfooterutm_medium=emailutm_campaign=braml


On Tue, Jan 8, 2013 at 9:41 PM, Andrea Schweer schw...@waikato.ac.nzwrote:

 Hi Irene,

 On 09/01/13 08:00, Berry, Irene (CIV) wrote:
  Some of my catalogers have suddenly lost the ability to see what
  they've added to the repository.  When they click view accepted
  submissions in My DSpace, the results screen is blank, where they
  used to see 90+ items.  Is there a setting I don't know about?

 There's no setting for that -- to me it sounds like something's going
 wrong. What is the view accepted submissions page? is this at
 http://[wherever-your-dspace-lives]/submissions or at
 http://[wherever-your-dspace-lives]/submissions?all -- and if the
 former, do they see any of the other parts of that page (start a new
 submission, workflow tasks)? Or is the blank screen really completely
 blank?

 Those of you who can still see that screen, does any of you have more
 than 50 items in that list?

 What is your XMLUI theme?

 Did you check the DSpace log file for error messages around the time
 that your cataloguers get the blank screen?

 cheers,
 Andrea

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



 --
 Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
 and more. Get SQL Server skills now (including 2012) with LearnDevNow -
 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
 SALE $99.99 this month only - learn more at:
 http://p.sf.net/sfu/learnmore_122512
 ___
 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

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] List of Internal Server Error DSpace 3.0 (JSPUI + Postgresql with discovery)

2013-01-24 Thread mErRYo
Yes same errors do occur when i set the db.maxconnections = 30 and 
db.maxwait = 5000. For postgresql, max connections is set on default i.e. 100 


--- On Thu, 1/24/13, helix84 heli...@centrum.sk wrote:

 From: helix84 heli...@centrum.sk
 Subject: Re: [Dspace-tech] List of Internal Server Error DSpace 3.0 (JSPUI + 
 Postgresql with discovery)
 To: mErRYo merryob...@yahoo.com
 Cc: dspace-tech@lists.sourceforge.net
 Date: Thursday, January 24, 2013, 1:07 PM
 On Thu, Jan 24, 2013 at 7:52 AM,
 mErRYo merryob...@yahoo.com
 wrote:
  Hi all, I am getting different errors from different
 pages of my Dspace
  production instance. Please help me to resolve it. I
 did set the
  db.maxconnection to 50 and db.maxwait to 3 in
 dspace.cfg file.
 
 What max. number of connections did you set in Postgres
 configuration?
 
 Do the problems persist when you set these options back to
 their
 default values? (Changing db.maxwait is probably a bad idea,
 anyway.)
 db.maxconnections = 30
 db.maxwait = 5000
 
 Also try restarting Postgres just once.
 
 
 Regards,
 ~~helix84
 
 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] List of Internal Server Error DSpace 3.0 (JSPUI + Postgresql with discovery)

2013-01-24 Thread Hilton Gibson
Perhaps these will help:
* http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S06
* http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_Dspace/S04#Database

Cheers

hg


On 24 January 2013 11:55, mErRYo merryob...@yahoo.com wrote:

 Yes same errors do occur when i set the db.maxconnections = 30 and
 db.maxwait = 5000. For postgresql, max connections is set on default i.e.
 100


 --- On Thu, 1/24/13, helix84 heli...@centrum.sk wrote:

  From: helix84 heli...@centrum.sk
  Subject: Re: [Dspace-tech] List of Internal Server Error DSpace 3.0
 (JSPUI + Postgresql with discovery)
  To: mErRYo merryob...@yahoo.com
  Cc: dspace-tech@lists.sourceforge.net
  Date: Thursday, January 24, 2013, 1:07 PM
  On Thu, Jan 24, 2013 at 7:52 AM,
  mErRYo merryob...@yahoo.com
  wrote:
   Hi all, I am getting different errors from different
  pages of my Dspace
   production instance. Please help me to resolve it. I
  did set the
   db.maxconnection to 50 and db.maxwait to 3 in
  dspace.cfg file.
 
  What max. number of connections did you set in Postgres
  configuration?
 
  Do the problems persist when you set these options back to
  their
  default values? (Changing db.maxwait is probably a bad idea,
  anyway.)
  db.maxconnections = 30
  db.maxwait = 5000
 
  Also try restarting Postgres just once.
 
 
  Regards,
  ~~helix84
 
  Compulsory reading: DSpace Mailing List Etiquette
  https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 


 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 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




-- 
*Hilton Gibson*
Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://library.sun.ac.za
http://scholar.sun.ac.za
http://ar1.sun.ac.za
http://aj1.sun.ac.za
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] Internal Server Error on statistics link (Admin menu)

2013-01-24 Thread Bram Luyten
Hi mErRYo,

can you verify whether any reports are present in your reports directory?

by default this is
/reports/ in your dspace install dir

https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L1439

Just a wild theory at this point but if the directory is empty, it could be
that this line already sends you to a no-report page
https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/StatisticsServlet.java#L168

while the code still gets down to another forward on line 260
https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/StatisticsServlet.java#L260

At this second forward, he can't forward you anymore because you have
already been forwarded, hence the error.
Can't explain it otherwise because I only see two forwards in that servlet.

this bug could be fixed by adding a return statement on line 169.

rgds

Bram Luyten


-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
  
http://www.atmire.com/www.atmire.comhttp://atmire.com/website/?q=servicesutm_source=emailfooterutm_medium=emailutm_campaign=braml


On Thu, Jan 24, 2013 at 7:30 AM, mErRYo merryob...@yahoo.com wrote:

 Hi All, I am getting following error when i click on statistics page under
 administer menu. How can i resolve it, though i change my db.maxconnections
 to 50 and db.maxwait to 3 (30 Sec) in dspace.cfg file. I am using
 Dspace 3.0 with jspui  discovery

 Please help.

 -- URL Was: http://myip/jspui/statistics
 -- Method: GET
 -- Parameters were:


 Exception:
 java.lang.IllegalStateException: Cannot forward after response has been
 committed
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:349)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
 at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60)
 at
 org.dspace.app.webui.servlet.StatisticsServlet.showStatistics(StatisticsServlet.java:260)
 at
 org.dspace.app.webui.servlet.StatisticsServlet.doDSPost(StatisticsServlet.java:68)
 at
 org.dspace.app.webui.servlet.StatisticsServlet.doDSGet(StatisticsServlet.java:49)
 at
 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
 at
 org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)




 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 

Re: [Dspace-tech] Internal Server Error on statistics link (Admin menu)

2013-01-24 Thread mErRYo
Initially when this error is occuring i don't have any report in my reports 
directory. I generated two reports and now it is showing me proper report 
without this exception. 

I must say DSpace developer must release their build after through testing 
otherwise such incidents create embarrassments for people like us. 

I thank you for your support.

--- On Thu, 1/24/13, Bram Luyten b...@mire.be wrote:

From: Bram Luyten b...@mire.be
Subject: Re: [Dspace-tech] Internal Server Error on statistics link (Admin menu)
To: mErRYo merryob...@yahoo.com
Cc: dspace-tech@lists.sourceforge.net
Date: Thursday, January 24, 2013, 5:12 PM

Hi mErRYo,
can you verify whether any reports are present in your reports directory?
by default this is/reports/ in your dspace install dir
https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L1439



Just a wild theory at this point but if the directory is empty, it could be 
that this line already sends you to a no-report 
pagehttps://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/StatisticsServlet.java#L168


while the code still gets down to another forward on line 
260https://github.com/DSpace/DSpace/blob/master/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/StatisticsServlet.java#L260


At this second forward, he can't forward you anymore because you have already 
been forwarded, hence the error.Can't explain it otherwise because I only see 
two forwards in that servlet.


this bug could be fixed by adding a return statement on line 169.
rgds
Bram Luyten

-- 

 
Bram Luyten @mire



2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010
Esperantolaan 4, Heverlee 3001, Belgium
 www.atmire.com




On Thu, Jan 24, 2013 at 7:30 AM, mErRYo merryob...@yahoo.com wrote:


Hi All, I am getting following error when i click on statistics page under

administer menu. How can i resolve it, though i change my db.maxconnections

to 50 and db.maxwait to 3 (30 Sec) in dspace.cfg file. I am using Dspace 
3.0 with jspui  discovery



Please help.



-- URL Was: http://myip/jspui/statistics

-- Method: GET

-- Parameters were:





Exception:

java.lang.IllegalStateException: Cannot forward after response has been 
committed

        at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:349)

        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

        at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60)

        at 
org.dspace.app.webui.servlet.StatisticsServlet.showStatistics(StatisticsServlet.java:260)

        at 
org.dspace.app.webui.servlet.StatisticsServlet.doDSPost(StatisticsServlet.java:68)

        at 
org.dspace.app.webui.servlet.StatisticsServlet.doDSGet(StatisticsServlet.java:49)

        at 
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)

        at 
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        at 
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)

        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)

        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

        at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

        at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

        at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

        at java.lang.Thread.run(Thread.java:662)








Re: [Dspace-tech] Internal Server Error on statistics link (Admin menu)

2013-01-24 Thread helix84
On Thu, Jan 24, 2013 at 1:53 PM, mErRYo merryob...@yahoo.com wrote:
 Initially when this error is occuring i don't have any report in my reports 
 directory. I generated two reports and now it is showing me proper report 
 without this exception.

 I must say DSpace developer must release their build after through testing 
 otherwise such incidents create embarrassments for people like us.

 I thank you for your support.


This should now be fixed in the latest 3.x code, thanks to Bram. Can
you try it and verify that it fixes your problem?

git clone git://github.com/DSpace/DSpace.git
cd DSpace
git branch dspace-3_x

and then the usual:

mvn package
...


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] Removing duplicates in metadata fields

2013-01-24 Thread Kirti Bodhmage
Hi,

 

For some reason we got duplicates of dc.relation.ispartof  metadata field in
many of the records in repository.

 

Is there any sql to remove these duplicates ?

 

Thanks

Kirti Bodhmage

 

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] Urgtent set Metadata in Step

2013-01-24 Thread emilio lorenzo
Hi, Ghislain,   if I understand some of your questions:

 how can I set metadata on submit processor step class?
You can set  certain fix metadata in the collection definition. You can 
determine a fixed value to be included every time an item is ingested 
(via UI or batch ingester) .  Collection Template is called this 
feature. Please refer to the release documentation for detailed info


 To validate PDF signed  document, we need  create new custom step or no?
You can attach a curation task to the submission workflow   to make such 
validation  (You don´t specify dspace release, I assume is 1.8 or 3.0).
regards



 We need  manage physical archiving and  numerique archiving with same  
 DSpace -- required  dynamique  JSPUI   two checkBox (physical and 
 numeric)   when user  check  physical  the system redirect to  
 physical archiving  metadata form else  it redirect to numeric 
 archiving  metadata form. Can we  make these use cases  with DSpace?

 Thank your to help us.

 Regards,



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] Removing duplicates in metadata fields

2013-01-24 Thread helix84
On Thu, Jan 24, 2013 at 5:51 PM, Kirti Bodhmage k.bodhm...@qmul.ac.uk wrote:
 For some reason we got duplicates of dc.relation.ispartof  metadata field in
 many of the records in repository.

 Is there any sql to remove these duplicates ?

I'm not sure if it can be done using just SQL. In any case, it would
be very complex.

The easiest solution might be to use Batch Metadata Editor.
1)
export all items:
[dspace]/bin/dspace metadata-export -f export.csv -a
Depending on the size of your repository, this might produce a huge CSV file.
2) To reduce the file size, remove all columns except for id,
collection, action and any dc.relation.ispartof columns.
3) Remove duplicities (search for the || separator)
4) Re-import the file:
[dspace]/bin/dspace metadata-export -f export.csv -e adminsem...@example.com


Another solution would be to use a curation task.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] Removing duplicates in metadata fields

2013-01-24 Thread helix84
On Thu, Jan 24, 2013 at 6:24 PM, helix84 heli...@centrum.sk wrote:
 [dspace]/bin/dspace metadata-export -f export.csv -e adminsem...@example.com

This should have been metadata-import, obviously:

[dspace]/bin/dspace metadata-import -f export.csv -e adminsem...@example.com


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] General question: when to modify config/spring/api/discovery.xml?

2013-01-24 Thread Charles Kinney
As I've said, I'm a naive DSpace user (am a former database developer,
turned lawyer).  My objective is to use DSpace to manage legal
pleadings.  Gradually, I'm beginning to understand DSpace implementation,
but am still fairly blindly following documentation, aided by examples
gleaned from existing code.  From comments in [dspace]/config/dspace.cfg, I
assumed I needed to set indices, etc. for Discovery. So, for example, the
following comments document some modifications to the .cfg file:

# Added, for Discovery interface:
# webui.browse.index.6 = osefileno:metadata:dc.identifier.other:text:asc
# webui.itemlist.sort-option.5 = osefileno:dc.identifier.other:osefileno
# search.index.14 = osefileno:dc.identifier.other

These changes appear to have been sufficient to add dc.identifier.other
(used for an internal case file identifier) to the Mirage Discovery
sidebar. Similar changes added one other dc element.

In any case, my original question remains:  when, precisely, must I modify
[dspace]/config/spring/api/discovery.xml?  Unfortunately, because I'm not a
Java/web/etc programmer, the Discovery documentation remains somewhat
opaque to me.

(In that context, I've found comments from you and other tech list
contributors very helpful. Thanks to all!)


On Wed, Jan 23, 2013 at 6:07 PM, helix84 heli...@centrum.sk wrote:

 On Thu, Jan 24, 2013 at 1:57 AM, Charles Kinney cbkinn...@gmail.com
 wrote:
  By modifying two files -- [dspace]/config/dspace.cfg and
 [dspace]/modules/xmlui/src/main/webapp/i18n/messages.xml -- and updating
 indices, I have successfully added Dublin Core metadata elements to the
 Discovery sidebar


 Hi Charles,

 how did you do that? I'm not familiar with that procedure. Does it
 have something to do with Lucene indexes? (because those are indeed
 configured in dspace.cfg)


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] General question: when to modify config/spring/api/discovery.xml?

2013-01-24 Thread Hilton Gibson
Discovery is modified according to the needs of the repository owner. For
example I created an advisor index. See: http://scholar.sun.ac.za.


On 24 January 2013 21:31, Charles Kinney cbkinn...@gmail.com wrote:

 As I've said, I'm a naive DSpace user (am a former database developer,
 turned lawyer).  My objective is to use DSpace to manage legal
 pleadings.  Gradually, I'm beginning to understand DSpace implementation,
 but am still fairly blindly following documentation, aided by examples
 gleaned from existing code.  From comments in [dspace]/config/dspace.cfg, I
 assumed I needed to set indices, etc. for Discovery. So, for example, the
 following comments document some modifications to the .cfg file:

 # Added, for Discovery interface:
 # webui.browse.index.6 = osefileno:metadata:dc.identifier.other:text:asc
 # webui.itemlist.sort-option.5 = osefileno:dc.identifier.other:osefileno
 # search.index.14 = osefileno:dc.identifier.other

 These changes appear to have been sufficient to add dc.identifier.other
 (used for an internal case file identifier) to the Mirage Discovery
 sidebar. Similar changes added one other dc element.

 In any case, my original question remains:  when, precisely, must I modify
 [dspace]/config/spring/api/discovery.xml?  Unfortunately, because I'm not
 a Java/web/etc programmer, the Discovery documentation remains somewhat
 opaque to me.

 (In that context, I've found comments from you and other tech list
 contributors very helpful. Thanks to all!)


 On Wed, Jan 23, 2013 at 6:07 PM, helix84 heli...@centrum.sk wrote:

 On Thu, Jan 24, 2013 at 1:57 AM, Charles Kinney cbkinn...@gmail.com
 wrote:
  By modifying two files -- [dspace]/config/dspace.cfg and
 [dspace]/modules/xmlui/src/main/webapp/i18n/messages.xml -- and updating
 indices, I have successfully added Dublin Core metadata elements to the
 Discovery sidebar


 Hi Charles,

 how did you do that? I'm not familiar with that procedure. Does it
 have something to do with Lucene indexes? (because those are indeed
 configured in dspace.cfg)


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 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




-- 
*Hilton Gibson*
Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://library.sun.ac.za
http://scholar.sun.ac.za
http://ar1.sun.ac.za
http://aj1.sun.ac.za
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] General question: when to modify config/spring/api/discovery.xml?

2013-01-24 Thread Charles Kinney
Sure; understood.  My questions are about the how of Discovery
modifications, not the why. I've already done the equivalent of adding
advisor (in my case, case type and docket number).


On Thu, Jan 24, 2013 at 2:00 PM, Hilton Gibson hilton.gib...@gmail.comwrote:

 Discovery is modified according to the needs of the repository owner. For
 example I created an advisor index. See: http://scholar.sun.ac.za.


 On 24 January 2013 21:31, Charles Kinney cbkinn...@gmail.com wrote:

 As I've said, I'm a naive DSpace user (am a former database developer,
 turned lawyer).  My objective is to use DSpace to manage legal
 pleadings.  Gradually, I'm beginning to understand DSpace implementation,
 but am still fairly blindly following documentation, aided by examples
 gleaned from existing code.  From comments in [dspace]/config/dspace.cfg,
 I assumed I needed to set indices, etc. for Discovery. So, for example,
 the following comments document some modifications to the .cfg file:

 # Added, for Discovery interface:
 # webui.browse.index.6 = osefileno:metadata:dc.identifier.other:text:asc
 # webui.itemlist.sort-option.5 = osefileno:dc.identifier.other:osefileno
 # search.index.14 = osefileno:dc.identifier.other

 These changes appear to have been sufficient to add dc.identifier.other
 (used for an internal case file identifier) to the Mirage Discovery
 sidebar. Similar changes added one other dc element.

 In any case, my original question remains:  when, precisely, must I
 modify [dspace]/config/spring/api/discovery.xml?  Unfortunately, because
 I'm not a Java/web/etc programmer, the Discovery documentation remains
 somewhat opaque to me.

 (In that context, I've found comments from you and other tech list
 contributors very helpful. Thanks to all!)


 On Wed, Jan 23, 2013 at 6:07 PM, helix84 heli...@centrum.sk wrote:

 On Thu, Jan 24, 2013 at 1:57 AM, Charles Kinney cbkinn...@gmail.com
 wrote:
  By modifying two files -- [dspace]/config/dspace.cfg and
 [dspace]/modules/xmlui/src/main/webapp/i18n/messages.xml -- and updating
 indices, I have successfully added Dublin Core metadata elements to the
 Discovery sidebar


 Hi Charles,

 how did you do that? I'm not familiar with that procedure. Does it
 have something to do with Lucene indexes? (because those are indeed
 configured in dspace.cfg)


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 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




 --
 *Hilton Gibson*
 Systems Administrator
 JS Gericke Library
 Room 1025D
 Stellenbosch University
 Private Bag X5036
 Stellenbosch
 7599
 South Africa

 Tel: +27 21 808 4100 | Cell: +27 84 646 4758
 http://library.sun.ac.za
 http://scholar.sun.ac.za
 http://ar1.sun.ac.za
 http://aj1.sun.ac.za

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] General question: when to modify config/spring/api/discovery.xml?

2013-01-24 Thread helix84
OK, I think now I understand. The source of my confusion was that you
said Discovery sidebar, which I thought meant Discovery sidebar
facets, when you really just meant the sidebar browse indexes. Of
course, I shouldn't expect you to recognize the difference just yet.

To explain, you must understand that DSpace originally used only
Lucene, not Solr (Discovery is built on top of Solr). It has been
using Lucene for browse  search indexes. Browse by Issue Date,
Author, Titles - these are browse indexes. You could find them in the
advanced search form, too. Browse and search indexes can be configured
via dspace.cfg and that is what you did. The index-init and
index-update command line launcher commands are used to maintain them.

Discovery uses Solr indexes. When you turn on Discovery, Solr is used
for search and facets. Facets are what you see in the sidebar on the
bottom under the Discovery label. The update-discovery-index is the
command-line command.

To make things more complicated, XMLUI with Discovery enabled still
uses Lucene Browse indexes, but not Lucene Search indexes
(instructions to enable Discovery tell you to disable the
SearchArtifacts aspect). So both Lucene and Solr is used. Discovery
also replaces the old old simple and advanced search form with its own
/discover form that uses the Solr index completely. So browse indexes
are only used for browsing (in the sidebar).

In the JSPUI case, I believe turning on Discovery (introduced in 3.0)
replaces Lucene completely.

Sorry for the complicated explanation, but this is how the software
has been developing. The next step will be to make Discovery default
and deprecate Lucene.

So, back to your question what discovery.xml is for. This is where you
can configure sidebar facets and search filters. Sidebar facets are
facets for index fields that you can see e.g. on the homepage. You can
see search filters in the search form - where you drill down by
Author, Title etc.

I hope that clears it up a bit.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] General question: when to modify config/spring/api/discovery.xml?

2013-01-24 Thread Charles Kinney
Thanks very much. The explanation is helpful and reminds me to be more
precise in describing elements of the interface with which I'm working. --CK


On Thu, Jan 24, 2013 at 2:32 PM, helix84 heli...@centrum.sk wrote:

 OK, I think now I understand. The source of my confusion was that you
 said Discovery sidebar, which I thought meant Discovery sidebar
 facets, when you really just meant the sidebar browse indexes. Of
 course, I shouldn't expect you to recognize the difference just yet.

 To explain, you must understand that DSpace originally used only
 Lucene, not Solr (Discovery is built on top of Solr). It has been
 using Lucene for browse  search indexes. Browse by Issue Date,
 Author, Titles - these are browse indexes. You could find them in the
 advanced search form, too. Browse and search indexes can be configured
 via dspace.cfg and that is what you did. The index-init and
 index-update command line launcher commands are used to maintain them.

 Discovery uses Solr indexes. When you turn on Discovery, Solr is used
 for search and facets. Facets are what you see in the sidebar on the
 bottom under the Discovery label. The update-discovery-index is the
 command-line command.

 To make things more complicated, XMLUI with Discovery enabled still
 uses Lucene Browse indexes, but not Lucene Search indexes
 (instructions to enable Discovery tell you to disable the
 SearchArtifacts aspect). So both Lucene and Solr is used. Discovery
 also replaces the old old simple and advanced search form with its own
 /discover form that uses the Solr index completely. So browse indexes
 are only used for browsing (in the sidebar).

 In the JSPUI case, I believe turning on Discovery (introduced in 3.0)
 replaces Lucene completely.

 Sorry for the complicated explanation, but this is how the software
 has been developing. The next step will be to make Discovery default
 and deprecate Lucene.

 So, back to your question what discovery.xml is for. This is where you
 can configure sidebar facets and search filters. Sidebar facets are
 facets for index fields that you can see e.g. on the homepage. You can
 see search filters in the search form - where you drill down by
 Author, Title etc.

 I hope that clears it up a bit.


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] How do I share solr statistics server between two dspace servers?

2013-01-24 Thread Michael Reynolds
(realize I never did summarize my setup, so here it is...)

***Our environment ***
* Dspace version 1.8.2
* Tomcat 5.5
* Redhat release 5.8
* Two separate linux hosts running dspace, both behind a 
director/ipvs/heartbeat/load-balancing bastion host.  all queries 
load-balanced between the two dspace servers

*** Our goals ***
* to collect usage statistics on a single solr server, rather than having 
each host's solr server collect its own statistics
* to maintain our no-single-point-of-failure environment (if one dspace 
server goes down, the other server continues to serve content)


I am happy to report that I got this to work -- sharing a solr server 
between two dspace servers.  I must have set up something wrong with my 
tunneling before, but now I can indeed configure the solr client on dspace 
host1 to send its solr statistics to the solr server on dspace host2, just 
by changing the url in modules/solr-statistics.cfg:server and adding the 
RemoteAddrValve to Tomcat server.xml on dspace host2 to permit http access 
from addresses other than 127.0.0.1.  Yeay!


Now on to the other issue with having two, redundant dspace servers and one 
active solr server -- how best to keep dspace available when one host goes 
down?  The current dspace behavior is that it stops serving pages if it 
cannot contact the solr server to report usage data.  Thus, if my dspace 
host2 (the one hosting the live solr server) goes down, dspace host1 will 
stop serving pages as well.  Redundancy is lost.

I can think of two reasonably elegant ways to resolve this:

*** SOLUTION #1: change the dspace code to add a timeout for the solr 
client's attempt to send data to the solr server.
I've found one possible place to tweak for this, in 
dspace-stats/src/main/java/org/dspace/statistics/SolrLogger.java:

*** 86,91 
--- 86,95 
  try
  {
  server = new 
CommonsHttpSolrServer(ConfigurationManager.getProperty(solr-statistics, 
server));
+
+ // add a connection timout to prevent solr client from 
hanging if solr server offline
+ server.setConnectionTimeout(500);
+
  SolrQuery solrQuery = new SolrQuery()
  .setQuery(type:2 AND id:1);
  server.query(solrQuery);

I've tested this change and it seems to work well -- if I make dspace host2 
(hosting the live solr server) unavailable, dspace host1 will continue 
serving documents just fine (albeit with a 500 millisecond delay for each 
document). An error and a java exception trail get logged to the dspace log 
for each failure to contact the solr server. If I again make dspace host2 
available, dspace host1 resumes sending usage data to the solr server on 
dspace host2.  Nice!

So is this the best place to tweak dspace to accomplish this?  Any reason to 
think this tweak is going to bomb?  I think I'd try to add more code to 
swallow the exception thrown from this so as not to junk up dspace log, but 
other than that?


*** SOLUTION #2: run a standalone solr server.
Rather than have either of the dspace servers host the live solr server, 
we would run a separate generic apache solr server.  This host would own the 
solr server ip address and solr statistics index disk resource.  If our 
monitoring app detects that the solr server has stopped responding, it would 
kill that service and transfer the ip address and disk resource to a standby 
solr server.

But can dspace use a generic (or minimally customized) standalone apache 
solr server for its statistics?  Or is the solr server inside dspace too 
customized for this to be feasible?  I suppose we could install full-blown 
dspace servers just to use their solr servers for this, but that starts to 
seem ugly.

Thanks in advance for any advice.

--Mike Reynolds
  University of Washington Libraries ITS

Compulsory reading: DSpace Mailing List Response Etiquette
http://www.lib.washington.edu/its/mailing+list+response+etiquette.html 


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
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] How do I share solr statistics server between two dspace servers?

2013-01-24 Thread helix84
Hi Michael,

I'm glad you managed to get it working and that you reported back on your
progress. Also, when you feel you have added something extra that others
could use, you're welcome send the patch to our Jira. Howtos are also very
welcome for our wiki! I don't think we have anything on redundancy yet. And
the Solr page I wrote could use improvements in many places!

Regarding the best solution for Solr availability, I would recommend you to
run a separate Solr server if you can. There's nothing specific about the
embedded Solr in DSpace - just copy over the statistics core (both conf and
data), point DSpace(s) to it and you're good to go. The DSpace specific
things are described by schema.xml, which lives in the core's conf
directory. Just mind Solr versions, DSpace 3.0 contains Solr 3.5.0.

Even if you don't have a machine to spare, you could always run 2 tomcat
instances on one server to keep Solr safe in case DSpace crashes or locks
up its Tomcat instance (usually because of memory exhaustion). If you want
to go even further, Solr is designed so that it can be made redundant (see
eg. [1] or [2]).

[1] http://wiki.apache.org/solr/CollectionDistribution
[2] http://wiki.apache.org/solr/SolrReplication


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] How do I share solr statistics server between two dspace servers?

2013-01-24 Thread João Melo
Hi Michael,

if losing statistical data isn't critical i think the first solution would
be enough. The second solution would work, as a tweak to achieve solr
server redundancy, however with very bad performance. It's possible to
implement a better redundant solution using the SolrReplication feature
with a couple of code  configuration changes, but i think that it wouldn't
worth the effort.

It would be better to focus the effort upgrading DSpace in order to use the
most recent Solr Cloud feature (Solr 4.1 -
http://wiki.apache.org/solr/SolrCloud). About the upgrade, from what i
know, Solr 3.5 indexes are readable from 4.1, however DSpace uses SolrJ
Client v3.6 which is incompatible with the newly Solr Cloud features,
basically it will only require code changes (and minor schema changes) -
indexes will not require upgrade.



On 25 January 2013 01:37, helix84 heli...@centrum.sk wrote:

 Hi Michael,

 I'm glad you managed to get it working and that you reported back on your
 progress. Also, when you feel you have added something extra that others
 could use, you're welcome send the patch to our Jira. Howtos are also very
 welcome for our wiki! I don't think we have anything on redundancy yet. And
 the Solr page I wrote could use improvements in many places!

 Regarding the best solution for Solr availability, I would recommend you
 to run a separate Solr server if you can. There's nothing specific about
 the embedded Solr in DSpace - just copy over the statistics core (both conf
 and data), point DSpace(s) to it and you're good to go. The DSpace specific
 things are described by schema.xml, which lives in the core's conf
 directory. Just mind Solr versions, DSpace 3.0 contains Solr 3.5.0.

 Even if you don't have a machine to spare, you could always run 2 tomcat
 instances on one server to keep Solr safe in case DSpace crashes or locks
 up its Tomcat instance (usually because of memory exhaustion). If you want
 to go even further, Solr is designed so that it can be made redundant (see
 eg. [1] or [2]).

 [1] http://wiki.apache.org/solr/CollectionDistribution
 [2] http://wiki.apache.org/solr/SolrReplication


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 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




-- 
Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/)
DSpace Department
*Lyncode*: Official
websitehttp://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ
[image: Follow us on
Facebook]http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q
http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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] Urgtent set Metadata in Step

2013-01-24 Thread emilio lorenzo

Always keep the dspace-tech list in copy, thanks.



El 24/01/2013 19:34, Ghislain Bienvenu MAMAT escribió:

Hi Emilio,

Thanks for your reply!

We plan to use DSpace 3.

1. We  want  to use our Cryptographic API  to valide  signed files and 
Certificate and  set  automaticaly  the result metadata in the new 
task. It's possible with DSpace 3 (JSPUI)?
Perhaps the better approach is to develop (yes,  some java development 
is needed) a curation task with this functionality. Later on, you can 
attach the task to a) a submission worflow   b) the administrative user 
interface  c) The Command line interface


a good introduction to curation tasks:  
https://wiki.duraspace.org/display/DSPACE/Curation+Task+Cookbook
the develpoment guide:  
https://wiki.duraspace.org/display/DSDOC3x/Curation+System


2. We want  add UI  to manage  documents  archiving duration(5 , 6, 
10, 20, 50 years) by  categories  it's possible  with DSpace3?


Could you elaborate your definition of manage documents ?
There are some developments in Dspace regarding dates,  the most visible 
is the embargo system that manage the authorization and permissions 
system to allow or impede the access to digital objects depending  the 
dates.  Probably you´ll need to extend od change somehow the base 
functionality.







Regards,

Ghislain



Regards

Emilio






2013/1/24 emilio lorenzo elore...@arvo.es mailto:elore...@arvo.es

Hi, Ghislain,   if I understand some of your questions:

 how can I set metadata on submit processor step class?
You can set  certain fix metadata in the collection definition.
You can
determine a fixed value to be included every time an item is ingested
(via UI or batch ingester) .  Collection Template is called this
feature. Please refer to the release documentation for detailed info


 To validate PDF signed  document, we need  create new custom
step or no?
You can attach a curation task to the submission workflow   to
make such
validation  (You don´t specify dspace release, I assume is 1.8 or
3.0).
regards



 We need  manage physical archiving and  numerique archiving with
same
 DSpace -- required  dynamique  JSPUI   two checkBox (physical and
 numeric)   when user  check  physical  the system redirect to
 physical archiving  metadata form else  it redirect to numeric
 archiving  metadata form. Can we  make these use cases  with DSpace?

 Thank your to help us.

 Regards,




--
Master Visual Studio, SharePoint, SQL, ASP.NET http://ASP.NET,
C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills
current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
mailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette:
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
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