[Dspace-tech] DS-505
Hi Is this still a planned fix? https://jira.duraspace.org/browse/DS-505 I attempted escaping the XML characters but that didn't help. It's not the HTML clean method that is the issue. I think it's the SAX parser invoking startElement on the nested HTML components of the text. No difference in using html link or xref, same result, it cuts off the text at the first <. Cheers Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] how can i check message translation via code
Hi, I want to check if a constructed org.dspace.app.xmlui.wing.Message actually has a translation in Java code. How would i go about this? This is for a change to the submission forms where i have been asked to provide different text for the buttons for each "Describe" form. I want to use configured messages for multiple pages in a step. To do this i did the following. In org.dspace.app.xmlui.aspect.submission.AbstractStep modified this method with a check for a message key ending with ".pageX" public void addSubmissionProgressList(Division div) throws WingException { //each entry in progress bar is placed under this "submit-progress" div List progress = div.addList("submit-progress", List.TYPE_PROGRESS); //get Map of progress bar information //key: entry # (i.e. step & page), //value: entry name key (i.e. display name) Map progBarInfo = this.submissionInfo.getProgressBarInfo(); //add each entry to progress bar for (Map.Entry progBarEntry : progBarInfo.entrySet()) { //Since we are using XML-UI, we need to prepend the heading key with "xmlui.Submission." String entryNameKey = "xmlui.Submission." + progBarEntry.getValue(); //the value of entryNum is current step & page //(e.g. 1.2 is page 2 of step 1) StepAndPage currentStepAndPage = new StepAndPage(progBarEntry.getKey()); //check if there is a configured message for this step and page if (currentStepAndPage.getPage() > 0 && progBarEntry.getValue().equals("submit.progressbar.describe")) { String pageSpecificKey = entryNameKey + ".page" + currentStepAndPage.getPage(); // here is where i need to make sure there is a translation for the calculated step and page key ?? if (message(pageSpecificKey) != null) { entryNameKey = pageSpecificKey; }} //add a button to progress bar for this step & page addJumpButton(progress, message(entryNameKey), currentStepAndPage); } } And additions in messages.xml Initial Questions Describe Describe Essentials Describe Non-Essentials Describe Org Specifics Upload Review Creative Commons CC License License Complete As you can see i have hard coded a check, what is preferable is if I can make sure that there is a message translation available, and use that as the bases for using a non-standard button label. Some sort of "canTranslate(message(pageSpecificKey)" which won't result in the text "un-translated" configured in the aspect xml file. Nothing in DSpaceI18NTransformer standsout as a possible checking function. Maybe I have been staring at this code for too long. On a side matter, is it possible to configure the editor review task's edit of the item metadata to use a different set of forms then the original submission? For our organisation, some metadata fields are only relevant to the editor's review of the item and aren't expected to be completed by the submitter? Thanks Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Harvesting schemaPrefix set to dim but ore is used
Hi, I have set up a harvest type collection where I specified the schema prefix to be "DSpace Intermediate Metadata" which sets the prefix to "dim". With this setting I expected all the oai calls to use the prefix "dim", but there using "ore". I have enabled dim in oaicat.properties (uncommented "Crosswalks.dim=org.dspace.app.oai.PluginCrosswalk") and dspace.cfg already defines the disseminator crosswalk ( org.dspace.content.crosswalk.DIMDisseminationCrosswalk = dim). Did I miss a configuration item? Should I have to comment out "Crosswalks.ore=org.dspace.app.oai.PluginCrosswalk" in oaicat.properties to force use of dim? Also we're migrating from an existing publication management system and to facilitate the migration I'm using the SimpleArchiveFormat and the DSpace import command line options. Some of our publications don't have a bitstream, and this is fine. As part of the SAF each item package contains a license file. When these items without bitstreams are harvested, the license file appears as the bitstream. Why is this? Should I have not provided the license file as part of the SAF item package? When items with bitstreams are harvested, the license file is not listed as a bitstream. Thanks Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] disabling item submission's forced file upload
Thanks. -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: Wednesday, 21 November 2012 5:03 PM To: Kevin Gunn Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] disabling item submission's forced file upload Hi Kevin, no code change is necessary. Just set webui.submit.upload.required = true in dspace.cfg. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] disabling item submission's forced file upload
Hi, A requirement for my organisation is to not force submitters to upload a file/bitstream. I have not been able to find any configuration for this feature. I tried modifying org.dspace.app.xmlui.aspect.submission.submit.UploadStep's setup method with the following, but the result of this is you still can't navigate away from the file upload form, and there's no message explaining why. ... //file/bitstream is not mandatory for my organisation file.setRequired(false); /* file.setRequired(); //if no files found error was thrown by processing class, display it! if (this.errorFlag == org.dspace.submit.step.UploadStep.STATUS_NO_FILES_ERROR) { file.addError(T_file_error); } */ ... Can anyone provide information on this forced file upload feature? Cheers Kevin Kevin Gunn Database Programmer and Instrument Technician Australian Institute of Marine Science Cape Ferguson Townsville Qld Aust. 4810 +61 7 47534305 k.g...@aims.gov.au<mailto:j.luetchf...@aims.gov.au> www.aims.gov.au<http://www.aims.gov.au/> -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] oracle db script issues.
Hi, Just reporting some issues with the V1.8.2 scripts for oracle. 1- The script attempts to create index's on the eperson table, these fail as the fields are already indexed by have the UNIQUE constraint put on them in the CREATE TABLE statement. --- -- EPerson table --- CREATE TABLE EPerson ( eperson_id INTEGER PRIMARY KEY, email VARCHAR2(64) UNIQUE, passwordVARCHAR2(64), firstname VARCHAR2(64), lastnameVARCHAR2(64), can_log_in NUMBER(1), require_certificate NUMBER(1), self_registered NUMBER(1), last_active TIMESTAMP, sub_frequency INTEGER, phone VARCHAR2(32), netid VARCHAR2(64) UNIQUE, languageVARCHAR2(64) ); -- index by email CREATE INDEX eperson_email_idx ON EPerson(email); -- index by netid CREATE INDEX eperson_netid_idx ON EPerson(netid); Results in the following errors. table EPERSON created. Error starting at line 143 in command: CREATE INDEX eperson_email_idx ON EPerson(email) Error at Command Line:143 Column:42 Error report: SQL Error: ORA-01408: such column list already indexed 01408. 0 - "such column list already indexed" *Cause: *Action: Error starting at line 146 in command: CREATE INDEX eperson_netid_idx ON EPerson(netid) Error at Command Line:146 Column:42 Error report: SQL Error: ORA-01408: such column list already indexed 01408. 0 - "such column list already indexed" *Cause: *Action: 2- The clean up script is missing a DROP statement for the SEQUENCE checksum_history_seq. Cheers Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] dspace-discovery missing from GIT clone of V3.0rc2
Hi, I resolved by not using Intellij GitHub plug-in to do the clone, but instead used the Windows GitHub client. The problem was in the spring configuration where members of the bean DiscoveryConfiguration were previously SideBarFacetConfiguration typed but now use DiscoverySearchFilterFacet. Is this an issue? The issue still appears the spring config file but seems to build anyway, haven't tracked it down any further. Apologies for the redundant emails. Cheers Kevin From: Kevin Gunn Sent: Monday, 22 October 2012 1:43 PM To: 'dspace-tech@lists.sourceforge.net' Subject: RE: dspace-discovery missing from GIT clone of V3.0rc2 Hi, Upon further investigation I can see this class is now in dspace-api. Still not sure why the test failed out of the box. Does anyone else experience this test case failure on maven package of the dspace-api? Cheers Kevin From: Kevin Gunn Sent: Monday, 22 October 2012 1:17 PM To: 'dspace-tech@lists.sourceforge.net' Subject: dspace-discovery missing from GIT clone of V3.0rc2 Hi, I have just cloned DSpace tag 3.0rc1 to test and can't get the build to happen. It's failing on the dspace-api build on test cases. Specifically that the defaultConfiguration class used in the spring configuration is missing. I then noticed that I didn't have a dspace-discovery module anymore, as compared to V1.8.2, and it doesn't seem to be declared as a dependency anymore. java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined in file [C:\_work\GitHub\DSpace\dspace-api\target\classes\spring\spring-dspace-addon-discovery-configuration-services.xml]: Cannot resolve reference to bean 'defaultConfiguration' while setting bean property 'map' with key [TypedStringValue: value [default], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultConfiguration' defined in file [C:\_work\GitHub\DSpace\dspace-api\target\classes\spring\spring-dspace-addon-discovery-configuration-services.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.List' for property 'sidebarFacets'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.dspace.discovery.configuration.SidebarFacetConfiguration] to required type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for property 'sidebarFacets[0]': no matching editors or conversion strategy found at org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:224) I'm new to GIT and GITHUB so maybe I did something wrong on the clone/checkout from github?? Should I be seeing the dspace-discovery module in a tag 3.0rc2 checkout? Using Intellij and its GIT/GITHUB plug-in, but just browsing GITHUB doesn't show dspace-discovery either. Cheers Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] dspace-discovery missing from GIT clone of V3.0rc2
Hi, Upon further investigation I can see this class is now in dspace-api. Still not sure why the test failed out of the box. Does anyone else experience this test case failure on maven package of the dspace-api? Cheers Kevin From: Kevin Gunn Sent: Monday, 22 October 2012 1:17 PM To: 'dspace-tech@lists.sourceforge.net' Subject: dspace-discovery missing from GIT clone of V3.0rc2 Hi, I have just cloned DSpace tag 3.0rc1 to test and can't get the build to happen. It's failing on the dspace-api build on test cases. Specifically that the defaultConfiguration class used in the spring configuration is missing. I then noticed that I didn't have a dspace-discovery module anymore, as compared to V1.8.2, and it doesn't seem to be declared as a dependency anymore. java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined in file [C:\_work\GitHub\DSpace\dspace-api\target\classes\spring\spring-dspace-addon-discovery-configuration-services.xml]: Cannot resolve reference to bean 'defaultConfiguration' while setting bean property 'map' with key [TypedStringValue: value [default], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultConfiguration' defined in file [C:\_work\GitHub\DSpace\dspace-api\target\classes\spring\spring-dspace-addon-discovery-configuration-services.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.List' for property 'sidebarFacets'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.dspace.discovery.configuration.SidebarFacetConfiguration] to required type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for property 'sidebarFacets[0]': no matching editors or conversion strategy found at org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:224) I'm new to GIT and GITHUB so maybe I did something wrong on the clone/checkout from github?? Should I be seeing the dspace-discovery module in a tag 3.0rc2 checkout? Using Intellij and its GIT/GITHUB plug-in, but just browsing GITHUB doesn't show dspace-discovery either. Cheers Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] dspace-discovery missing from GIT clone of V3.0rc2
Hi, I have just cloned DSpace tag 3.0rc1 to test and can't get the build to happen. It's failing on the dspace-api build on test cases. Specifically that the defaultConfiguration class used in the spring configuration is missing. I then noticed that I didn't have a dspace-discovery module anymore, as compared to V1.8.2, and it doesn't seem to be declared as a dependency anymore. java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined in file [C:\_work\GitHub\DSpace\dspace-api\target\classes\spring\spring-dspace-addon-discovery-configuration-services.xml]: Cannot resolve reference to bean 'defaultConfiguration' while setting bean property 'map' with key [TypedStringValue: value [default], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultConfiguration' defined in file [C:\_work\GitHub\DSpace\dspace-api\target\classes\spring\spring-dspace-addon-discovery-configuration-services.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.List' for property 'sidebarFacets'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.dspace.discovery.configuration.SidebarFacetConfiguration] to required type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for property 'sidebarFacets[0]': no matching editors or conversion strategy found at org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:224) I'm new to GIT and GITHUB so maybe I did something wrong on the clone/checkout from github?? Should I be seeing the dspace-discovery module in a tag 3.0rc2 checkout? Using Intellij and its GIT/GITHUB plug-in, but just browsing GITHUB doesn't show dspace-discovery either. Cheers Kevin -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] XMLUI item submission configuration input-forms.xml
Hi, I have found that the configuration setup in input-forms.xml is over-ridden for item submission pages. The method DCInputSet.doField() explicitly disables including the citation, publisher, and date issued fields unless I select that it has been published before. Why is this prevented? Are these metadata fields populated during another phase in an item's workflow/processing? The main field I wanted to include was the citation field, I can understand why the others would be left out for non-published items, but I'm not sure when these would be set other than by a item metadata edit at the time the item was decided to be published. Changing this behaviour requires code changes and I'd prefer not to change code if there's a better way of dealing with allowing citation into the submission process. Cheers Gunna -- The information contained within this transmission is for the use of the intended recipient only and may contain confidential and/or legally privileged material and/or material the subject of copyright and/or personal information and/or sensitive information that is subject to the Privacy Act 1988. Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please notify the AIMS Privacy Officer on (07) 4753 and delete all copies of this transmission together with any attachments. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech