Re: [Dspace-tech] 'node id' in controlled vocabulary .xml file ?
Hi Mike, the node-Tag is used to render the controlled vocabulary tree by a XSLT- stylesheet. It has two attributes (id, label) used to render the tree in a correct way. So I wonder if you have changed the stylesheet (vocabulary2html.xsl) in an appropriate way. The attribute id is used within the stylesheet to name each checkbox of the controlled vocabulary tree. The attribute label contains the search term, which is used for the subject search. hope this helps, Andres > Hi > > (DSpace version 1.4.1) > > I have a question about the 'node id' in the controlled > vocabulary .xml file. > We created our own sciences index file to confine the set of keywords > that can be entered in the submission form. When creating that .xml > file I was looking at the supplied Scandinavian examples - and from > that (because in these two examples they are so different !), > concluded that the 'node id' was not actually *doing* something: it > looks merely as some sort of enumeration and I assumed I was free to > use whatever code we use at our institute i.e. use it as a mnemonic. > > But I discovered that these controlled vocabularies are also used in > the Subject Search. Unfortunately, it does not seem to work there: > when I do an advanced search on a subject and get a certain result, > clicking the same (or indeed any) box in the Subject Search form does > not retrieve any results. > > My gut feeling here is that this 'node id' is thus a bit more than > just an enumeration. But I cannot find anywhere (documents, internet) > what it *should* contain ... > > In the submission form (input-forms.xml), the controlled vocabulary > is configured like this: > > > dc > subject > lcsh > true > Subject Area > onebox > Enter your subject area of the item below. > >uvsi > > > Does anyone have a clue? > > TIA > > -- > Maike Dulk > Programmer / Analyst > McPherson Library, University of Victoria > [EMAIL PROTECTED] > > IBM: > It may be slow, but it's hard to use. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Dr. Andres Quast Virtuelle Fachbibliothek GEO-LEO Staats- und Universitätsbibliothek Göttingen Platz der Göttinger Sieben 1 37070 Göttingen email: [EMAIL PROTECTED] tel: 0551-39 4255 http://www.geo-leo.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Fwd: Re: 'node id' in controlled vocabulary .xml file ?
Hi Christophe and Mike, due to the disadvantages of big controlled vocabularies and our need of selecting several vocabularies during runtime I've made some changes of the code that makes possible to load controlled vocabularies from different subdirectories and choose several vocabularies to be displayed runtime. I'm also adapted the code for the submission workflow and introduced a special box method for controlled vocabularies into the edit_metadata.jsp. Unfortunatly I've made thischanges for the Version 1.3.2 and I'm currently bringing this up to version 1.4 which should be done in the next week. If its interesting for you, you can have a look how it works with the old version: http://134.76.163.148:8080/dspace/ http://134.76.163.148:8080/dspace/keyword-search?filter=&ID=subject_V_null -- Dr. Andres Quast Virtual Library GEO-LEO Staats- und Universitätsbibliothek Göttingen Platz der Göttinger Sieben 1 37070 Göttingen email: [EMAIL PROTECTED] tel: +49 551-39 4255 http://www.geo-leo.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] How to configure port number for DSpace
Hi Kyle, Ya You are right. I need the DSpace to connect to a mail server using port 587 for SMTP. Thank you Thiru.. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] How to configure port number for DSpace
Hi Kyle, Ya you are right. I need to connect the DSpace to a mail server using port number 587 for SMTP. Thank you Thiru... - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] How to configure port number for DSpace
Hi Thiru, You will need to modify the source code to do this, but it is a very simple modification. In your DSpace source directory edit the file src\org\dspace\core\Email.java At line 258 in that file, insert a new line: props.put("mail.smtp.port", 587); Note, this line should be right below a line that says: props.put("mail.smtp.host", server); Rebuild your DSpace and you should be good to go Kyle At / À 07:32 AM 09/05/2007, thirunavukarasu selvam wrote / a écrit: >Hi Kyle, > >Ya You are right. >I need the DSpace to connect to a mail server using port 587 for SMTP. > >Thank you >Thiru.. > >- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >___ >DSpace-tech mailing list >DSpace-tech@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] dspace.cfg -- db.statementpool = true
Graham, Thank you very much for your response. I assumed that it was something similar to your explanation, but let me get to the real reason for asking. Every day since migrating to a new server I have been getting hundreds of these errors: Exception: org.postgresql.util.PSQLException: This statement has been closed. at org.postgresql.jdbc2.AbstractJdbc2Statement.checkClosed(AbstractJdbc2Sta tement.java:2442) at org.postgresql.jdbc2.AbstractJdbc2Statement.setString(AbstractJdbc2State ment.java:1226) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(Delegating PreparedStatement.java:131) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(Delegating PreparedStatement.java:131) at org.dspace.storage.rdbms.DatabaseManager.loadParameters(DatabaseManager. java:1724) at org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java :157) at org.dspace.storage.rdbms.DatabaseManager.querySingleTable(DatabaseManage r.java:447) at org.dspace.storage.rdbms.DatabaseManager.querySingleTable(DatabaseManage r.java:465) at org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.ja va:647) at org.dspace.storage.rdbms.DatabaseManager.find(DatabaseManager.java:612) at org.dspace.content.Community.find(Community.java:144) at org.dspace.handle.HandleManager.resolveToObject(HandleManager.java:267) at org.dspace.app.webui.servlet.HandleServlet.doDSGet(HandleServlet.java:13 5) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:151) at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 16) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket. java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:686) at java.lang.Thread.run(Thread.java:595) It is not always the same error trace but always the same Exception: org.postgresql.util.PSQLException: This statement has been closed. The only way to make this stop was to stop/restart tomcat. Yesterday I set db.statementpool = false... I have yet to see an error in 18 hours or so. Any experiences with this? Thanks again, Damian Marinaccio RIT Libraries [EMAIL PROTECTED] 585-475-7741 -Original Message- From: Graham Triggs [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 2:09 AM To: Damian Marinaccio; dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] dspace.cfg -- db.statementpool = true From: Damian Marinaccio >From dspace.cfg: > ># Determine if prepared statement should be cached. (default is true) >db.statementpool = true > > > >I cannot find ANY documentation related to this statement. What are the >implications of turning it off/on. Hi, Well, as it says that the default is true, the first implication is that you can't turn it on - you can only turn it off ;-) What it relates to is whether PreparedStatement objects are held in a pool (managed by DBCP). Exact behaviour is rather dependent on the actual JDBC driver implementation, but pooling PreparedStatements is meant to eliminate the overhead of creating cursors and prevent repeated statement parsing/creation (I say meant - early Postgres drivers didn't hold cursors open on the database, and only pretended to support PreparedStatement). So, a pool of PreparedStatement objects is generally a good thing - not having one will increase the execution time of frequently executed (parametized) SQL, and waste significant resources on the database in parsing, etc. That said, maintaining open cursors on the database als
Re: [Dspace-tech] dspace.cfg -- db.statementpool = true
Damian et al. -- > Every day since migrating to a new server I have been getting hundreds > of these errors: > > [ ... ] > > Any experiences with this? Just as a data point: same errors seen, same change made, same observation (errors have abated). Usual caution about correlation vs. causation. :) -mgs - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] dspace.cfg -- db.statementpool = true
Kind of hard to say. What's happening is fairly obvious - close() has been called on the underlying Postgres PreparedStatement object, but the DelegatingPreparedStatement is remaining in the pool. I would suspect that the Connection that had been used in creating the statement has been closed at some point, which in turn has caused the statement to be closed - but I wouldn't know where! You could try adding: statementFactoryConfig.testOnBorrow = true; in DatabaseManager.initialize() inside the if(useStatementPool), before the GenericKeyedObjectPoolFactory is created. By default statements will not be validated, and this will have them checked prior to use. Also, there appears to be a bug in the TableRowIterator, although this probably isn't affecting you. In close(): results.close(); if (results != null) results.close(); should be: if (results != null) results.close(); results = null; Regards, G - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Final Year Thesis
Hi everyone I have 13 weeks to do a final year (4th year) computer engineering thesis. I have selected DSpace repository software since it is very relevant to all universities around the world. I was thinking of doing something in the area of DSpace - Customizing the Web User Interface. Since you are very familiar with the software I was wondering if anyone can give me some suggestions on what to work on Customizing the Web User Interface before I start (really trying to with frustration) installing DSpace on Windows XP. Any help are a great great help. My emails are [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED]. Thanks.Live Search delivers results the way you like it. Try live.com now! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] 'node id' in controlled vocabulary .xml file ?
Hi Andres and Cristophe thanks a bunch. I'll go and figure out that vocabulary2html.xsl :-) cheers -- Maike (not Mike ;-) ) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] 'node id' in controlled vocabulary .xml file ?
This is really weird. I took Christophe's version of the xls file, because that does make absolute sense: the original search for A::B(::C etcetera) did not yield any results, but now I get *too many* results. For instance, searching on 'Ethnology' gives me one result that does not have Ethnology as subject (there aren't any Ethnology theses in our DSpace as yet) but that does cite the word 'Ethnology' in its references list. In other words, the Subject Search now behaves as a Full Text search ... Maike On 9-May-07, at 2:14 AM, Dupriez Christophe wrote: > Hi Mike and Andres, > (please forward this message to the Tech list as I am not able to > post from here) > > At search time, the XSLT producing the displayed tree generates a > search term by concatenating all generic of the choosen subject > (and adding a right troncature I think). > Currently, In a hierarchy like A->B->C, choosing B generates a > search on "A::B". > > For MeSH, this was not suiting my need, so I made a little > modification to search on the choosen subject only: I attach this > modified XSLT. > > Subject searching will have to be improved on two points: > * selecting a subject should also select its specifics > * XSLT is very slow for big vocabularies like MeSH: vocabularies > should be loaded once in the background and redrawn using JavaScript. > > Short example with the beginning of my MeSH xml: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Have a nice day! > > Christophe Dupriez > > Quast <[EMAIL PROTECTED]> a écrit : > Hi Mike, > > the node-Tag is used to render the controlled vocabulary tree by a > XSLT- > stylesheet. It has two attributes (id, label) used to render the > tree in a > correct way. So I wonder if you have changed the stylesheet > (vocabulary2html.xsl) in an appropriate way. The attribute id is > used within > the stylesheet to name each checkbox of the controlled vocabulary > tree. The > attribute label contains the search term, which is used for the > subject > search. > > hope this helps, > Andres > > > > > Hi > > > > (DSpace version 1.4.1) > > > > I have a question about the 'node id' in the controlled > > vocabulary .xml file. > > We created our own sciences index file to confine the set of > keywords > > that can be entered in the submission form. When creating that .xml > > file I was looking at the supplied Scandinavian examples - and from > > that (because in these two examples they are so different !), > > concluded that the 'node id' was not actually *doing* something: it > > looks merely as some sort of enumeration and I assumed I was free to > > use whatever code we use at our institute i.e. use it as a mnemonic. > > > > But I discovered that these controlled vocabularies are also used in > > the Subject Search. Unfortunately, it does not seem to work there: > > when I do an advanced search on a subject and get a certain result, > > clicking the same (or indeed any) box in the Subject Search form > does > > not retrieve any results. > > > > My gut feeling here is that this 'node id' is thus a bit more than > > just an enumeration. But I cannot find anywhere (documents, > internet) > > what it *should* contain ... > > > > In the submission form (input-forms.xml), the controlled vocabulary > > is configured like this: > > > > > > dc > > subject > > lcsh > > true > > Subject Area > > onebox > > Enter your subject area of the item below. > > > > uvsi > > > > > > Does anyone have a clue? > > > > TIA > > > > -- > > Maike Dulk > > Programmer / Analyst > > McPherson Library, University of Victoria > > [EMAIL PROTECTED] > > > > IBM: > > It may be slow, but it's hard to use. > > > > > > > -- > --- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > DSpace-tech mailing list > > DSpace-tech@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > -- > Dr. Andres Quast > Virtuelle Fachbibliothek GEO-LEO > Staats- und Universitätsbibliothek Göttingen > Platz der Göttinger Sieben 1 > 37070 Göttingen > > email: [EMAIL PROTECTED] > tel: 0551-39 4255 > http://www.geo-leo.de > > -- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.source
Re: [Dspace-tech] 'node id' in controlled vocabulary .xml file ?
Hi Looking at the .xsl file, I don't think the node id attribute is used in any way. The checkbox name is generated: ... cb_ ... as is confirmed by looking at the HTML source of the rendered page ... Mechanical engineering ... The node Id that I entered in the controlled vocabulary file for this entry was 'A.6.11' - and that is never seen anywhere anymore. So it is still completely obscure what the node id attribute is actually used for ... cheers Maike On 9-May-07, at 1:33 AM, Andres Quast wrote: > Hi Mike, > > the node-Tag is used to render the controlled vocabulary tree by a > XSLT- > stylesheet. It has two attributes (id, label) used to render the > tree in a > correct way. So I wonder if you have changed the stylesheet > (vocabulary2html.xsl) in an appropriate way. The attribute id is > used within > the stylesheet to name each checkbox of the controlled vocabulary > tree. The > attribute label contains the search term, which is used for the > subject > search. > > hope this helps, > Andres > > > >> Hi >> >> (DSpace version 1.4.1) >> >> I have a question about the 'node id' in the controlled >> vocabulary .xml file. >> We created our own sciences index file to confine the set of keywords >> that can be entered in the submission form. When creating that .xml >> file I was looking at the supplied Scandinavian examples - and from >> that (because in these two examples they are so different !), >> concluded that the 'node id' was not actually *doing* something: it >> looks merely as some sort of enumeration and I assumed I was free to >> use whatever code we use at our institute i.e. use it as a mnemonic. >> >> But I discovered that these controlled vocabularies are also used in >> the Subject Search. Unfortunately, it does not seem to work there: >> when I do an advanced search on a subject and get a certain result, >> clicking the same (or indeed any) box in the Subject Search form does >> not retrieve any results. >> >> My gut feeling here is that this 'node id' is thus a bit more than >> just an enumeration. But I cannot find anywhere (documents, internet) >> what it *should* contain ... >> >> In the submission form (input-forms.xml), the controlled vocabulary >> is configured like this: >> >> >> dc >> subject >> lcsh >> true >> Subject Area >> onebox >> Enter your subject area of the item below. >> >> uvsi >> >> >> Does anyone have a clue? >> >> TIA >> >> -- >> Maike Dulk >> Programmer / Analyst >> McPherson Library, University of Victoria >> [EMAIL PROTECTED] >> >> IBM: >> It may be slow, but it's hard to use. >> >> >> - >> >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech > > -- > Dr. Andres Quast > Virtuelle Fachbibliothek GEO-LEO > Staats- und Universitätsbibliothek Göttingen > Platz der Göttinger Sieben 1 > 37070 Göttingen > > email: [EMAIL PROTECTED] > tel: 0551-39 4255 > http://www.geo-leo.de > > -- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > -- Maike Dulk Programmer / Analyst McPherson Library, University of Victoria [EMAIL PROTECTED] IBM: It may be slow, but it's hard to use. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Problem with reading submitted items
Hi... I recently created a new DSpace test system based on our production system (which is DSpace 1.3.2). I have started to upload some test records to this new test system, but I have run into a problem I can't solve. Whether I do batch loading or use the Submit function, I successfully upload the items, but when I try to view them, I get the following error: Exception: java.lang.IllegalArgumentException: No such column viewed Does anyone have any idea what can be causing the problem? *** George Kozak Coordinator Web Development and Management Digital Media Group 501 Olin Library Cornell University 607-255-8924 *** [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech