Re: [Dspace-tech] Recent Submission not showing (i.e. on home page) in default 5.1 installation
Hi Alex, I could reproduce and fit it by setting a non-zero value to recent.submissions.count property in dspace.cfg. The value of this property doesn't have an influence on XMLUI, so it may be better to change its default value. Keiji Suzuki Ebetsu, Japan 2015-03-26 16:26 GMT+09:00 Alex D alexdot...@mail.ru: Anybody? Please?.. :) -- View this message in context: http://dspace.2283337.n4.nabble.com/Recent-Submission-not-showing-i-e-on-home-page-in-default-5-1-installation-tp4677086p4677177.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ 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] Recent Submission not showing (i.e. on home page) in default 5.1 installation
Hi, JSPUI XMLUI recent.submissions.count = 0 and NotDispalay property name=max value=20 recent.submissions.count = 20 and Display Dispalay property name=max value=20 recent.submissions.count = 0Not Not property name=max value=0 recent.submissions.count = 20 and DisplayNot property name=max value=0 I don't know if this is intended, but my test is resulted in these in version 5.1 and the current master. Keiji Suzuki 2015-03-27 20:23 GMT+09:00 royopa roy...@gmail.com: Hi In DSpace with Discovery (DSpace 3+ - https://wiki.duraspace.org/display/DSDOC3x/Discovery#Discovery-DiscoveryChangelist) you must change another file: *##Recent submissions* in file [dspace]config/spring/api/discovery.xml: Section recentSubmissionsConfiguration !--The configuration for the recent submissions-- property name=recentSubmissionConfiguration bean class= org.dspace.discovery.configuration.DiscoveryRecentSubmissionsConfiguration property name=metadataSortField value= dc.date.accessioned / property name=type value=date/ property name=max value=20/ !-- If enabled the collection home page will not display metadata but show a pageable list of recent submissions -- property name=useAsHomePage value=false/ /bean /property *Regards* *Royopa* On Fri, Mar 27, 2015 at 4:05 AM, SUZUKI Keiji z...@mbc.ocn.ne.jp wrote: Hi Alex, I could reproduce and fit it by setting a non-zero value to recent.submissions.count property in dspace.cfg. The value of this property doesn't have an influence on XMLUI, so it may be better to change its default value. Keiji Suzuki Ebetsu, Japan 2015-03-26 16:26 GMT+09:00 Alex D alexdot...@mail.ru: Anybody? Please?.. :) -- View this message in context: http://dspace.2283337.n4.nabble.com/Recent-Submission-not-showing-i-e-on-home-page-in-default-5-1-installation-tp4677086p4677177.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Rodrigo Prado de Jesus http://about.me/royopa roy...@gmail.com -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- 鈴木敬二@江別市 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net
Re: [Dspace-tech] Hide Recent Submissions 4.1
Hi Gary, Remove org.dspace.app.webui.components.RecentSiteSubmissions from plugin.sequence.org.dspace.plugin.SiteHomeProcessor in [dspace]/config/dspace.cfg for home page. and remove org.dspace.app.webui.components.RecentCommunitySubmissions from plugin.sequence.org.dspace.plugin.CommunityHomeProcessor for community home page. Regards, Keiji Suzuki 2014-09-02 14:47 GMT+09:00 Gary Browne gary.bro...@sydney.edu.au: Hello all, DSpace version: 4.1 UI: JSP Servlet container: Tomcat 7 Server: RHEL 6.5 64-bit Java: OpenJDK 1.7 Is there a configuration option to hide/remove the Recent Submissions sliders in DSpace 4.1 (from the home page and community/collection pages)? Thanks, Gary GARY BROWNE | Development Programmer Library IT Services | Fisher Library F03 THE UNIVERSITY OF SYDNEY T +61 2 9351 5946 | M +61 405 647 868 E gary.bro...@sydney.edu.au | W http://sydney.edu.au Sent from my plain old desktop computer. CRICOS 00026A This email plus any attachments to it are confidential. Any unauthorised use is strictly prohibited. If you receive this email in error, please delete it and any attachments. Please think of our environment and only print this e-mail if necessary. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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 -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ 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] problems with collections views with DSpace upgrade to 4.1
Hi Jim, Problem 2 seems a bug. Change the following line https://github.com/DSpace/DSpace/blob/dspace-4.1/dspace-api/src/main/java/org/dspace/search/DSIndexer.java#L604 From: if (!liveDocs.get(i)) To: if (liveDocs != null !liveDocs.get(i)) Problem 1 seems a config setting. From version 4, discovery search provider is used as a default, so you have to comment out the discovery setting and comment in the lucene setting in Additional configuration for Recent Submissions code section. Regards, Keiji Suzuki 2014-07-25 3:46 GMT+09:00 Halliday, James Leonard jhall...@indiana.edu: Hi everyone, I am upgrading an instance of DSpace from 1.5.2 to 4.1, and I’m running into 2 problems after the upgrade. They may be related, so I’m posting them both here together. First off, note that I’m using legacy lucene indexing and XMLUI, and I’m using code that has worked for 2 other DSpace upgrades. Problem #1: The collection pages are blank after the upgrade. In other words, the collection pages don’t show the usual content in the main part of the page (the “search within this document type”, “browse by”, and “recent submissions” are all missing). The sidebar is there, and I can search or browse the collection just fine by using the sidebar, but the main part of the page doesn’t show. Strangely, I can switch to any other theme, including Classic and Kubrick, and the same problem occurs. If I view the DRI and XML versions of those pages I can see that the “recent submissions” node is not present at all. If I create new collections, they exhibit the same problem. I do not have this problem in the older 1.5.2 instance. Problem #2: When running an index-lucene-init it works just fine, but running index-lucene-update crashes every time with: java.lang.NullPointerException at org.dspace.search.DSIndexer.cleanIndex(DSIndexer.java:604) at org.dspace.search.DSIndexer.main(DSIndexer.java:507) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Can anyone help me with this? I’m more concerned about #1 than #2, because I won’t be able to put this repository into production until I resolve this issue. Thanks! - Jim Halliday - Indiana University -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ 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 -- 鈴木敬二@江別市 -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds___ 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] XPDF Thumbnail Preview issue
Hi Christian, I wrote the following option in last post but Poppler's version of pdftoppm seems to make a varying length of sequence by the page number of the original pdf. This problem already has been fixed from the DSpace version 3.0. You can see this fix at the following url. https://github.com/DSpace/DSpace/commit/0d01078eb165f7431bee64dfde2271e9b149e862#diff-e8b609cb2ef5cb3d5d1945f38ffbe2ec Sorry I have checked only DSpace 1.8.2 and not the current version. Regards, Keiji Suzuki 2014-06-15 22:54 GMT+09:00 SUZUKI Keiji z...@mbc.ocn.ne.jp: 2) Edit line 237 of XPDF2Thumbnail.java and rebuild DSpace from File outf = new File(outPrefix+-01.ppm); to File outf = new File(outPrefix+-1.ppm); -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems___ 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] XPDF Thumbnail Preview issue
Hi Christian, 2014-06-15 20:18 GMT+09:00 Christian Völker c.voel...@gmx.net: This means, the enumeration scheme used by pdftoppm for writing image files from several pages is different from what the XPDF Plugin expects. If I got it right, the plugin tells pdftoppm to do this: /usr/bin/pdftoppm -q -f 1 -l 1 -r 75 /tmp/DSfilt2327548125683453130.pdf /tmp/prevu8591868713129272046out It expects to find the resulting file here: /tmp/prevu8591868713129272046out-01.ppm However, the file gets written here: /tmp/prevu8591868713129272046out-1.ppm Everything is fine regarding file permissions, the file is in the expected directory /tmp, only the six digits instead of a single digit make the difference. There are several questions here. Why does the filter write a .ppm file and not a .jpg file using the -jpeg option of pdftoppm and when does the actual conversion happen? The task of the filter is always to produce a thumbnail image of the first page. So it would seem much more logical and robust to me to use the -singlepage attribute of pdftoppm which does not add anything to the output name besides the file extension. Instead first page -f and last page -l are set to 1. But well I would not need to bother if everything worked fine. Where does this six digit rule get set? The version of my pdftoppm is different from yours and my version of it makes a output ppm with 6 digit as a sequece. dspace@www:~$ pdftoppm -v pdftoppm version 3.02 Copyright 1996-2007 Glyph Cog, LLC And I confirm the version of pdftoppm in the package poppler-utils of Ubuntu 1204LTS server (64bit version) is same as yours and this version of pdftoppm make a output file with one digit. I use Ubuntu 12.04LTS server (32bit version). I can't remember how did I install my version but there is the xpdf-utils package that is not in 64bit OS. I might install my version from this package. In any case, I think there are two options. 1) Install the version 3.02 of pdftoppm in some way, 2) Edit line 237 of XPDF2Thumbnail.java and rebuild DSpace from File outf = new File(outPrefix+-01.ppm); to File outf = new File(outPrefix+-1.ppm); Hope this helps you. Regards, Keiji Suzuki During my tests I had produced thousands of files starting with /tmp/prevu*. Most of them ended on -1.ppm, but some of them on -01.ppm. Mysterious. I will try to produce the same fault on my test system which works fine for now, just to understand where are the differences. For now, I wont try the second suggestion to recompile with source code commented out, because I guess, I already found the issue, just dont understand it yet. Thanks for your support. Further suggestions welcome. Bye, Christian -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ 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 -- 鈴木敬二@江別市 -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems___ 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] XPDF Thumbnail Preview issue
Hi Christian, This error has occurred because ImageIO could not read the file generated by pdftoppm command. I think what you should do is to check whether pdftoppm generates a correct file. To do this, I recommend the following two steps. 1) Set the logging level to DEBUG and rerun. 2) Comment out the lines 253 to 256 in XPDF2Thumbnail.java temporally, rebuild and run. With step 1, you can see the real command executed by DSpace and the path name of generated file to check these are correct. With Step 2, you can retain the generated file to check its content and the mode. Regards, Keiji Suzuki 2014-06-13 8:44 GMT+09:00 Christian Völker c.voel...@gmx.net: Hello, I just try to get the XPDF based PDF Thumbnail creation working. It works fine in my DSpace 4.1 test instance. The feature was already available in DSpace 1.8.2 which is still our production release. Instead of waiting until the new version is production ready, I install the features step by step in the production environment. On the production machine, I get this error: esxh-15:/srv/dspace# bin/dspace filter-media -i 2339/4318 -v The following MediaFilters are enabled: Full Filter Name: org.dspace.app.mediafilter.HTMLFilter org.dspace.app.mediafilter.HTMLFilter Full Filter Name: org.dspace.app.mediafilter.WordFilter org.dspace.app.mediafilter.WordFilter Full Filter Name: org.dspace.app.mediafilter.JPEGFilter org.dspace.app.mediafilter.JPEGFilter Full Filter Name: org.dspace.app.mediafilter.XPDF2Text org.dspace.app.mediafilter.XPDF2Text Full Filter Name: org.dspace.app.mediafilter.XPDF2Thumbnail org.dspace.app.mediafilter.XPDF2Thumbnail Full Filter Name: org.dspace.app.mediafilter.PowerPointFilter org.dspace.app.mediafilter.PowerPointFilter SKIPPED: bitstream 27442 (item: 2339/4318) because 'Limmerstraße.pdf.txt' already exists ERROR filtering, skipping bitstream: Item Handle: 2339/4318 Bundle Name: ORIGINAL File Size: 2667225 Checksum: 3db0096cb62b6d595c1e4bb77f6833d0 (MD5) Asset Store: 0 javax.imageio.IIOException: Can't read input file! javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(ImageIO.java:1291) at org.dspace.app.mediafilter.XPDF2Thumbnail.getDestinationStream(XPDF2Thumbnail.java:244) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:353) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Updating search index: Note, that the text extraction took place in an earlier run of filter-media. So the message Can't read input file! is not very credible. Also the method called when the Exeption took place was XPDF2Thumbnail.getDestinationStream, which means that this issue might not be with the input file but with creating the output file. In 2012, Osama Alkadi reported a similar issue and solved it by updating the pdftoppm tool. On Debian and Ubuntu, the required tools are contained in the package poppler-utils. I have installed Version 0.18.4 on both test and production machine. Here is the output: esxh-15:/srv/dspace# pdftoppm -v pdftoppm version 0.18.4 Copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org Copyright 1996-2004 Glyph Cog, LLC The version numberings seems to have changed in unexpected ways as Osama Alkadi told that he updated from 3.0 to 3.0.2. For the moment, this does not help too much. All other components involved are also the same on both machines. jai_imageio is version 1.1 and jai_core is 1.1.3. As the file is hard to find in the assetstore, I downloaded it using the browser, scped it back to the server and converted it manually using pdftoppm -jpeg inputfile.pdf outputname. It worked. I exported the item containing the file using the AIP packager, transferred it to the test server running DSpace 4.1, imported it and ran filter-media there. It worked fine. I compared the installation instructions of DSpace 4.1 and 1.8.2 and could not find a significant difference regarding the XPDF Feature. The mvn package and ant update command had not shown any irregularities. File permissions in assetstore did not show any problems. On both
Re: [Dspace-tech] Switch off SOLR stats?
Hi Mike, 2014-04-29 20:04 GMT+09:00 Michael White michael.wh...@stir.ac.uk: Hi, DSpace 4.1, JSPUI . . . I'm trying to switch off the SOLR stats links for non-admin users - I've checked usage-statistics.cfg and see: #View/download statistics authorization.admin.usage=true #Search/search result statistics authorization.admin.search=true #Workflow result statistics authorization.admin.workflow=true Now JSPUI does not support last two kind of properties and supports only authorization.admin.usage and authorization.admin is used as the name of the property instead. This seems a bug of JSPUI, so we should change the code, DisplayStatisticsServlet.java, but temporarily you can set authorization.admin = true to hide usage statistics from anonymous users in the usage-statistics.cfg. - but the stats download icons are still visible, and stats are available behind them, even when not logged in (following several rebuilds and tomcat restarts etc) . . . The stats download icons are now alway visible in JSPUI. If you want to hide it from anonymous users, add the if-clause to the line 262 in dspace/webapps/jspui/display-item.jsp as follows: % if (admin_button || !ConfigurationManager.getBooleanProperty(usage-statistics, authorization.admin, true)) { % a class=statisticsLink btn btn-primary href=%= request.getContextPath() %/handle/%= handle %/statisticsfmt:message key=jsp.display-item.display-statistics//a % } % Have I missed something? or am I doing something stupid? Anyone else successfully turned these off in DSpace 4.1/JSPUI? Any pointers, suggestions etc welcome :-) Cheers, Mike Michael White eLearning Liaison and Development (eLD) Information Services S8, Library University of Stirling Stirling SCOTLAND FK9 4LA Email: michael.wh...@stir.ac.uk Tel: +44 (0) 1786 466877 Fax: +44 (0) 1786 466880 http://www.stir.ac.uk/is/staff/about/teams/aldt/#eld -- The University of Stirling has been ranked in the top 12 of UK universities for graduate employment*. 94% of our 2012 graduates were in work and/or further study within six months of graduation. *The Telegraph The University of Stirling is a charity registered in Scotland, number SC 011159. -- Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free. http://p.sf.net/sfu/SauceLabs ___ 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 Regards, Keiji Suzuki -- Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free. http://p.sf.net/sfu/SauceLabs ___ 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] Browse authority controlled author names by text value, not by authority key
Hi Daniel, 2014-04-25 23:55 GMT+09:00 Daniel Scharon daniel.scha...@uni-konstanz.de: This value is set in org.dspace.browse.SolrBrowseCreateDAO.additionaIndex() using the value returned by getLabel() method of your class implementing ChoiceAuthority interface. Maybe your class return the value of second parameter key as-is in the same manner as LCNameAuthority. Yes, this is the case. If an authority key has more than one form of the name, this is a common case in Japanese author, I recommend customizing your getLabel() function. Another way is editing SolrBrowseCreateDAO class itself. Replace the following lines https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/browse/SolrBrowseCreateDAO.java#L217-227 to if (!ignorePrefered) { preferedLabel = values[x].value; } But in this case, when more than one name has the same authority code, each name is counted and displayed separately. So I do not recommend. This is my mistake. I assumed you didn't set any properties for discovery function. SolrBrowseCreateDAO seems to check (lines 205-16) whether browse.authority.ignore-prefered is set within config/modules/discovery.cfg in a similar manner as SolrServiceImpl checks (lines 975-985) whether index.authority.ignore-prefered is set to true. The option for Discovery is documented here: https://wiki.duraspace.org/display/DSDOC4x/Discovery#Discovery-GeneralDiscoverysettings%28config/modules/discovery.cfg%29 whereas I can't find any documentation for the browse option browse.authority.ignore-prefered Setting index.authority.ignore-prefered for example like this index.authority.ignore-prefered.dc.contributor.author=true works flawlessly and the discovery sidebar lists the text values and not the authority keys. But setting browse.authority.ignore-prefered doesn't seem to have any effect, neither globally like browse.authority.ignore-prefered=true nor specifically like browse.authority.ignore-prefered.author=true Note: We always use this option in combination with authority.ignore-variants Is there any possibility we can take advantage of that option? The demosite (demo.dspace.org) seems to use choice authority for authors but still succeeds to display the text values and not the authority keys for browsing. Does anybody know how this is solved there? I have read the code more seriously and found some doubtful points. I think there are bugs and you can't get expected results with setting properties only. Please refer to the code diff at the following url, https://gist.github.com/zuki/11365437 Regards, Keiji Suzuki -- Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free. http://p.sf.net/sfu/SauceLabs ___ 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] [SPAM] Media filter handling of .docx
Hi Trevor, I made it as a new filter that could extract text from .doc, .docx, ppt, pptx, xls and xlsx. See my commit log for detail at the following url: https://github.com/zuki/DSpace/commit/302de5d098cf5a3914498345a0e49ba56b796181 Regards, Keiji Suzuki Ebetsu, Japan 2014-04-16 23:05 GMT+09:00 Trevor Wilson trevor.wil...@rmc.ca: The media filter doesn't currently process .docx files to enable full-text search. I've found a few mentions of this being a result of it using outdated text-mining tools instead of Apache's POI for it's processing. Has anyone rewritten this to make use of POI and got it to full-text-search the contents of a .docx? Thanks! Trevor -- View this message in context: http://dspace.2283337.n4.nabble.com/Media-filter-handling-of-docx-tp4672707.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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 -- 鈴木敬二@江別市 -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ 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] Communities and Collections in search results
Hi Anthony, 2014-04-08 4:03 GMT+09:00 Anthony Petryk anthony.pet...@uottawa.ca: In DSpace 4.0 JSPUI, the search results page includes “hits” from Communities and Collections in addition to Items. However, some of these Communities and Collections only appear on the second and third page of results (possibly because they’re ranked lower in relevance than some Items). Is there a way of getting them all to float to the top? Is it possible to remove them from the results list altogether? You can remove them with setting the following property element to default configuration settings for discovery and Homepage specific configuration settings for discovery.in [dspace]/config/spring/api/discovery.xml In the default configuration setting this property is set as comment already. property name=defaultFilterQueries list valuesearch.resourcetype:2/value /list /property This setting removes communities and collections results in XMLUI but there is a bug in JSPUI and does not remove them. I made a PR and created a ticket in JIRA. Please refer to the following URL, https://jira.duraspace.org/browse/DS-1974 Also, is it possible to configure which metadata fields are indexed for Communities and Collections? It seems that the License field is indexed, which we don’t want. You can omit the license data with setting dc.rights.license as a value of property name=toIgnoreMetadataFields also in [dspace]/config/spring/api/discovery.xml and reindex discovery index. The following is a diff with these two setting. --- discovery.xml.org 2014-04-19 15:55:58.082480988 +0900 +++ discovery.xml 2014-04-19 19:06:37.579309730 +0900 @@ -76,6 +76,8 @@ !--valuedc.description.tableofcontents/value-- !--Copyright text-- valuedc.rights/value +!--License text-- +valuedc.rights.license/value !--Collection name-- !--valuedc.title/value-- /list @@ -124,12 +126,12 @@ /bean /property !--Any default filter queries, these filter queries will be used for all queries done by discovery for this configuration-- -!--property name=defaultFilterQueries-- -!--list-- +property name=defaultFilterQueries +list !--Only find items-- -!--valuesearch.resourcetype:2/value-- -!--/list-- -!--/property-- +valuesearch.resourcetype:2/value +/list +/property !--The configuration for the recent submissions-- property name=recentSubmissionConfiguration bean class=org.dspace.discovery.configuration.DiscoveryRecentSubmissionsConfiguration @@ -212,6 +214,12 @@ ref bean=searchFilterIssued / /list /property +property name=defaultFilterQueries +list +!--Only find items-- +valuesearch.resourcetype:2/value +/list +/property !--The sort filters for the discovery search (same as defaultConfiguration above)-- property name=searchSortConfiguration bean class=org.dspace.discovery.configuration.DiscoverySortConfiguration Regards, Keiji Suzuki Ebetsu, Japan -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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] Browse authority controlled author names by text value, not by authority key
Hi Daniel, This value is set in org.dspace.browse.SolrBrowseCreateDAO.additionaIndex() using the value returned by getLabel() method of your class implementing ChoiceAuthority interface. Maybe your class return the value of second parameter key as-is in the same manner as LCNameAuthority. You have to edit your code to return author name. Another way is editing SolrBrowseCreateDAO class itself. Replace the following lines https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/browse/SolrBrowseCreateDAO.java#L217-227 to if (!ignorePrefered) { preferedLabel = values[x].value; } But in this case, when more than one name has the same authority code, each name is counted and displayed separately. So I do not recommend. Regards, Keiji Suzuki 2014-04-16 23:30 GMT+09:00 Daniel Scharon daniel.scha...@uni-konstanz.de: Hello all, we have successfully implemented authority control for author names. But now it seems, that the authors' names listed for browsing/discovery are being retrieved (and indexed) from the authority key instead of the metadata text value. For our users this would mean that they would see author names with absolutely no meanings to them (like abc1234). So I tried to set the author index to be retrieved by the text value: webui.browse.index.2 = author:metadataAuthority:dc.contributor.author:text But this doesn't show any effect; even after a complete reindexing the author names are still listed with their authority values. Any hints on how to solve this? Kind regards, Daniel -- Daniel Scharon KIM, Room B 705 University of Konstanz 78457 Konstanz, Germany Tel: +49 7531 88-2951 XMPP/E-Mail: daniel.scha...@uni-konstanz.de Web: http://www.kim.uni-konstanz.de -- Daniel Scharon KIM, Room B 705 University of Konstanz 78457 Konstanz, Germany Tel: +49 7531 88-2951 XMPP/E-Mail: daniel.scha...@uni-konstanz.de Web: http://www.kim.uni-konstanz.de -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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 -- 鈴木敬二@江別市 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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] dspace 1.6 - Import Items...
Hi Joseph, The error has occurred because you specified a file path as the value of the -s option. The Item Import function uses DSpace simple archive format for the import data. You have to prepare metadata and bitstream of items with this format and specify the archive directory path as a value of -s option. For the details of the format, please refer to 8.3.1 DSpace Simple Archive Format of the DSpace document in [dspace-src]/dspace/docs or at the following url: http://dspace.org/sites/dspace.org/files/archive/1_6_2Documentation/ch08.html#N159FE Regards, Keiji Suzuki 2014-04-16 16:07 GMT+09:00 Joseph Sayah joseph.sa...@lau.edu.lb: Hi Keiji, Thank you so much for your reply, you are right, it was the handle of the item not the collection, I replaced it by the handle of the collection, the command still returning the below error, and when I checked the collection I realized that there is no submission under the collection (the requested item was not submitted under the collection) and the file batch_import_map was created with size = 0 , for more details please see below the command and the error message, maybe I missed something: */sfw/local/dspace/dspace1.6/bin/dspace import -a -e joseph.sa...@lau.edu.lb joseph.sa...@lau.edu.lb -c 10725/61 -s /sfw/local/dspace/dspace1.6/batch_import/formatchecklist.pdf -m /sfw/local/dspace/dspace1.6/batch_import_map* *Destination collections:* *Owning Collection: Test Collection* *Adding items from directory: /sfw/local/dspace/dspace1.6/batch_import/formatchec klist.pdf* *Generating mapfile: /sfw/local/dspace/dspace1.6/batch_import_map* *java.lang.NullPointerException* *at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:600)* *at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:500)* *at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)* *at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)* *at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)* *at java.lang.reflect.Method.invoke(Method.java:597)* *at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:194)* *java.lang.NullPointerException* Best, *Joseph N. SAYAH* ERP Application Administrator IT Applications Solutions, Ext: 1468 [image: Email signature Beirut] http://www.lau.edu.lb/ *P* *please consider the environment before printing this email* *From:* zuki.ebe...@gmail.com [mailto:zuki.ebe...@gmail.com] *On Behalf Of *SUZUKI Keiji *Sent:* Tuesday, April 15, 2014 4:26 AM *To:* Joseph Sayah *Cc:* Hilton Gibson; dspace-tech@lists.sourceforge.net *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items... Hi Joseph, The error message says 10724/1578 is not the handle of a collection. Indeed, when I access to http://hdl.handle.net/10724/1578, this seems an item. Double check the handle (or internal ID) of the collection which you want to import items within. Regards, Keiji Suzuki 2014-04-14 21:11 GMT+09:00 Joseph Sayah joseph.sa...@lau.edu.lb: Hi, Thank you for your quick reply, also if I put the Database ID I get the same error…. Best, *Joseph N. SAYAH* ERP Application Administrator IT Applications Solutions, Ext: 1468 [image: Email signature Beirut] http://www.lau.edu.lb/ *P* *please consider the environment before printing this email* *From:* Hilton Gibson [mailto:hilton.gib...@gmail.com] *Sent:* Monday, April 14, 2014 2:53 PM *To:* Joseph Sayah *Cc:* dspace-tech@lists.sourceforge.net *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items... On 14 April 2014 13:47, Joseph Sayah joseph.sa...@lau.edu.lb wrote: Cannot resolve 10724/1578 to collection My guess is to check the operation of your handle server. Regards hg *Hilton Gibson* Ubuntu Linux 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://scholar.sun.ac.za http://bit.ly/goodir http://library.sun.ac.za http://za.linkedin.com/in/hiltongibson -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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 -- 鈴木敬二@江別市 -- Learn
Re: [Dspace-tech] dspace 1.6 - Import Items...
Hi Joseph, The error message says 10724/1578 is not the handle of a collection. Indeed, when I access to http://hdl.handle.net/10724/1578, this seems an item. Double check the handle (or internal ID) of the collection which you want to import items within. Regards, Keiji Suzuki 2014-04-14 21:11 GMT+09:00 Joseph Sayah joseph.sa...@lau.edu.lb: Hi, Thank you for your quick reply, also if I put the Database ID I get the same error…. Best, *Joseph N. SAYAH* ERP Application Administrator IT Applications Solutions, Ext: 1468 [image: Email signature Beirut] http://www.lau.edu.lb/ *P* *please consider the environment before printing this email* *From:* Hilton Gibson [mailto:hilton.gib...@gmail.com] *Sent:* Monday, April 14, 2014 2:53 PM *To:* Joseph Sayah *Cc:* dspace-tech@lists.sourceforge.net *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items... On 14 April 2014 13:47, Joseph Sayah joseph.sa...@lau.edu.lb wrote: Cannot resolve 10724/1578 to collection My guess is to check the operation of your handle server. Regards hg *Hilton Gibson* Ubuntu Linux 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://scholar.sun.ac.za http://bit.ly/goodir http://library.sun.ac.za http://za.linkedin.com/in/hiltongibson -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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 -- 鈴木敬二@江別市 inline: image001.jpg-- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech___ 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] changing item mapper layout
Hi Graham, These are hard coding in programs and you have to edit files and compile and deploy them. 2014-04-15 3:33 GMT+09:00 Graham Faulkner graham.faulk...@uwaterloo.ca: 1. The emails sent to collection subscribers now list both the advisor(s) AND the student in the “Author” field (with the advisor listed first). How can I either: a. remove the advisor from the email, or b. update the email to show the advisor and author using separate field names? For (a), edit line 436 of [dspace-src]/dspace-api/src/main/java/org/dspace/eperson/Subscribe.java from: DCValue[] authors = hii.item.getDC(contributor, Item.ANY, to: DCValue[] authors = hii.item.getDC(contributor, author, 2. In the item mapper search results view for the collection, if you do a search for the author’s name of a thesis you want to map, the thesis is shown, but the advisor is listed in the Author column instead of the student. Where do I change the table layout so that the Author column shows dc.contributor.author and not dc.contributor.advisor? Edit line 108 of [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java from: DCValue[] dcContributors = item.getDC(contributor,Item.ANY,Item.ANY); to: DCValue[] dcContributors = item.getDC(contributor,author,Item.ANY); And for changing the display in Browsing mapped items page, edit line 110 of [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/BrowseItemForm.java from: DCValue[] dcAuthors = item.getDC(contributor,Item.ANY,Item.ANY); to: DCValue[] dcAuthors = item.getDC(contributor,author,Item.ANY); == I recommend you do not edit the files directly, instead copy these files to the appropriate directories under the [dspace-src]/dspace/modules and edit those files. Regards, Keiji Suzuki -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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] solr error
Hi Monika, I could reproduced this error with commenting out the all core elements in [dspace]/solr/solr.xml. Check this file to be at least one core element is effective and restart tomcat. Regards, Keiji Suzuki 2014-04-15 6:06 GMT+09:00 Monika C. Mevenkamp moni...@princeton.edu: I am getting an internal server error, due to error for http://localhost:8080/solr/ There are no SolrCores running. Using the Solr Admin UI currently requires at least one SolrCore. I checked out the master branch which a few of my own changes None of them involve any solar related stuff What should I look at next ? Monika Monika Mevenkamp mo.me...@gmail.com http://mcmprogramming.com/mo.meven/potd/ Monika Mevenkamp phone: 609-258-4161 Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 08544 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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 -- 鈴木敬二@江別市 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ 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] Is it possible not
Hi, From 1.6.0, there is a setting to hide metadata fields. But with 1.5, you have to customize the code. These (Submitted by .. and Approved for ...) fields are set in the following program. [dspace-src]/dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java Regards, Keiji Suzuki 2014-04-08 16:50 GMT+09:00 LIBRIS Reference (LIBRIS) lib...@nie.edu.sg: Dear All, We are using DSpace version 1.5. When a record is created, a dc.description.provenance entry is automatically created (see below example). Is there any way not to have the email captured in the dc.description.provenance field? Thanks. Submitted by Name (Email) on 2013-08-22T04:09:51ZNo. of bitstreams: 2xxx.html: 5726 bytes, checksum: xxx (MD5)xxx.pdf: 292 bytes, checksum: xxx (MD5) National Institute of Education (Singapore) http://www.nie.edu.sg DISCLAIMER : The information contained in this email, including any attachments, may contain confidential information. This email is intended only for the use of the addressee(s) listed above. Unauthorised sight, dissemination or any other use of the information contained in this email is strictly prohibited. If you have received this email by fault, please notify the sender and delete it immediately. -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ 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 -- 鈴木敬二@江別市 -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ 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] Is it possible not
Hi, I noticed that customizing WorkflowManager.java is effective only against new submitting items. About the function Hide metadata from full item view please refer to the following jira ticket. https://jira.duraspace.org/browse/DS-288 Regards, Keiji Suzuki 2014-04-08 18:27 GMT+09:00 SUZUKI Keiji z...@mbc.ocn.ne.jp: Hi, From 1.6.0, there is a setting to hide metadata fields. But with 1.5, you have to customize the code. These (Submitted by .. and Approved for ...) fields are set in the following program. [dspace-src]/dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java Regards, Keiji Suzuki 2014-04-08 16:50 GMT+09:00 LIBRIS Reference (LIBRIS) lib...@nie.edu.sg: Dear All, We are using DSpace version 1.5. When a record is created, a dc.description.provenance entry is automatically created (see below example). Is there any way not to have the email captured in the dc.description.provenance field? Thanks. Submitted by Name (Email) on 2013-08-22T04:09:51ZNo. of bitstreams: 2xxx.html: 5726 bytes, checksum: xxx (MD5)xxx.pdf: 292 bytes, checksum: xxx (MD5) National Institute of Education (Singapore) http://www.nie.edu.sg DISCLAIMER : The information contained in this email, including any attachments, may contain confidential information. This email is intended only for the use of the addressee(s) listed above. Unauthorised sight, dissemination or any other use of the information contained in this email is strictly prohibited. If you have received this email by fault, please notify the sender and delete it immediately. -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ 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 -- 鈴木敬二@江別市 -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ 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 -- 鈴木敬二@江別市 -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ 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] ChineseAnalyzer not work in DSpace 4.0
Hi Chenhe, DSpace 4.0 uses Lucene 4.4.0. The ChineseAnalyser packaged in this version does not have a method with the signature of init(Version), so this error occurs. According to the api document of ChineseAnalyser, this class is deprecated and using org.apache.lucene.analysis.standard.StandardAnalyzer, which has the same functionality, is recommended instead. How about trying this class as the value of search.analyzer property? Regards, Keiji Suzuki 2014-02-27 12:14 GMT+09:00 badboy lucky0...@gmail.com: we install DSpace4.0 on RHEL6.5, and set the dspace.cfg like this: search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer we meet the error when run #ant fresh_install FATAL org.dspace.search.DSIndexer @ anonymou s:no_context:no_search_analyzer:search.analyzer=org.apache.lucene.analysis.cn.Ch ineseAnalyzer just as the same as https://jira.duraspace.org/browse/DS-1170 in dspace.conf, if set search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer if will fail with #ant fresh-install . [java] 2012-05-09 17:02:18,195 ERROR org.dspace.search.DSIndexer @ Unable t o create index directory: c:\dspace180/search [java] 2012-05-09 17:02:18,203 FATAL org.dspace.search.DSIndexer @ anonymou s:no_context:no_search_analyzer:search.analyzer=org.apache.lucene.analysis.cn.Ch ineseAnalyzer [java] java.lang.NoSuchMethodException: org.apache.lucene.analysis.cn.Chine seAnalyzer.init(org.apache.lucene.util.Version) [java] at java.lang.Class.getConstructor0(Class.java:2706) [java] at java.lang.Class.getDeclaredConstructor(Class.java:1985) [java] at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:635) [java] at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914) [java] at org.dspace.search.DSIndexer.clinit(DSIndexer.java:225) [java] java.lang.ExceptionInInitializerError [java] Caused by: java.lang.IllegalStateException: java.lang.NoSuchMethodEx ception: org.apache.lucene.analysis.cn.ChineseAnalyzer.init(org.apache.lucene. util.Version) [java] at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:644) [java] at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914) [java] at org.dspace.search.DSIndexer.clinit(DSIndexer.java:225) [java] Could not find the main class: org.dspace.search.DSIndexer. Program will exit. [java] Exception in thread main If I don't set .ChineseAnalyzer before install, ant build successful, and then I edit the dspace.conf set it to use ChineseAnalyzer, same error message will got when use #dspace index-init -- How to do this? Thanks in advance! Regarts. Chenhe -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ 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 -- 鈴木敬二@江別市 -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ 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] Text alignment in browse table
Hi Shazia, I am sorry but I wrote the wrong version number. Please change the value of version element form 2.5 to 2.0 Regards, Keiji Suzuki 2014-02-25 0:41 GMT+09:00 Shazia Sathar ssat...@uic.edu: Thanks for your response Keiji Suzuki. I tried your suggestion and got the following error: ... [ERROR] Failed to execute goal on project jspui: Could not resolve dependencies for project org.dspace.modules:jspui:war:4.0: Could not find artifact javax.servlet:jsp-api:jar:2.5 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/) - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :jspui Any ideas on how to proceed? Thanks again! Regards, Shazia On Fri, Feb 21, 2014 at 6:47 PM, SUZUKI Keiji z...@mbc.ocn.ne.jp wrote: Hi Shazia, Add the following lines under the dependencies element in [dspace-src]/dspace/modules/jspui/pom.xml -- form here dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.5/version scopeprovided/scope /dependency --- end -- Regards, Keiji Suzuki 2014-02-22 3:36 GMT+09:00 Shazia Sathar ssat...@uic.edu: Hello All, I would like to make a few changes to the text alignment in the Browse table. Looks like the dspace tag dspace:browselist is used to display the items. I tried to align the date field to left. Here is what I did. I modified dspace-src\dspace-jspui\src\main\java\org\dspace\app\webui\jsptag\BrowseListTag.java as below: if (isDate[colIdx]) { extras = nowrap=\nowrap\ align=\left\; } and placed the new version in dspace-src\dspace\modules\jspui\src\main\java\org\dspace\app\webui\jsptag When I tried to build DSpace by running mvn clean package I get compilation errors: .. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project jspui: Compilation failure: Compilation failure: [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[30,24] package javax.servlet.jsp does not exist [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[31,24] package javax.servlet.jsp does not exist [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[33,31] package javax.servlet.jsp. tagext does not exist [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[49,35] cannot find symbol [ERROR] symbol: class TagSupport [ERROR] public class BrowseListTag extends TagSupport [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[141,35] cannot find symbol [ERROR] symbol : class JspException [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[800,19] cannot find symbol [ERROR] symbol : class JspException [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[859,19] cannot find symbol [ERROR] symbol : class JspException [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[143,8] cannot find symbol [ERROR] symbol : class JspWriter [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[143,24] cannot find symbol [ERROR] symbol : variable pageContext ... Any ideas on how I can proceed with setting the alignment to left? I am using DSpace v4 and run JSPUI version on Windows. I have attached a screenshot of how it looks now. Thanks in advance for your help! Regards, Shazia -- Managing the Performance of Cloud-Based
Re: [Dspace-tech] Text alignment in browse table
Hi Shazia, Add the following lines under the dependencies element in [dspace-src]/dspace/modules/jspui/pom.xml -- form here dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.5/version scopeprovided/scope /dependency --- end -- Regards, Keiji Suzuki 2014-02-22 3:36 GMT+09:00 Shazia Sathar ssat...@uic.edu: Hello All, I would like to make a few changes to the text alignment in the Browse table. Looks like the dspace tag dspace:browselist is used to display the items. I tried to align the date field to left. Here is what I did. I modified dspace-src\dspace-jspui\src\main\java\org\dspace\app\webui\jsptag\BrowseListTag.java as below: if (isDate[colIdx]) { extras = nowrap=\nowrap\ align=\left\; } and placed the new version in dspace-src\dspace\modules\jspui\src\main\java\org\dspace\app\webui\jsptag When I tried to build DSpace by running mvn clean package I get compilation errors: .. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project jspui: Compilation failure: Compilation failure: [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[30,24] package javax.servlet.jsp does not exist [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[31,24] package javax.servlet.jsp does not exist [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[33,31] package javax.servlet.jsp. tagext does not exist [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[49,35] cannot find symbol [ERROR] symbol: class TagSupport [ERROR] public class BrowseListTag extends TagSupport [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[141,35] cannot find symbol [ERROR] symbol : class JspException [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[800,19] cannot find symbol [ERROR] symbol : class JspException [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[859,19] cannot find symbol [ERROR] symbol : class JspException [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[143,8] cannot find symbol [ERROR] symbol : class JspWriter [ERROR] location: class org.dspace.app.webui.jsptag.BrowseListTag [ERROR] \dspace4_dac\dspace-4.0-src-release\dspace\modules\jspui\src\main\java\o rg\dspace\app\webui\jsptag\BrowseListTag.java:[143,24] cannot find symbol [ERROR] symbol : variable pageContext ... Any ideas on how I can proceed with setting the alignment to left? I am using DSpace v4 and run JSPUI version on Windows. I have attached a screenshot of how it looks now. Thanks in advance for your help! Regards, Shazia -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk ___ 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 -- 鈴木敬二@江別市 -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk ___ 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 to enable OAI-PMH into DSpace 3.2
Hi Bhavesh, I suppose the old request cache remains. Did you run [dspace]/bin/dspace/oai clean-cache command after edited config files? If no, run it. Or delete directly the cache directory, [dspace]/var/oai/requests Keiji Suzuki 2014-02-07 Bhavesh Patel bhavesh.bece...@gmail.com: Dear helix84/Hilton, Yes, I have already set dspace.url dspace.baseUrl on dspace.cfg (see the screen sort : dspace_baseURL.png). Also for OAI-PMH I have set that URL on /dspace/config/modules/oai.cfg file (see the screen sort : oai_config.png) Let me know if anything need to correct. As per the document : https://wiki.duraspace.org/display/DSDOC3x/OAI Harvesting from another DSpace : Point no 1 : First, check to see if the external DSpace reports that it will support harvesting ORE via the OAI-PMH interface. Demo URL : http://demo.dspace.org/oai/request?verb=ListRecordsmetadataPrefix=ore (Working Fine - It's Fetch the results) Our URL : http://vslir.iimahd.ernet.in:8080/oai/request?verb=ListRecordsmetadataPrefix=ore (It's shows : No matches for the query) Can you please tell me what may be the issue..? I have just copy the oai folder from [dspace] to [tomcat-webapps] set the localhost path to vslir.iimahd.ernet.in into /dspace/config/modules/oai.cfg (as screen sort attached). Please let me know what may be the problem.. Thanks for your help.. Bhavesh Patel Thanks Regards, Bhavesh R. Patel bhavesh.bece...@gmail.com (Email) Websites : www.bhaveshpatel.info www.onlinequizportal.com www.hindisuvichar.com Never leave till tomorrow which you can do today Please consider the environment before printing this e-mail. On Tue, Feb 4, 2014 at 7:43 PM, helix84 heli...@centrum.sk wrote: Check that both your dspace.url and dspace.baseUrl are set to http://vslir.iimahd.ernet.in:8080;. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ 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 -- 鈴木敬二@江別市 -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ 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] Why DSpace serves some files as attachments?
Hi Evgeni, When the size of a file exceeds the threshold, the file will be attached. Default threshold size is 8MB and it is configurable. The property in dspace.cfg is; for XMLUI: xmlui.content_disposition_threshold for JSPUI: webui.content_disposition_threshold See the manual for the detail, https://wiki.duraspace.org/display/DSDOC4x/Configuration+Reference#ConfigurationReference-ContentInlineDispositionThreshold Keiji Suzuki Ebetsu, Japan 2014/1/23 Evgeni Dimitrov dimitrove@gmail.com: The Response header is bellow. When and why is a file served as attachment? Is this configurable? = Response Headers view source Content-Dispositionattachment;filename=bookPDF2.pdf Content-Languagebg Content-Length18846023 Content-Typeapplication/pdf DateThu, 23 Jan 2014 08:25:22 GMT ExpiresThu, 23 Jan 2014 09:25:22 GMT Last-ModifiedTue, 21 Jan 2014 20:13:43 GMT ServerApache-Coyote/1.1 VaryUser-Agent X-Cocoon-Version2.2.0 -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ 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 -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ 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] Mirage messages.xml file
Hi Larry, Isn't your messages.xml invalid? Check if your file is well-formed. Keiji Suzuki 2013/11/5 Larry Hansard larry.hans...@library.gatech.edu: I'm trying to use the Mirage theme but tomcat is not seeing any of the messages in the messages.xml file. Messages.xml is in /tomcat//webapps/xmlui/i18n and all of the translated messages are there. When I look at my xmlui website, I see stuff like: xmlui.ArtifactBrowser.CommunityBrowser.head xmlui.ArtifactBrowser.CommunityBrowser.select xmlui.ArtifactBrowser.FrontPageSearch.head xmlui.ArtifactBrowser.FrontPageSearch.para1 message key=xmlui.ArtifactBrowser.CommunityBrowser.headCommunities in Repository/message is in the mesages.xml file. Am I missing a parameter? I'm using DSpace 3.2. JSPUI is working fine. Thanks -- Larry -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk ___ 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 -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ 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] Dspace home page - Blank
Hi Ribin, Something wrong happens in home.jsp code. If you installed Tomcat from Ubuntu package, check the line 254 of the following file, /var/lib/tomcat6/work/Catalina/localhost/jspui/org/apache/jsp/home_jsp.java If you installed the Tomcat yourself, check [tomcat-home]/work/Catalina/localhost/jspui/org/apache/jsp/home_jsp.java Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at java.lang.String.substring(String.java:1949) at java.lang.String.substring(String.java:1916) at org.apache.jsp.home_jsp._jspService(home_jsp.java:254) # = THIS IS THE LINE If you can't fix the problem, attach this home_jsp.java and the original jsp file [dspace]/webapps/jspui/home.jsp, so that we will be able to some advise. Regards, Keiji Suzuki 2013/10/31 ribin.jo...@niist.res.in: Hi, I get a blank home page when I access dspace. It was working well till now and this happened after adding an item into a collection - I dont think adding an item to a collection will cause this. We are using dspace 3.1 jspui in ubuntu. Attaching screen shot of the dspace home page. See the below error logs: 2013-10-31 15:18:54,439 WARN org.dspace.core.PluginManager @ No Configuration entry found for Sequence Plugin interface=org.dspace.plugin.SiteHomeProcessor 2013-10-31 15:18:54,467 WARN org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=3F25540C2EEFCF9F47E5E39C4F76C128:internal_error:-- URL Was: http://ir.niist.res.in:8080/jspui/home.jsp -- Method: GET -- Parameters were: org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) Caused by: org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60) at org.apache.jsp.index_jsp._jspService(index_jsp.java:126) at
Re: [Dspace-tech] Dspace home page - Blank
Hi Ribin, It seems that the potential bug was revealed with a new item probably. New version of JSPUI will include a new function to display recent submissions in home page. Please try it if the problem will be reproduced with the item. Regards, Keiji Suzuki 2013/10/31 ribin.jo...@niist.res.in: Hi, We had some five lines of code in home.jsp to display Recent Submissions in dspace home page. When I removed that specific lines of code in home.jsp, the original dspace home page appeared again. I am not sure what went wrong suddenly, since we have been using this code for a long time and there was no issues. Ribin Jones S.B - Original Message - From: SUZUKI Keiji z...@mbc.ocn.ne.jp To: ribin jones ribin.jo...@niist.res.in Cc: dspace-tech dspace-tech@lists.sourceforge.net Sent: Thursday, 31 October, 2013 4:56:29 PM Subject: Re: [Dspace-tech] Dspace home page - Blank Hi Ribin, Something wrong happens in home.jsp code. If you installed Tomcat from Ubuntu package, check the line 254 of the following file, /var/lib/tomcat6/work/Catalina/localhost/jspui/org/apache/jsp/home_jsp.java If you installed the Tomcat yourself, check [tomcat-home]/work/Catalina/localhost/jspui/org/apache/jsp/home_jsp.java Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at java.lang.String.substring(String.java:1949) at java.lang.String.substring(String.java:1916) at org.apache.jsp.home_jsp._jspService(home_jsp.java:254) # = THIS IS THE LINE If you can't fix the problem, attach this home_jsp.java and the original jsp file [dspace]/webapps/jspui/home.jsp, so that we will be able to some advise. Regards, Keiji Suzuki 2013/10/31 ribin.jo...@niist.res.in: Hi, I get a blank home page when I access dspace. It was working well till now and this happened after adding an item into a collection - I dont think adding an item to a collection will cause this. We are using dspace 3.1 jspui in ubuntu. Attaching screen shot of the dspace home page. See the below error logs: 2013-10-31 15:18:54,439 WARN org.dspace.core.PluginManager @ No Configuration entry found for Sequence Plugin interface=org.dspace.plugin.SiteHomeProcessor 2013-10-31 15:18:54,467 WARN org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=3F25540C2EEFCF9F47E5E39C4F76C128:internal_error:-- URL Was: http://ir.niist.res.in:8080/jspui/home.jsp -- Method: GET -- Parameters were: org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) Caused by: org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service
Re: [Dspace-tech] Customise Dspace Side News
HI Sitali, You use JSPUI, right? If so, you don't customize [dspace-src]/ dspace/config/news-side.html and run ant update. instead you log in dspace as admin and click Administer - Edit Nesw - Edit of Sidebar News. Edit the news and click Save. The edited news is reflected immediately. If your site is multilingual, switch language before editing news, so that you can edit news in each language separately. And you can edit [dspace]/config/news-side.html directly, in this case the edited news is also reflected immediately. Regards, Keiji Suzuki, 2013/10/30 Chrispin Simasiku Sitali libsit...@gmail.com: Each time I customise the Side News, run ant update; the news is lost. Only the default site news remains. How can I edit the news so that the changes remain even after ant update. Thank you Sitali CS -- Charles Lwanga College of Education, P. O. Box 660193, Monze, ZAMBIA. Mobile: +26 0979 869471 SKYPE: Libsitali -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk ___ 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 -- 鈴木敬二@江別市 -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk ___ 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] FW: XPDF: filter-media error cannot find the file
Hi Álvaro, java.io.IOException: Cannot run program http://localhost:80/xpdf/pdftotext: CreateProcess error=2, The system cannot find the file specified This error means that the value of the property xpdf.path.pdftotext in [dspace]/config/dspace.cfg is http://localhost:80/xpdf/pdftotext;. Double-check if this property is set to the valid path. Keiji Suzuki Ebetsu, Japan 2013/8/1 Álvaro Vargas Quezada al...@outlook.com Hi everyone! I'm trying to use XPDF in my DSpace site, but when I execute the filter-media command it throws me a lot of errors. The jpg files are ok, it shows the thumbnail, that means xpdf works, but it says cannot find the file specified, if it is about the xpdf that's wrong because the xpdf files are there, and if it is because of the pdf, it is also wrong because when I go to the specified item, I can open the documento without problems. Below I let you the error, I hope you can help me :) I'm using DSpace 1.8.2, Apache Tomcat 6.0, XPDF 3.01 Muchas gracias desde Chile! :D *ERROR filtering, skipping bitstream:* *Item Handle: 123456789/1359* *Bundle Name: ORIGINAL* *File Size: 32379168* *Checksum: 5ee6a48c6d7cc9c7d4fc1bf0b4fbc426 (MD5)* *Asset Store: 0* *java.io.IOException: Cannot run program http://localhost:80/xpdf/pdftotext: CreateProcess error=2, The system cannot find the file specified* *java.io.IOException: Cannot run program http://localhost:80/xpdf/pdftotext: CreateProcess error=2, The system cannot find the file specified* *at java.lang.ProcessBuilder.start(Unknown Source)* *at java.lang.Runtime.exec(Unknown Source)* *at java.lang.Runtime.exec(Unknown Source)* *at org.dspace.app.mediafilter.XPDF2Text.getDestinationStream(XPDF2Text.java:111) * *at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737) * *at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561) * *at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511) * *at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479) * *at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414) * *at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333) * *at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)* *at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)* *at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)* *at java.lang.reflect.Method.invoke(Unknown Source)* *at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)* *Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified* *at java.lang.ProcessImpl.create(Native Method)* *at java.lang.ProcessImpl.init(Unknown Source)* *at java.lang.ProcessImpl.start(Unknown Source)* *... 15 more* *ERROR filtering, skipping bitstream:* -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk ___ 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 -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___ 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] utf issues with metadata
Hi Eimar, I think that your problem (1) is same as the following issue. https://jira.duraspace.org/browse/DS-1537 The problem (2) was not able to be reproduced in my environment. Regards, Keiji Suzuki Ebetsu, Japan 2013/7/2 Eimar Koort eimar.ko...@gmail.com Hi, I'm having UTF problems with dspace 3.0 (and 3.1) Same issue is described here: http://dspace.2283337.n4.nabble.com/Error-with-Dspace-OAI-PHM-listing-records-and-Identifiers-td4662827.html#a4664511 So my problems (using dspace 3.0): http://dspace.emu.ee/oai/request?verb=ListRecordsmetadataPrefix=metsset=com_10492_1 1) Attachment URL-s containing %2F so they are not valid anymore and attachment can't be found. http://dspace.emu.ee/xmlui/bitstream/10492%2F79/1/bitstream Should be: http://dspace.emu.ee/xmlui/bitstream/10492/79/1/bitstream 2) Text (mods:abstract) containing non-ascii characters is not printed out correctly: Looduslähedase metsamajanduse üheks... Should be: Looduslähedase metsamajanduse üheks... Entry itself seems to be fine when looking here: https://dspace.emu.ee/handle/10492/79 Any hints? Regards -- Eimar Koort ( eimar.ko...@gmail.com ) -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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 -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ 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] Error occurs in Name authority lookup function only in the specific browsers
Hi list, Resolved. The following patch to dspace-jsp/dspace-jsp-webapp/ src/main/webapp/static/js/choice-support.js resolves this problem. --- choice-support.js.org 2012-02-21 10:47:16.482735352 +0900 +++ choice-support.js 2012-02-21 10:48:47.830748671 +0900 @@ -261,7 +261,11 @@ var ovalue = opt.getAttributeNode('value').value; var option = new Option(olabel, ovalue); option.authority = opt.getAttributeNode('authority').value; -select.add(option, null); +try { +select.add(option, null); +} catch(e) { +select.add(option); +} if (value == ovalue) selectedByValue = select.options.length - 1; if (opt.getAttributeNode('selected') != null) @@ -270,7 +274,11 @@ // add non-authority option if needed. if (!isClosed) { -select.add(new Option(dspace_formatMessage(nonAuthority, value), value), null); + try { + select.add(new Option(dspace_formatMessage(nonAuthority, value), value), null); + } catch(e) { + select.add(new Option(dspace_formatMessage(nonAuthority, value), value)); + } } var defaultSelected = -1; if (selectedByChoices = 0) Thank you, Keiji Suzuki Ebetsu, Japan 2012/2/20 SUZUKI Keiji z...@mbc.ocn.ne.jp: Hi list, I am troubled with the error in the Name authority lookup function which occurs only in specific browsers. I am using my custom ChoiceAuthority plugin, but this error is reproduced in LCNameAuthority in the jspui version of the dspace demo site, When I click the zoom icon next to an author field with Internet Explorer 7 with Windows XP Home Edition ServicePack 3, I get the alert with the error Failed to load choice data: Exception=[object Error] and can not get choices. I received the information that IE8 with WindowsVista and IE9 with Windows7 also generate the same problem. But in my Windows XP Professional Service Pack 3 environment, this error is not occured with Internet Explorer 8, FireFox, Chrome, Opera and Safari. I know that this error is outputted by the OnException function of the Ajax.Request() in the DSpaceChoicesLoad() function in the choice-support.js. I have googled to solve this problem, but I could not find it so far. Does anyone have any information for this problem? Thank you in advance, Keiji Suzuki Ebetsu, Japan -- 鈴木敬二@江別市 -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Error occurs in Name authority lookup function only in the specific browsers
Hi list, I am troubled with the error in the Name authority lookup function which occurs only in specific browsers. I am using my custom ChoiceAuthority plugin, but this error is reproduced in LCNameAuthority in the jspui version of the dspace demo site, When I click the zoom icon next to an author field with Internet Explorer 7 with Windows XP Home Edition ServicePack 3, I get the alert with the error Failed to load choice data: Exception=[object Error] and can not get choices. I received the information that IE8 with WindowsVista and IE9 with Windows7 also generate the same problem. But in my Windows XP Professional Service Pack 3 environment, this error is not occured with Internet Explorer 8, FireFox, Chrome, Opera and Safari. I know that this error is outputted by the OnException function of the Ajax.Request() in the DSpaceChoicesLoad() function in the choice-support.js. I have googled to solve this problem, but I could not find it so far. Does anyone have any information for this problem? Thank you in advance, Keiji Suzuki Ebetsu, Japan -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Language switch for xmlui and some basic i18n stuff
Hi Elvi, The first patch in the i18nBasicsForXmuli.patch of DS-842 is for dspace-xmlui/dspace-xmlui-api/src/main/java/ org/dspace/app/xmlui/aspect/artifactbrowser/Navigation.java From DSpace1.7.0, ArtifactBrowser is deprecated and ViewArtifacts is used instead. Maybe you have to apply this patch to dspace-xmlui/dspace-xmlui-api/src/main/java/ org/dspace/app/xmlui/aspect/viewArtifacts/Navigation.java Keiji Suzuki Ebetsu, Japan 2011/12/7 Nemiz, Elvi S. esne...@seafdec.org.ph: Hello Dspace users, The language switch is working in jspui by the way. I don't know why it is not working in xmlui. Thanks and regards, Elvi 2011/12/7 bodnar_rob...@bcucluj.ro Dear Robert, After applying the patches found in https://jira.duraspace.org/browse/DS-842, I think the supposedly language selector is not showing up because there is no metadata element=page qualifier=supportedLocale even though I have added de, ja in webui.supported.locales and xmlui.supported.locales in dspace.cfg. I don't know what causes this and maybe the language selector is not showing because of this test in page-structure.xsl: !-- Display a language selection if more than 1 language is supported -- xsl:if test=count(/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='page'][@qualifier='supportedLocale']) gt; 1 I also tried to viewed your raw DRI of your repository by inserting /DRI/ after xmlui and your repository don't have supportedLocale either. I really appreciate your suggestion of implementing links and appending ?local-attribute=[language] but this won't work if the url string has ?. Thank you for your help and hope someone can take a view on this. Regards, Elvi Dear Elvi, Thank you for your email. Unfortunately I`m only a librarian not a programmer, so my knowledge is very limited regarding this:( I did not thought about links with question marks... Might Dspace contain this kind of links? Anyway, our default interface is JSPUI for now... I tried a couple of times to ask the same question as you on the list, but noone really give any solution. I hope you can find a good solution for this. Have a nice day! B. Robert -- 鈴木敬二@江別市 -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Language switch for xmlui and some basic i18n stuff
Hi Elvi, Although I'm wondering why it is still using messages.xml even if I choose Japanese in the language selector. I tried with other languages (in fact I tried all the included messages_.xml) and only German, Spanish, Italian, Catalan and Czech are working. All included locales are working in jspui though I know it is not using the messages_.xml. Please advise what I'm missing. Because there is a bug in messages_ja.xml at the repository. Replace the first line of the DSPACE-INSTALL-DIR/webapps/xmlui/i18n/messages_ja.xml from ?xml version=1.0 encoding=UTF-8? to ?xml version=1.0 encoding=UTF-8? To Claudia, could you correct this in the repository? Thanks, Keiji Suzuki Ebetsu, Japan -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] adding a cover page to a PDF file
Hi Nemiz, I'm very interested in your implementation of adding a cover page of all your pdfs in your dspace instance. I'm wondering if this can be implemented in xmlui? It would be very helpful for other repository admins if you could provide the dspace community the steps in implementing this feature. Very nice work! This feature has already implemented in xmlui. I revised the install doc a little. Please follow step 1, 2.2, 3 and 4 for xmlui. regards Keiji -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Adding cover page to PDF on the fly
Hi David, 2011/9/10 David Chandek-Stark david.chandek.st...@duke.edu: I found a thread on this from a couple years ago about adding cover pages to PDFs (on the fly, per client request). I assume this functionality is still in the realm of custom code. Is anyone willing share their solution, or point me to one? I have already developed this functionality and many Japanese repositories use this. Check the following page. http://zuki-ebetsu.jp/dspace/cover-function.html And you can see the sample at the following urls. JSPUI: http://zuki-ebetsu.jp/jspui/bitstream/123456789/146/3/cover-function.pdf XMLUI: http://zuki-ebetsu.jp/xmlui/bitstream/handle/123456789/146/cover-function.pdf?sequence=3 These patch were made for DSpace 1.7.2, but may be applicable to other versions. I hope this helps you. Keiji Suzuki Ebetsu, Japan -- Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] IllegalAccessError has occurred when posting thru SWORD to DSpace 1.7.0 rc1 with discovery consumer setting
Hi list, Illegal AccessError has occurred when I posted an item through SWORD to DSpace 1.7.0 rc1 with discovery cosumer setting. This error has not occurred when I posted through jspui nor xmlui. Also this error has not occurred when I posted through SWORD to DSpace without discovery consumer setting. The stacktrace is as follows: java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory at org.slf4j.LoggerFactory.staticInitialize(LoggerFactory.java:83) at org.slf4j.LoggerFactory.clinit(LoggerFactory.java:73) at org.dspace.kernel.DSpaceKernelManager.clinit(DSpaceKernelManager.java:28) at org.dspace.utils.DSpace.init(DSpace.java:57) at org.dspace.utils.DSpace.init(DSpace.java:46) at org.dspace.discovery.IndexEventConsumer.init(IndexEventConsumer.java:41) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.dspace.event.ConsumerProfile.readConfiguration(ConsumerProfile.java:87) at org.dspace.event.ConsumerProfile.makeConsumerProfile(ConsumerProfile.java:62) at org.dspace.event.EventManager$DispatcherPoolFactory.makeObject(EventManager.java:227) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:964) at org.apache.commons.pool.PoolUtils$SynchronizedKeyedObjectPool.borrowObject(PoolUtils.java:1159) at org.dspace.event.EventManager.getDispatcher(EventManager.java:111) at org.dspace.core.Context.commit(Context.java:333) at org.dspace.sword.SWORDContext.commit(SWORDContext.java:178) at org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:123) at org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527) at java.lang.Thread.run(Thread.java:619) And an excerpt from the dependency tree of Building DSpace SWORD is as follows: [INFO] [INFO] Building DSpace SWORD :: Web Application [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree {execution: default-cli}] [INFO] org.dspace.modules:sword:war:1.7.0-rc1 [INFO] +- org.dspace:dspace-sword-webapp:war:1.7.0-rc1:compile [INFO] +- org.dspace:dspace-sword-api:jar:1.7.0-rc1:compile -- snip [INFO] +- org.dspace:dspace-discovery-provider:jar:1.7.0-rc1:compile [INFO] | \- org.apache.solr:solr-solrj:jar:1.4.1:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.5.5:compile === 1.5.5 [INFO] | +- org.codehaus.woodstox:wstx-asl:jar:3.2.7:compile [INFO] | | \- stax:stax-api:jar:1.0.1:compile [INFO] | \- org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile -- Keiji Suzuki Ebetsu, Japan -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] controlled vocabulary in non-english language
Hi, You may fix this when you apply the following patch to DSPACE-SRC/dspace-jsp/dspace-jsp-webapp/src/main/webapp/controlledvocabulary/controlledvocabulary.jsp === patch from here = --- controlledvocabulary.jsp2010-06-14 21:48:18.0 +0900 +++ controlledvocabulary.jsp.new2010-08-09 09:34:55.93750 +0900 @@ -46,7 +46,7 @@ --% -%@ page language=java contentType=text/html;charset=iso-8859-1 % +%@ page language=java contentType=text/html;charset=UTF-8 % %@ page import=javax.servlet.jsp.jstl.fmt.LocaleSupport % %@ taglib uri=http://java.sun.com/jsp/jstl/fmt; prefix=fmt % @@ -57,7 +57,7 @@ head titlefmt:message key=jsp.controlledvocabulary.controlledvocabulary.title//title -meta http-equiv=Content-Type content=text/html;charset=iso-8859-1/ +meta http-equiv=Content-Type content=text/html;charset=UTF-8/ link rel=shortcut icon href=%= request.getContextPath() %/favicon.ico type=image/x-icon/ == patch end = 2010/8/8 洪承理 oldd...@gmail.com: Hi there I'm new in dspace.Now I am trying to apply controlled vocabulary in my system. I followed the manual and seted webui.controlledvocabulary.enable = true. It just worked fine,but when I trying to make my own controlled vocabulary ,it got a problem. Following the manual,I made a .xml file to put all my controlled vocabulary,and it can display in Subject Search correctly. But when I assigned controlled vocabulary for an item, in the pop-up window ,all the controlled vocabulary just showed ?. After submission ,the subject field also showed ?. By the way, I used Chinese to make controlled vocabulary,and the .xml encoding in utf8,my dspace version is 1.6.2. Could somebody help me to fix this? Thanks. -- Keiji Suzuki Ebetsu, Japan -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] SRWU Setup failing
Hi Hayden, Though you might already have solved, I got the same error today. I could work around this with the following patch. Also I had to copy commons-dbcp.jar, commons-pool.jar and postgres.jar from DSpace to SRW's WEB-INF/lib. I used DSpace 1.5.2 and SRW/U checked out from svn/trunk. Regards, Keiji Suzuki Ebetsu, Japan Index: SRWLuceneDatabase.java === --- SRWLuceneDatabase.java (revision 36) +++ SRWLuceneDatabase.java (working copy) @@ -312,7 +312,7 @@ public void init(String dbname, String srwHome, String dbHome, - String dbPropertiesFileName, Properties dbProperties) { + String dbPropertiesFileName, Properties dbProperties, HttpServletRequest request) { if(log.isDebugEnabled())log.debug(entering SRWLuceneDatabase.init, dbname=+dbname); super.initDB(dbname, srwHome, dbHome, dbPropertiesFileName, dbProperties); System.setProperty(dspace.configuration, dbHome+config/dspace.cfg); 2009/10/3 Mr Havercamp mrhaverc...@gmail.com: Thanks for responding. I exported trunk HEAD from both subversion repositories. Am I exporting from the right location? Should I be exporting from a branch perhaps? Would you like me to report any issues on the googlecode issue tracker or is here okay? Cheers Hayden LeVan,Ralph wrote: Sorry for the tardy response! It looks to me like you have the SRWDspaceLucene jar out of synch with the SRW jar. Have you switched to the 1.5.1 jar? There is a new SRW jar to go with that. Ralph -Original Message- From: Mr Havercamp [mailto:mrhaverc...@gmail.com] Sent: Friday, September 25, 2009 3:36 PM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] SRWU Setup failing Hi I am attempting to set up SRW/U for a second time, and, while I am able to get the test working, I have been completely unsuccessful this time round in getting it to work with DSpace. I continue to get the following error, which I thought was related to a missing axis jar file but I've installed and configured it and still I get nowhere; java.lang.AbstractMethodError: ORG.oclc.os.SRW.SRWDatabase.init(Ljava/lang/String;Ljava/lang/String;Lja va/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljavax/servlet/ht tp/HttpServletRequest;)V ORG.oclc.os.SRW.SRWDatabase.createDB(SRWDatabase.java:327) ORG.oclc.os.SRW.SRWDatabase.getDB(SRWDatabase.java:1000) ORG.oclc.os.SRW.SRWServletInfo.handleExplain(SRWServletInfo.java:228) ORG.oclc.os.SRW.SRWServlet.doGet(SRWServlet.java:320) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j ava:327) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) My SRWServer.props configure looks like the following (everything else is commented out); default.database=DSpace resultSetIdleTime=300 makeIndex.html=true db.DSpace.class=ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase db.DSpace.home=/home/dspace/i/testing/ db.DSpace.configuration=config/DSpace.SRWDatabase.props The DSpace.SRWDatabase.props file is in my DSpace instance's config directory. Could I be missing something? Any help much appreciated. Cheers Hayden -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net
Re: [Dspace-tech] adding a cover page to a PDF file
Hi Eija, We had implemented a cover page function for DSpace. You can see a working sample at http://barrel.ih.otaru-uc.ac.jp/bitstream/10252/1213/1/BHMK33_3.pdf We make cover pages in media-filter using iText library and merge it on the fly in BitstreamServlet.java. Keiji Suzuki Ebetsu, Japan 2009/5/28 Eija Airio airio.e...@gmail.com: Hi, we are spent some hours for developing a new feature for DSpace: adding cover pages for PDF files. The idea is to create the cover page on the fly, based on the metadata of the bitstream. We have edited the BitstreamReader.java. We have added the cover page insertion before the original bitstream.retrieve() in the following way: // Success, bitstream found and the user has access to read it. // Store these for later retreval: // if configured, and if this is a pdf, add the cover page if (ConfigurationManager. getProperty(dspace.covering).equals(true)) if (bitstream.getFormat().getMIMEType().equals(application/pdf) bitstream.getSize() 0) { this.bitstreamInputStream = addCoverPage(bitstream.retrieve(),item); } else this.bitstreamInputStream = bitstream.retrieve(); The addCoverPage method creates the cover page and merges it with the original bitstream. This solution seems to work but we have problems with creation/merging of PDF files. We have tried PDFBox, but it's quite clumsy: you just can add some text on the page, no formatting is possible. Our next trial was FPDF/FPDI. It works but is not a very neat solution. Has anyone a working solution for the cover page problem? Are there any plans to include this in tfuture DSpace implementations? One step further: appearance (logo, licence text) of the cover page should depend on the owning collection of the bitstream/item.This could be implemented by 1) searching the owning collection of the bitstream/item from the database, 2) inserting information corresponding each collection in the configuration file of DSpace. Is this a feature worth of developing? Best regards, Eija -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Translation to Submit Form is still not applied
Hi Felipe, As Claudia said, you'll need to create a input-forms_es.xml. But you won't neet to change any JSP file. Keiji Suzuki Ebetsu, Japan 2009/2/24 Claudia Jürgen claudia.juer...@ub.uni-dortmund.de: Hi Felipe, yes you'll need an input-forms_es.xml. If you work with different forms for different collection and quite regularly change the form-map best put this in an extra file and just include in the input-forms.xml and input-forms_LOCALE.xml. This avoids having to change both forms each time a mapping changes, e.g. input-forms.xml ?xml version=1.0 encoding='iso-8859-1' ? !DOCTYPE input-forms SYSTEM input-forms.dtd [ !ENTITY map SYSTEM input-form-elements/form-map.xml ] input-forms map; ... /input-forms Hope that helps Claudia Jürgen felipe Melero schrieb: Hi Keiji, I'm facing the problem of Customizable Submission Interface but applied to spanish language and I have some doubts I'd like to ask you. Did you create an input_forms.xml for you language? means, if I want to have the translation in spanish, should I create an input_forms_es.xml? Should I change something in the JSPs? Thanks in advance, Felipe I have succeeded to make input_form in JSPUI to i18n with the attached patches. I hope it helps you. Thank you. Keiji Suzuki [EMAIL PROTECTED] 2008/7/9 Claudia Jürgen [EMAIL PROTECTED]: Hi Robert, I did not investigate the changes along with the Customizable Submission Interface (CSS) closely, I'll take a look as soon as I find some time. Claudia Robert Roggenbuck schrieb: Oops... so, is it a matter of reformulating CSS or hacking Java / JSP? Is it a big thing to do? Will this be fixed in 1.5.1? Greetings Robert Claudia Jürgen schrieb: Hi all, the introduction of CSS removed the i18n of the submission, so at the moment the input-form is not selected based on your language settings. cheers Claudia Robert Roggenbuck schrieb: Hi Mikel, I did not solved the problem complete, but I had some success: 1. My 'ant init_configs' does not copy all files in the main directory of DSpace. I must copy the input-forms*.xml manually. 2. To get the right forms selected You have to mention them in the workflow configuration item-submission.xml . Now my modified input form is used - but still only the English version :-( Sorry for no further help - until now. Did You succeed in the meantime? Greetings Robert PS: In my case it's DSpace 1.5 and jspu too. --- Mikel Nin schrieb: Hi Robert, I'm having the same problem with the Spanish version of input-forms.xml. Although I have a Spanish version of input-forms.xml (input-forms_eu.xml) and default.license (default_es.license), both of them still continue in English. Did you managed to make it run properly? Greetings Mikel - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech Index: dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java === --- dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java (revision 169) +++ dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java (revision 170) @@ -43,6 +43,7 @@ import java.sql.SQLException; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -63,6 +64,7 @@ import org.dspace.content.Item; import org.dspace.content.MetadataField; import org.dspace.core.Context; +import org.dspace.core.I18nUtil; import org.dspace.submit.AbstractProcessingStep; /** @@ -88,8 +90,11 @@ private static Logger log = Logger.getLogger(DescribeStep.class); /** hash of all submission forms details */ - private static DCInputsReader inputsReader; + private static DCInputsReader inputsReader = null; + /** locale */ + private static Locale langForm = null; + /*** * STATUS / ERROR FLAGS (returned by doProcessing() if an error occurs or * additional user interaction may be required) @@ -346,9 +351,30 @@ } /** + * @param context + * The current context * * @return the current DCInputsReader */ + public static DCInputsReader getInputsReader(Context context) throws ServletException + { + Locale
Re: [Dspace-tech] switching locales
Hi Karen, I have succeeded to add it to manakin with the following patches. I am using Kuburick theme. Hope this helps you. Keiji Suzuki Ebetsu, Japan == from this = --- /home/dspace/dspace-1.5.1-source/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/DSpaceLocaleAction.java 2008-09-26 12:43:10.0 +0900 +++ DSpaceLocaleAction.java 2008-10-17 21:58:08.0 +0900 @@ -48,6 +48,8 @@ import org.apache.cocoon.i18n.I18nUtils.LocaleValidator; import org.dspace.core.ConfigurationManager; import org.dspace.core.I18nUtil; +import org.dspace.core.Context; +import org.dspace.app.xmlui.utils.ContextUtil; import java.util.ArrayList; import java.util.HashMap; @@ -126,10 +128,13 @@ locale-attribute, localeStr, false, - false, + true, false, false); + Context context = ContextUtil.obtainContext(objectModel); + context.setCurrentLocale(locale); + // Set up a map for sitemap parameters Map map = new HashMap(); map.put(language, locale.getLanguage()); --- /home/dspace/dspace-1.5.1-source/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/Navigation.java 2008-09-26 12:43:08.0 +0900 +++ Navigation.java 2008-10-17 15:14:56.0 +0900 @@ -44,6 +44,7 @@ import java.sql.SQLException; import java.util.HashMap; import java.util.Map; +import java.util.Locale; import org.apache.cocoon.caching.CacheableProcessingComponent; import org.apache.cocoon.environment.ObjectModelHelper; @@ -67,6 +68,7 @@ import org.dspace.content.DSpaceObject; import org.dspace.content.Item; import org.dspace.core.ConfigurationManager; +import org.dspace.core.I18nUtil; import org.xml.sax.SAXException; /** @@ -220,6 +222,13 @@ pageMeta.addMetadata(page,contactURL).addContent(contextPath + /contact); pageMeta.addMetadata(page,feedbackURL).addContent(contextPath + /feedback); +Locale[] locales = I18nUtil.getSupportedLocales(); +for (int i=0; i locales.length; i++) +{ +pageMeta.addMetadata(page, supportedLocale).addContent(locales[i].getLanguage()); + } + pageMeta.addMetadata(page,currentLocale).addContent(context.getCurrentLocale().getLanguage()); + DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if (dso != null) { --- /home/dspace/dspace-1.5.1-source/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Kubrick/Kubrick.xsl 2008-09-26 12:43:12.0 +0900 +++ Kubrick.xsl 2008-10-17 21:49:21.0 +0900 @@ -142,6 +142,24 @@ -- xsl:template match=dri:options div id=sidebar + + h3 id=ds-language-selector class=ds-language-selectori18n:textxmlui.general.language/i18n:text/h3 + +form method=get name=repost action= style=display: inline; + input type =hidden name =locale-attribute/ + select name=lang id=tlang onchange=javascript:document.forms['repost']['locale-attribute'].value=this.value;document.repost.submit(); + xsl:for-each select=/dri:document/dri:meta/dri:pageMeta/dri:[EMAIL PROTECTED]'page'[EMAIL PROTECTED]'supportedLocale'] +option + xsl:attribute name=valuexsl:value-of select=.//xsl:attribute + xsl:if test=.=/dri:document/dri:meta/dri:pageMeta/dri:[EMAIL PROTECTED]'page'[EMAIL PROTECTED]'currentLocale'] +xsl:attribute name=selectedselected/xsl:attribute + /xsl:if + i18n:textxsl:value-of select=concat('xmlui.general.language.', .)//i18n:text +/option + /xsl:for-each + /select +/form + h3 id=ds-search-option-head class=ds-option-set-headi18n:textxmlui.dri2xhtml.structural.search/i18n:text/h3 div id=ds-search-option class=ds-option-set !-- The form, complete with a text box and a button, all built from attributes referenced === 2008/10/16 Janssens Karen [EMAIL PROTECTED]: Hi all We want our Manakin (on DSpace 1.5.1) to support tw locales: english and dutch. Manakin selects the locale depending on the brwoser settings. This will not always be the one preferred by the end user (eg in a library different users are using the same pc). Has anyone tried (and succeeded) to add a 'switch' to manakin? Eg if you're in the ducht interface, a link 'English' brings you to the english one and vice versa. Or something similar... Thanks! Karen -- Karen Janssens Universiteit Antwerpen Anet - Bibliotheekautomatisering Bibliotheek Stadscampus Prinsstraat 9 B-2000 Antwerpen Belgium Tel+32 3 220.49.71 Email [EMAIL
Re: [Dspace-tech] Translation to Submit Form is still not applied
Hi Robert, I have succeeded to make input_form in JSPUI to i18n with the attached patches. I hope it helps you. Thank you. Keiji Suzuki [EMAIL PROTECTED] 2008/7/9 Claudia Jürgen [EMAIL PROTECTED]: Hi Robert, I did not investigate the changes along with the Customizable Submission Interface (CSS) closely, I'll take a look as soon as I find some time. Claudia Robert Roggenbuck schrieb: Oops... so, is it a matter of reformulating CSS or hacking Java / JSP? Is it a big thing to do? Will this be fixed in 1.5.1? Greetings Robert Claudia Jürgen schrieb: Hi all, the introduction of CSS removed the i18n of the submission, so at the moment the input-form is not selected based on your language settings. cheers Claudia Robert Roggenbuck schrieb: Hi Mikel, I did not solved the problem complete, but I had some success: 1. My 'ant init_configs' does not copy all files in the main directory of DSpace. I must copy the input-forms*.xml manually. 2. To get the right forms selected You have to mention them in the workflow configuration item-submission.xml . Now my modified input form is used - but still only the English version :-( Sorry for no further help - until now. Did You succeed in the meantime? Greetings Robert PS: In my case it's DSpace 1.5 and jspu too. --- Mikel Nin schrieb: Hi Robert, I'm having the same problem with the Spanish version of input-forms.xml. Although I have a Spanish version of input-forms.xml (input-forms_eu.xml) and default.license (default_es.license), both of them still continue in English. Did you managed to make it run properly? Greetings Mikel - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech Index: dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java === --- dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java (revision 169) +++ dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java (revision 170) @@ -43,6 +43,7 @@ import java.sql.SQLException; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -63,6 +64,7 @@ import org.dspace.content.Item; import org.dspace.content.MetadataField; import org.dspace.core.Context; +import org.dspace.core.I18nUtil; import org.dspace.submit.AbstractProcessingStep; /** @@ -88,8 +90,11 @@ private static Logger log = Logger.getLogger(DescribeStep.class); /** hash of all submission forms details */ -private static DCInputsReader inputsReader; +private static DCInputsReader inputsReader = null; +/** locale */ +private static Locale langForm = null; + /*** * STATUS / ERROR FLAGS (returned by doProcessing() if an error occurs or * additional user interaction may be required) @@ -346,9 +351,30 @@ } /** + * @param context + * The current context * * @return the current DCInputsReader */ +public static DCInputsReader getInputsReader(Context context) throws ServletException +{ + Locale locale = context.getCurrentLocale(); + +// load inputsReader only the first time +if ((inputsReader == null) || (langForm == null) || !langForm.equals(locale)) +{ +// read configurable submissions forms data +inputsReader = new DCInputsReader(I18nUtil.getInputFormsFileName(locale)); + langForm = locale; +} + +return inputsReader; +} + +/** + * + * @return the current DCInputsReader + */ public static DCInputsReader getInputsReader() throws ServletException { // load inputsReader only the first time Index: dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/submit/step/JSPDescribeStep.java === --- dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/submit/step/JSPDescribeStep.java (revision 169) +++ dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/submit/step/JSPDescribeStep.java (revision 170) @@ -232,7 +232,7 @@ Collection c = subInfo.getSubmissionItem().getCollection(); // requires configurable form info per collection -request.setAttribute(submission.inputs,