[Dspace-tech] Dspace Replace/Update Item with SWORDv2
Hi, I need to update a DSpace Item (already deposited) knowing only your handle, and I don't have access to dspace server. So I googled and saw that the replace was possible using SWORDv2: The client can replace the existing content of a resource by performing an HTTP PUT of some new binary content to the*EM-IRI*, with the following requirements: * The client SHOULD supply aContent-Typeheader * The client MUST supply aContent-Dispositionheader with afilenameparameter (note that this requires the filename be expressed in ASCII). * The client SHOULD supply aContent-MD5header with the MD5 checksum hex encoded for the binary content * The client SHOULD supply aPackagingheader [SWORD001 http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#sword001] providing the IRI (or other allowed) of the packaging format used * The client MAY provide anOn-Behalf-Ofheader [SWORD001 http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#sword001] * The client MAY provide aMetadata Relevantheader [SWORD001 http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#sword001] with the valuetrueorfalse. This should be set totrueif the server should consider the file a potential source of metadata extraction, orfalseif the server should not attempt to extract any metadata from the deposit. But to do that I need to know the Internal ID of Dspace Item (or not?). EM-IRI is http://.../swordv2/edit-media/INTERNAL ID? ( https://github.com/DSpace/DSpace/blob/master/dspace-swordv2/src/main/java/org/dspace/sword2/SwordUrlManager.java ) Is there any way to know the internal ID from the handle? Or there are other way to do the update/replacement only knowing the handle? Version of DSpace - 3.2 ( But I can replace the swordv2 package with the package of DSpace 4.x ) BestRegards, André Santos -- 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] HELP PLEASE
Es un message genérico de error. Debes que verificar los LOGs del sistema para conocer la causa del problema. https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error Saludos 2013/9/25 UNIVIRTUAL UNISARC univirt...@unisarc.edu.co Buenos dias Todo estaba bien pero en los ultimos dias no se a podido crear ITEM ya que genera el siguiente mensaje: ERROR INTERNO DE SISTEMA El sistema ha experimentado un error interno. Por favor, vuelva a intentarlo de nuevo, y si el problema persiste, por favor, contactese con nosotros para poder arreglarlo. Alguna sugerencia? Cordial saludo, Willmar F. Alzate C. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/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 -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/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 change message.properties
Please refer to: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette *Specify your DSpace version number, interface (JSPUI or XMLUI), XMLUI theme used and whether you have Discovery turned on. In case of issues with building, specify versions of Java JDK, Maven and Ant.* * * And then, please read this: https://wiki.duraspace.org/display/DSDOC3x/XMLUI+Configuration+and+Customization#XMLUIConfigurationandCustomization-MultilingualSupport André * * 2013/5/9 jayachandra B jayachandra1...@gmail.com Hi, I am using dspace 3.1 version, How to change default Message.properties to our own Message.properties -- Regards Jayachandra -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ 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. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ 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] Language switch for xmlui and some basic i18n stuff
Dear all, Has anyone had success in implementing this patch to DS3.1 xmlui mirage? The page supportedLocale metadata does not appear in the DRI; even if I force something like pageMeta.addMetadata(page, supportedLocale).addContent(de); it does not appear. Thank you and regards André Assada 2011/12/8 Claudia Jürgen claudia.juer...@ub.tu-dortmund.de Hello Keiji, the typo is fixed. Claudia Am 08.12.2011 01:54, schrieb SUZUKI Keiji: 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 -- Claudia Juergen Universitaetsbibliothek Dortmund Eldorado 0231/755-4043 https://eldorado.tu-dortmund.de/ -- 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 -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ 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] Using Maven Overlays to customize Submission Process
Dear all, Just to clarify things about the project structure, could you please tell me what's the best way to modifying core files: If I want to modify things in the [dspace-src]/dspace-api/src/main/java/org/dspace then I can put my new files in the [dspace-src]/dspace/modules/additions/src/main/java/org/dspace that will orverlay the old files. But if I want to modify the [dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/FeedbackForm.java (which is the file that I'm actually interested in modifying) then the best way to do it is just modify it directly in that directory. Is that correct? Thank you and regards André N. Assada 2012/6/12 Mark Diggory mdigg...@atmire.com On Tue, Jun 12, 2012 at 6:38 AM, helix84 heli...@centrum.sk wrote: On Tue, Jun 12, 2012 at 3:19 PM, César Sabater csaba...@unr.edu.ar wrote: I was trying to create a new item-submission step but a concern came to me about were should I place the API processing class of the step. Since there's no folder inside [ds-src]/dspace/modules that corresponds to dspace-api changes. Should I create a class in [ds-src]/dspace-api/src/main/java/org/dspace/submit/step and recompile dspace entirely? I think it should go to [dspace-src]/dspace/modules/additions/ but don't take my word for it, you'll have to try it. This will be the new place to put such classes for dspace 3.0 for code that should be associated with dspace-api (submission step) https://github.com/DSpace/DSpace/tree/master/dspace/modules/additions/src/main/java for code that should be associated with the dspace-xmlui (view) you'll need to add the /java directory on the end https://github.com/DSpace/DSpace/tree/master/dspace/modules/xmlui/src/main/java for code that should be associated with the dspace-jspui (view) you'll need to add the /java directory on the end https://github.com/DSpace/DSpace/tree/master/dspace/modules/jspui/src Cheers, Mark -- [image: @mire Inc.] *Mark Diggory *(Schedule a Meeting https://tungle.me/markdiggory) *2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010* *Esperantolaan 4, Heverlee 3001, Belgium* http://www.atmire.com -- 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 -- Own the Future-Intelreg; Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___ 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] Database Pool Error: Cannot get a connection, pool error. Timeout waiting for idle object
Dear all, Have Peter's code solved the problem, could anyone using DSpace XMLUI 1.7.1 + Discovery give an update? Also, I noticed that after this Cannot get a connection, java starts to consume 100% of processor and the user interface stops responding, has anyone faced the same problem? Regards André N. Assada 2012/7/19 helix84 heli...@centrum.sk On Thu, Jul 19, 2012 at 6:08 AM, Benjamin Ryan benjamin.r...@manchester.ac.uk wrote: Helix, Do you have any details of XOAI please? Sure, it's a new implementation of the OAI webapp from scratch by Lyncode, also known as OAI 2.0. In fact xoai-common is the underlying generic OAI library (like OAICat was for the old webapp) and OAI 2.0 is the data provider (glue) for DSpace. There's code for 3.0 that replaces the old OAI module and an addon for 1.8 which you can install alongside as a separate webapp. wiki docs: https://wiki.duraspace.org/display/DSPACE/OAI+2.0 Jira issue: https://jira.duraspace.org/browse/DS-1202 Pull Request https://github.com/DSpace/DSpace/pull/37 Source code on GitHub (based on git master, i.e. 3.0) in branch dspace-with-xoai: https://github.com/lyncode/DSpace Source code packaged as addon for 1.8 + installation docs: http://www.lyncode.com/dspace/addons/xoai/XOAI.zip Any testing, comments and suggestions are welcome, you can use the Jira comments or mailing list. Regards, ~~helix84 -- 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ 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] Database Pool Error: Cannot get a connection, pool error. Timeout waiting for idle object
No problem, Helix, and thank you all a lot for all the info, it gave a good insight of the problem anyways. Regards, André N. Assada 2013/1/14 helix84 heli...@centrum.sk On Mon, Jan 14, 2013 at 12:26 PM, André andre.ass...@usp.br wrote: Have Peter's code solved the problem, could anyone using DSpace XMLUI 1.7.1 + Discovery give an update? BTW André, sorry, I didn't really answer your question because I didn't notice it pertained to the previous conversation. So no, I haven't verified whether Peter's code solved the problem, I'm using stock code in this respect. On Mon, Jan 14, 2013 at 2:01 PM, Hilton Gibson hilton.gib...@gmail.com wrote: Also here is a graph. Hilton, that's a wonderful graph exactly illustrating the problem (the spike in idle in transaction connections). I wish I had such monitoring set up :) But I wonder what the other spike is (idle transactions). Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ 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] instalacion del dspace 3
Hola, Yuly, Por favor siga las instrucciones del manual oficial: https://github.com/DSpace/DSpace/raw/master/dspace/docs/DSpace-Manual.pdf https://wiki.duraspace.org/display/DSDOC3x/Installation https://wiki.duraspace.org/display/DSPACE/Installation La instalacción es similar al 1.8. La diferencia básicamente esta en el archivo build.properties y en algunos parametros que se pueden utilizar cuando chamares la MVN/ANT En el wiki tanbién se menciona una lista de email en español, se tiene dificuldad en el Inglés: https://wiki.duraspace.org/display/DSPACE/DSpaceResources#DSpaceResources-Non-EnglishLists http://listserv.rediris.es/cgi-bin/wa?A0=GUDE Regards Andre 2013/1/3 Yuly Aguilar yuly_agui...@hotmail.com buen dia, alguien me puede ayudar a instalar el dspace 3 anteriormente instale el 1.8 trate de instalar el 3. pero veo que no es similar al 1.8 gracias atte yuly peru From: dspace-tech-requ...@lists.sourceforge.net Subject: DSpace-tech Digest, Vol 81, Issue 4 To: dspace-tech@lists.sourceforge.net Date: Thu, 3 Jan 2013 15:27:01 + Send DSpace-tech mailing list submissions to dspace-tech@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dspace-tech or, via email, send a message with subject or body 'help' to dspace-tech-requ...@lists.sourceforge.net You can reach the person managing the list at dspace-tech-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of DSpace-tech digest... Today's Topics: 1. Re: DSpace as an authority control for authors (helix84) 2. Re: How to create new metadata field and how to insert metadata entry fir every record (helix84) 3. DSpace Internal System Error (Ramakant Navghare) -- Message: 1 Date: Thu, 3 Jan 2013 15:57:28 +0100 From: helix84 heli...@centrum.sk Subject: Re: [Dspace-tech] DSpace as an authority control for authors To: Nemiz, Elvi esne...@seafdec.org.ph Cc: dspace-tech@lists.sourceforge.net Message-ID: CAGdvKqh8afncusCGpnWrhyGxzayYDrUQQ9qzVKkv8SNhz=n...@mail.gmail.com Content-Type: text/plain; charset=utf-8 On Fri, Dec 28, 2012 at 7:40 AM, Nemiz, Elvi esne...@seafdec.org.ph wrote: Previously I used LCName authority plugin to lookup and to make the authors authority-controlled. I edited some authority keys since it shows up in sidebar facets and browse by authors pages. If I don't want to use LCName plugin anymore, and instead want to lookup to existing authors that have already an authority key, how can I achieve this? Did anybody somehow modified the existing SampleAuthority plugin to get it to lookup existing values from the DSpace database? Would it still be possible if I'm using SolrBrowseDAO in my Browse Configuration instead of the default? I'm using dspace 3.0, xmlui with discovery enabled. Thanks in advance. Hi Elvi, you could do this: SELECT * FROM metadatavalueWHERE authority IS NOT NULL or if you want to leave out duplicate authors, do this: SELECT DISTINCT authority, confidence, text_value FROM metadatavalueWHERE authority IS NOT NULL Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- next part -- An HTML attachment was scrubbed... -- Message: 2 Date: Thu, 3 Jan 2013 16:11:33 +0100 From: helix84 heli...@centrum.sk Subject: Re: [Dspace-tech] How to create new metadata field and how to insert metadata entry fir every record To: LIBRIS Reference (LIBRIS) lib...@nie.edu.sg Cc: dspace-tech@lists.sourceforge.net dspace-tech@lists.sourceforge.net Message-ID: CAGdvKqjYP3f2RADPAO=v-4-oXBRR4ZJO=kuy_u5uxzaqeac...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi Sherman, if you have Discovery enabled and you want to make a query which will select all items that have a fulltext (i.e. a bistream in the TEXT bundle), you can just use this Solr query in the DSpace search box: fulltext:* This will also correctly restrict search results to the current community/collection. If this is not the usage you have in mind, you can do this: On Wed, Dec 26, 2012 at 7:41 AM, LIBRIS Reference (LIBRIS) lib...@nie.edu.sg wrote: Q1. We need to create to a new Dublin Core (DC) metadata field, dc.description.fulltext. How do we go about it? Just use the administrator's interface to add the field (Registries - Metadata). Q2. We need to insert a metadata entry, dc.description.fulltext=Yes for every record in a community (say, DB ID=3) How do we go about it? 1) back up your database 2) look up the metadata field name (element and qualifier columns) in the metadatafieldregistry table and
Re: [Dspace-tech] Moving items between installations keeping handle
Dear helix, I've made some experiments in this period of time, and concluded that moving between two DSpace 1.7 (or 1.8) installations everything works fine in keeping the handle, but when I'm moving between two DSpace 1.6.3 or from one DS1.7 to a DS1.6 it does not work; in both cases the handles are not kept, even though I see a handle file in the exported directory and I supress the --migrate argument. Is there any known bug in DS1.6.2 importer related to not keeping the handle? Thank you and regards Andre 2012/8/27 helix84 heli...@centrum.sk On Mon, Aug 27, 2012 at 4:03 PM, André andre.ass...@usp.br wrote: when moving items between - for instance - a test and a production DSpace installation, one should export using the --migrate argument so that the (date.accessioned, date.available, date.issued, description.provenance, format.extent, format.mimetype and the identifier.uri) metadata will be removed to receive new data from the import. Hi André, the question is - do you actually care about the values of these metadata fields? If not, you can just take them with you to the other repository unchanged. You can use AIP to transfer the whole object along with the handle. You may want to take a look at the submission mode when restoring and using the -o ignoreHandle=false option: https://wiki.duraspace.org/display/DSDOC18/AIP+Backup+and+Restore#AIPBackupandRestore-Thedifferencebetween%22Submit%22and%22Restore%2FReplace%22modes The question then is what happens if you're copying the item over second time (i.e. if it already exists in the target repository from a previous import). Regards, ~~helix84 -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Moving items between installations keeping handle
Dear all, According to the wikis on https://wiki.duraspace.org/display/DSDOC18/Transferring+or+Copying+Content+Between+Repositories https://wiki.duraspace.org/display/DSDOC18/Importing+and+Exporting+Items+via+Simple+Archive+Format when moving items between - for instance - a test and a production DSpace installation, one should export using the --migrate argument so that the (date.accessioned, date.available, date.issued, description.provenance, format.extent, format.mimetype and the identifier.uri) metadata will be removed to receive new data from the import. But in our case we need to keep the handle, ie. we need the item's handle from the test installation to be the same as in the prodution installation, because in the dc.relation.ispartof metadata value we relate one item to another by their handles. My question therefore is if it is possible / what's the best way to move items between installations keeping their handles but removing the other metadata values such as date.accessioned etc. We have no registry in handle.net yet. Thanks in advance Regards Andre -- 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
[Dspace-tech] Maven - Error building Discovery (Provider Library?)
Dear all, I am trying to install DSpace 1.6.2 I am running SLES 11 SP1, Apache Maven 2.2.1, Sun JDK 1.6.0_33 Running mvn package I got a message informing that it could not retreive metadata from solrj SNAPSHOT (I don't know what it is) from maven.dspace.org. But this address does not exist. The error message: /* START ***/ [INFO] [INFO] Building DSpace Discovery :: Provider Library [INFO]task-segment: [package] [INFO] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] snapshot org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking for updates from maven.dspace.org-snapshot [WARNING] repository metadata for: 'snapshot org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not be retrieved from repository: maven.dspace.org-snapshot due to an error: Error transferring file: maven.dspace.org [INFO] Repository 'maven.dspace.org-snapshot' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.dspace.dependencies.solr -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.dspace.dependencies.solr -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT 2) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT -- 1 required artifact is missing. for artifact: org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT from the specified remote repositories: maven.dspace.org-snapshot (http://maven.dspace.org/snapshot), central (http://repo1.maven.org/maven2) /* END ***/ Sorry for I am a complete ignorant in MVN, so I don't really know what is this repository for. I find references for it in many of the pom.xml . I also tried to compile DSpace 1.8.2 and all went ok, without any error messages, so I am guessing this repository was taken down because it is not needed in the newer version. Anyway, then I followed the instructions and downloaded the .jar from http://repo1.maven.org/maven2/org/dspace/dependencies/solr/dspace-solr-solrj/1.4.0.1/ And called: mvn install:install-file -DgroupId=org.dspace.dependencies.solr -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/andre/dspace-solr-solrj-1.4.0.1.jar mvn install:install-file -DgroupId=org.dspace.discovery -DartifactId=discovery-solr-provider -Dversion=0.9.2-SNAPSHOT -Dpackaging=jar -Dfile=/home/andre/discovery-solr-provider-0.9.2.jar Received a BUILD SUCCESSFUL at the end of each call. But after this, calling mvn package still returns and error message. I can't understand what's missing, did the mvn install not compile correctly? Why or is there really a package from Solr still missing? The error message follows: /* START ***/ [INFO] [INFO] Building DSpace Discovery :: Modules [INFO]task-segment: [package] [INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [jar:test-jar {execution: default}] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] [INFO] Building DSpace Discovery :: Provider Library [INFO]task-segment: [package] [INFO] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] snapshot org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking for updates from maven.dspace.org-snapshot [WARNING] repository metadata for: 'snapshot org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not be retrieved from repository: maven.dspace.org-snapshot due to an error:
Re: [Dspace-tech] Maven - Error building Discovery (Provider Library?)
Dear TRUONG, Yes, of course, I do agree with you. It's simpler, easier, safer and has many bug fixes. But the problem is that I need to use a customized theme, which has some custom code that is only compatible with Discovery from DS1.6.2. Then I will try to check all the customization that was made and try to adapt it to DS1.8.2. Regards Andre 2012/7/4 revskill revskil...@gmail.com I think the simplest way is to use dspace 1.8.2 and Maven 3 to build. It's painless for sure. Good luck. 2012/7/4 André andre.ass...@usp.br Dear all, I am trying to install DSpace 1.6.2 I am running SLES 11 SP1, Apache Maven 2.2.1, Sun JDK 1.6.0_33 Running mvn package I got a message informing that it could not retreive metadata from solrj SNAPSHOT (I don't know what it is) from maven.dspace.org. But this address does not exist. The error message: /* START ***/ [INFO] [INFO] Building DSpace Discovery :: Provider Library [INFO]task-segment: [package] [INFO] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] snapshot org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking for updates from maven.dspace.org-snapshot [WARNING] repository metadata for: 'snapshot org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not be retrieved from repository: maven.dspace.org-snapshot due to an error: Error transferring file: maven.dspace.org [INFO] Repository 'maven.dspace.org-snapshot' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.dspace.dependencies.solr -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.dspace.dependencies.solr -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT 2) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT -- 1 required artifact is missing. for artifact: org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT from the specified remote repositories: maven.dspace.org-snapshot (http://maven.dspace.org/snapshot), central (http://repo1.maven.org/maven2) /* END ***/ Sorry for I am a complete ignorant in MVN, so I don't really know what is this repository for. I find references for it in many of the pom.xml . I also tried to compile DSpace 1.8.2 and all went ok, without any error messages, so I am guessing this repository was taken down because it is not needed in the newer version. Anyway, then I followed the instructions and downloaded the .jar from http://repo1.maven.org/maven2/org/dspace/dependencies/solr/dspace-solr-solrj/1.4.0.1/ And called: mvn install:install-file -DgroupId=org.dspace.dependencies.solr -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/andre/dspace-solr-solrj-1.4.0.1.jar mvn install:install-file -DgroupId=org.dspace.discovery -DartifactId=discovery-solr-provider -Dversion=0.9.2-SNAPSHOT -Dpackaging=jar -Dfile=/home/andre/discovery-solr-provider-0.9.2.jar Received a BUILD SUCCESSFUL at the end of each call. But after this, calling mvn package still returns and error message. I can't understand what's missing, did the mvn install not compile correctly? Why or is there really a package from Solr still missing? The error message follows: /* START ***/ [INFO] [INFO] Building DSpace Discovery :: Modules [INFO]task-segment: [package] [INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [jar:test-jar {execution: default}] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] [INFO
Re: [Dspace-tech] Java fatal error on dspace import
Hi Andrea, Jose and Mark. Thank you! I tried Jose suggestion, importing one by one, but the error seemed to be randomic. I switched to sun java 1.6, but at the same time I reset the dabatase (it was on our test installation), and the problem was gone. The problem could have been Java7 but could also have been the database, I should have tested them separatedly. But at least these messages could be a good tip for one who finds the same problem as me in the future. Thanks again André Assada Em 14 de outubro de 2011 17:15, Andrea Bollini boll...@cilea.it escreveu: Hi André, I noted that you use java 7 I have not direct experience with this but there are a lot of post in the web reporting issues using java 7 with lucene/solr. See for example: http://www.infoq.com/news/2011/08/java7-hotspot Hope this help, Andrea Il 14/10/2011 19:44, André ha scritto: Dear all, I'm trying to import 157 registries on dspace 1.6.2 by calling [dspace]/bin/dspace import --add --eperson=andre.ass...@usp.br--collection= 123456789/32 --source=/home/andre/xImpAleph/impTeste111014/xvi_fd --mapfile=./xvi_fd --workflow It starts the process ok, but int the middle I get the following error message: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7fea376dc440, pid=20001, tid=140644013197072 # # JRE version: 7.0-b147 # Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops) # Problematic frame: # J org.apache.lucene.index.DocumentsWriter$ThreadState$FieldData.invertField(Lorg/apache/lucene/document/Fieldable;Lorg/apache/lucene/analysis/Analyzer;I)V # # Core dump written. Default location: /dspace/bin/core or core.20001 (max size 1 kB). To ensure a full core dump, try ulimit -c unlimited before starting Java again # # An error report file with more information is saved as: # /dspace/bin/hs_err_pid20001.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # ./dspace: line 69: 20001 Aborted java $JAVA_OPTS -classpath $FULLPATH $LOG org.dspace.app.launcher.ScriptLauncher $@ If I retry to import, with the --resume option, it restarts very slowly, and in dspace.log I get the following message: 2011-10-14 14:01:26,342 ERROR org.dspace.search.DSIndexer @ Lock obtain timed out: SimpleFSLock@/dspace/search/write.lock org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/dspace/search/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:452) at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:781) at org.dspace.search.DSIndexer.writeDocument(DSIndexer.java:853) at org.dspace.search.DSIndexer.buildDocument(DSIndexer.java:1138) at org.dspace.search.DSIndexer.indexContent(DSIndexer.java:299) at org.dspace.search.DSIndexer.updateIndex(DSIndexer.java:584) at org.dspace.search.DSIndexer.main(DSIndexer.java:545) 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:601) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212) Searching the archive of this list, I found some people solved this by deleting the write.lock and afterwards force the reindexation by running ./dsrun org.dspace.search.DSIndexer -c This solves the slowdown problem but doesn't solve the import problem. I tried to stop tomcat before importing, to guarantee none was accessing the index at the same time, but this didn't solve the problem. I also set more free memory with JAVA_OPTS=-Xmx512m and also -Xmx1024m, but this also didn't do the trick. Has anyone had this problem? Could share any ideas? Thanks in advance Andre Assada -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.http://p.sf.net/sfu/splunk-d2d-oct ___ DSpace-tech mailing listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech -- Dott. Andrea Bollini boll...@cilea.it ph. +39 06 59292853 - mob. +39 348 8277525 - fax +39 06 5913770 CILEA - Consorzio Interuniversitariohttp://www.cilea.it/disclaimer
[Dspace-tech] Java fatal error on dspace import
Dear all, I'm trying to import 157 registries on dspace 1.6.2 by calling [dspace]/bin/dspace import --add --eperson=andre.ass...@usp.br--collection=123456789/32 --source=/home/andre/xImpAleph/impTeste111014/xvi_fd --mapfile=./xvi_fd --workflow It starts the process ok, but int the middle I get the following error message: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7fea376dc440, pid=20001, tid=140644013197072 # # JRE version: 7.0-b147 # Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops) # Problematic frame: # J org.apache.lucene.index.DocumentsWriter$ThreadState$FieldData.invertField(Lorg/apache/lucene/document/Fieldable;Lorg/apache/lucene/analysis/Analyzer;I)V # # Core dump written. Default location: /dspace/bin/core or core.20001 (max size 1 kB). To ensure a full core dump, try ulimit -c unlimited before starting Java again # # An error report file with more information is saved as: # /dspace/bin/hs_err_pid20001.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # ./dspace: line 69: 20001 Aborted java $JAVA_OPTS -classpath $FULLPATH $LOG org.dspace.app.launcher.ScriptLauncher $@ If I retry to import, with the --resume option, it restarts very slowly, and in dspace.log I get the following message: 2011-10-14 14:01:26,342 ERROR org.dspace.search.DSIndexer @ Lock obtain timed out: SimpleFSLock@/dspace/search/write.lock org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/dspace/search/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:452) at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:781) at org.dspace.search.DSIndexer.writeDocument(DSIndexer.java:853) at org.dspace.search.DSIndexer.buildDocument(DSIndexer.java:1138) at org.dspace.search.DSIndexer.indexContent(DSIndexer.java:299) at org.dspace.search.DSIndexer.updateIndex(DSIndexer.java:584) at org.dspace.search.DSIndexer.main(DSIndexer.java:545) 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:601) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212) Searching the archive of this list, I found some people solved this by deleting the write.lock and afterwards force the reindexation by running ./dsrun org.dspace.search.DSIndexer -c This solves the slowdown problem but doesn't solve the import problem. I tried to stop tomcat before importing, to guarantee none was accessing the index at the same time, but this didn't solve the problem. I also set more free memory with JAVA_OPTS=-Xmx512m and also -Xmx1024m, but this also didn't do the trick. Has anyone had this problem? Could share any ideas? Thanks in advance Andre Assada -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] remove the search
Dear Sisay, Are you using Discovery with your customized theme? The modification I sent before would work for Discovery. You should modify your theme's specific sitemap. If you're not sure where it is, you could do a grep 'FrontPageSearch' and verify the code of the files you find. Maybe this is the one: [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap Let me know if this works. Kind regards, Andre Assada 2011/7/5 Webshet, Sisay (ILRI) s.webs...@cgiar.org Hi Andre, ** ** ** ** I just did and make mvn -U clean package and ant update but doesn’t work.* *** Is there something I missed. ** ** Thanks sisay *From:* kesapo...@gmail.com [mailto:kesapo...@gmail.com] *On Behalf Of * André *Sent:* Monday, July 04, 2011 5:01 PM *To:* Webshet, Sisay (ILRI) *Cc:* dspace-tech@lists.sourceforge.net *Subject:* Re: [Dspace-tech] remove the search ** ** Dear Sisay, Don't know if this is the best way as you requested, but one solution would be to remove it from the sitemap for your theme. [dspace-src]/dspace-discovery/dspace-discovery-xmlui-api/src/main/resources/aspects/Discovery/sitemap.xmap You'll find: map:match pattern= map:transform type=FrontPageSearch/ Just comment this map:transform and it should work. Kind regards, Andre Assada 2011/7/4 Webshet, Sisay (ILRI) s.webs...@cgiar.org Hi there, I am creating a new xmlui theme based on the Mirage theme. I want to remove the search box that appears in the body of the main page (not the sidebar search box). What's the best way to do this? I looked at news-xmlui.xml and dri2html/*.xsl but I can't find where this search box is being pulled from. Sisay -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ** ** -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] remove the search
Dear Sisay, Don't know if this is the best way as you requested, but one solution would be to remove it from the sitemap for your theme. [dspace-src]/dspace-discovery/dspace-discovery-xmlui-api/src/main/resources/aspects/Discovery/sitemap.xmap You'll find: map:match pattern= map:transform type=FrontPageSearch/ Just comment this map:transform and it should work. Kind regards, Andre Assada 2011/7/4 Webshet, Sisay (ILRI) s.webs...@cgiar.org Hi there, I am creating a new xmlui theme based on the Mirage theme. I want to remove the search box that appears in the body of the main page (not the sidebar search box). What's the best way to do this? I looked at news-xmlui.xml and dri2html/*.xsl but I can't find where this search box is being pulled from. ** ** Sisay ** ** -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] How to create submission forms
Alexandre, are you working with xmlui? There are multiple possible causes for this problem. 1) Make sure your form-map in the input-forms.xml is really correct form-map name-map collection-handle=default form-name=traditional / name-map collection-handle=123456789/3form-name=foo / name-map collection-handle=123456789/7form-name=bar / [. . .] /form-map form-definitions !-- the standard form -- form name=traditional page number=1 field [ . . . ] /form !-- this form is associated with collection 123456789/3 -- form name=foo page number=1 field [ . . . ] /form !-- this form is associated with collection 123456789/7 -- form name=bar page number=1 field [ . . . ] /form [ . . . ] /form-definitions 2) Are you modifying the correct file? Check whether you're really modifying [dspace-src]/dspace/config/input-forms.xml Also check if the owner and permissions of the file are correct (owner must be the same as the other files in this directory, which usually is dspace; one could have made a copy of the file as root and renamed it but forgot to change the owner) 3) Is the build really happening without any errors/warnings? 4) Are you trying to work with locales (eg. input-forms_pt_BR.xml)? As far as I know, logic for locales isn't implemented for the inputforms yet. 5) We've faced some problems with Tomcat cache. Try stopping tomcat, cleaning the cache (depends on the version you're using; would probably be: /var/lib/tomcat6/work/Catalina/localhost/xmlui/cache-dir/). Start tomcat again, clear your browser cache and reload the page. Abraços André 2011/6/8 Alexandre de Mello Zart z...@pucrs.br Good morning / afternoon! We have to create different submission forms, according to the type of item to be uploaded (thesis, books, papers, articles, etc.). I already modified the “input-forms.xml”, with the definition of one of these forms, and associated it with one collection, as described in the manual. However, after rebuilding our Dspace (version 1.6.2), the form is still the default form, nothing was modified. Is there any other XML file to be modified, or some parameter to change? Thanks in advance. *Alexandre Zart* -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage
It works! Thank you, Peter. Just as you said, I added to /home/dspaceTeste/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap the tranformer map:transformer name=AboutPage src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage / and added under the pipeline map:match pattern=about map:transform type=AboutPage/ map:serialize type=xml / /map:match Thanks again to Peter, Mark and Hardy for the very valuable help and attention. Would it interest anyone if I wrote a concise guide of the modifications? Andre Assada 2011/5/24 Peter Dietz pdiet...@gmail.com Hi Andre, My patch might not have been perfect, especially if you're starting from 1.7. Check your [dspace]/config/xmlui.xconf, to see which aspects are enabled. https://github.com/DSpace/DSpace/blob/master/dspace/config/xmlui.xconf#L61 The patch I sent you patched the sitemap for the artifactBrowser artifact, which in 1.7 is now deprecated, and we use browseArtifacts, viewArtifacts, and searchArtifacts. So although you fixed the sitemap for artifactBrowser/sitemap.xmap, if xmlui.xconf doesn't use it, then the AboutPage doesn't get used. So.. make the same change to the artifactBrowser/sitemap.xmap to browseArtifact/sitemap.xmap. You won't need the customization to artifactBrowser/sitemap.xmap anymore. And I think you should be in business after that. Peter Dietz On Tue, May 24, 2011 at 1:47 PM, André andre.ass...@usp.br wrote: Thanks a lot, Hardy, Peter and Mark. I tried following Hardy's and Peter's directions and also studied the wikis/guides (thank you for the links, Hardy!) I still can't figure out how to make it work (page title still Page not found, no breadcrumbs and no contents showing) That's what I've got so far: 1) on [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser created an AboutPage.java file, very similar to the one by Peter Dietz, with the 2 methods: addPageMeta() to make the title and the breadcrumbs: pageMeta.addMetadata(title).addContent(T_title); pageMeta.addTrailLink(contextPath + /,T_dspace_home); pageMeta.addTrail().addContent(T_trail); addBody() Division division = body.addDivision(about-page, primary); division.setHead(T_head); division.addPara(T_para); [ the T_para would be the text content of the page, which should fit internationalization. ] 2) [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/navigation.xsl we create the link under xsl:template match=dri:options div id=ds-search-option class=ds-option-set a xsl:attribute name=href xsl:value-of select=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/ xsl:text/about/xsl:text /xsl:attribute !-- e aqui o label descritivo -- i18n:textxmlui.dri2xhtml.structural.static.about/i18n:text /abr/ 3) the messages_[LOCALE].xsl files, containing the text of the About page, translated in many languages 4) [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap -- under: map:components map:transformers added: map:transformer name=AboutPage src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage / -- and under: map:pipelines map:pipeline added: map:match pattern=about map:transform type=AboutPage/ map:serialize type=xml/ /map:match 5) [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/Mirage.xsl the override of xsl:template match=dri:body (How should I call for the contents? is that correct?) xsl:when test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about' div h1Simple ABOUT page/h1 xsl:apply-templates / /div /xsl:when After mvn, ant, tomcat stop, clear tomcat cache, tomcat start: doesn't work. What am I missing? Thank you again for your patience and help! Best regards, Andre Assada 2011/5/20 Pottinger, Hardy J. pottinge...@umsystem.edu Thanks, Peter, this looks like a cool way to do static pages, I'll have to give this a try. Would you consider doing a writeup on the process on the wiki? --Hardy Sent from my iPad On May 20, 2011, at 5:03 PM, Peter Dietz pdiet...@gmail.commailto: pdiet...@gmail.com wrote: Hi André, I'm guessing that your XSLT is good, you're able to modify a page, and get your changes to happen. However, if you are adding a new page that doesn't exist, you'll get a problem
Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage
Hi, Peter, I just editted the wiki, adding the info. I hope it will be useful for many. I also hope I didn't mess anything up, as I'm not familiar with Wiki conventions. https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial#Manakinthemetutorial-Addingstaticpages Best regards, Andre Assada 2011/5/25 Peter Dietz pdiet...@gmail.com Hi Andre, Congratulations, it shows that persistence pays off. Regarding a writeup, I think that many would find that helpful. The best place to put it would be in the Manakin theme tutorialhttps://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial . Adding static pages 2. Cocoon-based method. You could use cocoon to check the url right after the generation step, and then add in your own static DRI page. This method requires that all your static pages be expressed as DRI and then transformed into HTML by your standard theme templates. This method is useful if you will have lots of static pages that need to be managed, but requires modifying the cocoon sitemap.xmap. I think its important to fill in the body of that block with how we just described for adding the AboutPage.java, since the XSLT alone method makes it say Page Not Found. I suppose there are XSL tricks to suppress your custom about page from showing PageNotFound. If you have wiki permission, you could either fill in the wiki page, or do a writeup on your blog (or create another wiki page), and we'll link to it from there. I don't have a preference, other then that we should put it down in writing as opposed to just having to look through old mailing list messages. Peter Dietz On Wed, May 25, 2011 at 11:11 AM, André andre.ass...@usp.br wrote: It works! Thank you, Peter. Just as you said, I added to /home/dspaceTeste/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap the tranformer map:transformer name=AboutPage src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage / and added under the pipeline map:match pattern=about map:transform type=AboutPage/ map:serialize type=xml / /map:match Thanks again to Peter, Mark and Hardy for the very valuable help and attention. Would it interest anyone if I wrote a concise guide of the modifications? Andre Assada 2011/5/24 Peter Dietz pdiet...@gmail.com Hi Andre, My patch might not have been perfect, especially if you're starting from 1.7. Check your [dspace]/config/xmlui.xconf, to see which aspects are enabled. https://github.com/DSpace/DSpace/blob/master/dspace/config/xmlui.xconf#L61 The patch I sent you patched the sitemap for the artifactBrowser artifact, which in 1.7 is now deprecated, and we use browseArtifacts, viewArtifacts, and searchArtifacts. So although you fixed the sitemap for artifactBrowser/sitemap.xmap, if xmlui.xconf doesn't use it, then the AboutPage doesn't get used. So.. make the same change to the artifactBrowser/sitemap.xmap to browseArtifact/sitemap.xmap. You won't need the customization to artifactBrowser/sitemap.xmap anymore. And I think you should be in business after that. Peter Dietz On Tue, May 24, 2011 at 1:47 PM, André andre.ass...@usp.br wrote: Thanks a lot, Hardy, Peter and Mark. I tried following Hardy's and Peter's directions and also studied the wikis/guides (thank you for the links, Hardy!) I still can't figure out how to make it work (page title still Page not found, no breadcrumbs and no contents showing) That's what I've got so far: 1) on [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser created an AboutPage.java file, very similar to the one by Peter Dietz, with the 2 methods: addPageMeta() to make the title and the breadcrumbs: pageMeta.addMetadata(title).addContent(T_title); pageMeta.addTrailLink(contextPath + /,T_dspace_home); pageMeta.addTrail().addContent(T_trail); addBody() Division division = body.addDivision(about-page, primary); division.setHead(T_head); division.addPara(T_para); [ the T_para would be the text content of the page, which should fit internationalization. ] 2) [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/navigation.xsl we create the link under xsl:template match=dri:options div id=ds-search-option class=ds-option-set a xsl:attribute name=href xsl:value-of select=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/ xsl:text/about/xsl:text /xsl:attribute !-- e aqui o label descritivo -- i18n:textxmlui.dri2xhtml.structural.static.about/i18n:text /abr/ 3) the messages_[LOCALE].xsl files, containing the text of the About page, translated in many languages 4) [dspace-src]/dspace-xmlui/dspace-xmlui-api
Re: [Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage
Thanks a lot, Hardy, Peter and Mark. I tried following Hardy's and Peter's directions and also studied the wikis/guides (thank you for the links, Hardy!) I still can't figure out how to make it work (page title still Page not found, no breadcrumbs and no contents showing) That's what I've got so far: 1) on [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser created an AboutPage.java file, very similar to the one by Peter Dietz, with the 2 methods: addPageMeta() to make the title and the breadcrumbs: pageMeta.addMetadata(title).addContent(T_title); pageMeta.addTrailLink(contextPath + /,T_dspace_home); pageMeta.addTrail().addContent(T_trail); addBody() Division division = body.addDivision(about-page, primary); division.setHead(T_head); division.addPara(T_para); [ the T_para would be the text content of the page, which should fit internationalization. ] 2) [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/lib/xsl/core/navigation.xsl we create the link under xsl:template match=dri:options div id=ds-search-option class=ds-option-set a xsl:attribute name=href xsl:value-of select=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/ xsl:text/about/xsl:text /xsl:attribute !-- e aqui o label descritivo -- i18n:textxmlui.dri2xhtml.structural.static.about/i18n:text /abr/ 3) the messages_[LOCALE].xsl files, containing the text of the About page, translated in many languages 4) [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap -- under: map:components map:transformers added: map:transformer name=AboutPage src=org.dspace.app.xmlui.aspect.artifactbrowser.AboutPage / -- and under: map:pipelines map:pipeline added: map:match pattern=about map:transform type=AboutPage/ map:serialize type=xml/ /map:match 5) [dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/Mirage/Mirage.xsl the override of xsl:template match=dri:body (How should I call for the contents? is that correct?) xsl:when test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about' div h1Simple ABOUT page/h1 xsl:apply-templates / /div /xsl:when After mvn, ant, tomcat stop, clear tomcat cache, tomcat start: doesn't work. What am I missing? Thank you again for your patience and help! Best regards, Andre Assada 2011/5/20 Pottinger, Hardy J. pottinge...@umsystem.edu Thanks, Peter, this looks like a cool way to do static pages, I'll have to give this a try. Would you consider doing a writeup on the process on the wiki? --Hardy Sent from my iPad On May 20, 2011, at 5:03 PM, Peter Dietz pdiet...@gmail.commailto: pdiet...@gmail.com wrote: Hi André, I'm guessing that your XSLT is good, you're able to modify a page, and get your changes to happen. However, if you are adding a new page that doesn't exist, you'll get a problem with the sitemap not having a match for the new page you created. The sitemaps (there are browseArtifacts, viewArtifacts, searchArtifacts) match paths such as community-list or handle/**, but not about/ so you'll end up with the error of Page Not Found, which is when it doesn't match anything. The way I fix that for custom pages that we add, is to add an AboutUs.Java file to generate some basic DRI, and configure the sitemap to use that Java file for our about page. If you build your xsl to create a static page, that partially works, but you also have to modify the sitemap https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap#L82 to add a rule to match the content you added. If there is no rule for the page in the sitemap, then Page Not Found is the exception. See this gist for a sample of how to do this: https://gist.github.com/842301 https://gist.github.com/842301 Peter Dietz On Fri, May 20, 2011 at 10:33 AM, Pottinger, Hardy J. mailto: pottinge...@umsystem.edupottinge...@umsystem.edumailto: pottinge...@umsystem.edu wrote: Hi, here are the missing links: DRI Schema Reference: https://wiki.duraspace.org/display/DSDOC/DRI+Schema+Reference https://wiki.duraspace.org/display/DSDOC/DRI+Schema+Reference Debugging XMLUI hints: https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial#Manakinthe metutorial-Debuggingatvariousstagesofthethemeapplicationpipeline https://wiki.duraspace.org/display/DSPACE/Manakin
[Dspace-tech] Question on static info pages for XMLUI 1.7.0 Mirage
Dear all, We're trying to create some info pages to our XMLUI 1.7.0 repository using the Mirage theme. The problem probably resides in my poor knowledge of XSLT. 1) We've sucessfully added links to the side menu, by adding a link inside the xsl:template match=dri:options eg: div id=ds-search-option class=ds-option-set a xsl:attribute name=href xsl:value-of select=/dri:document/dri: meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]/ xsl:text/about/xsl:text /xsl:attribute i18n:textxmlui.dri2xhtml.structural.informacoes.sobre/i18n:text /abr/ [etc...] 2) We editted the Mirage.xsl overriding the xsl:template match=dri:body with conditionals for handling the call for the info pages eg: xsl:template match=dri:body div id=ds-body xsl:choose xsl:when test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about' div h1ABOUT PAGE - THIS IS A SIMPLE TEST/h1 pLorem Ipsum dolor sit amet/p /div /xsl:when xsl:otherwise xsl:apply-templates / /xsl:otherwise [etc...] Question 1) Everything is ok, except for the page title. When we click the Communities and collections link, the title of the browser correctly shows Communities, but with our page we get a Page not found title, despite the fact that the contents are shown correctly. Even when we include a html page instead of hardcoding it in the xsl (eg. see code below), the contents are showing correctly but the title of the html appears not to be interpreted. xsl:when test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about' pxsl:copy-of select=document('./Reference/lib/about.html') //p /xsl:when Question 2) The breadcrumbs also don't appear when accessing those info pages we've created. Any help will be very much appreciated. Thank you Andre Assada -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Expand-all button on Manakin expandable lists
Thanks a lot for your attention, helix84. But both the front and community pages exhibit what's inside the otherwise condition. On the front page we have no definition of URI: metadata element=request qualifier=URI/ And on the communities page we have metadata element=request qualifier=URIcommunity-list/metadata I'm inserting this on dri2xhtml.xsl, inside xsl:template name=communitySummaryList-DIM Is that correct? Thanks again. Andre 2011/3/28 helix84 heli...@centrum.sk On Mon, Mar 28, 2011 at 21:04, André andre.ass...@usp.br wrote: It works, but now we're trying to make the expand all button appear only on the community list, not on the front page. If you look at the DRI document that is processed by XSL, you will find the URI of the current page in the pageMeta section: metadata element=request qualifier=URI community-list /metadata You can test for it in your XSL this way (I haven't tested it but it should work): xsl:choose xsl:when test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI'] = 'community-list' !-- insert here what is displayed only on the community-list page -- /xsl:when xsl:otherwise !-- insert here what is displayed everywhere else except the community-list page-- /xsl:otherwise /xsl:choose If you want to look at DRI of any page, just add /DRI just after the domain name, e.g. if you want to view DRi of page http://myuni.edu/community-list look at http://myuni.edu/DRI/community-list Hope that helps. Regards, ~~helix84 -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Expand-all button on Manakin expandable lists
We are implementing the expandable/collapsable menus in DSpace Manakin 1.7 We've followed the guide on https://wiki.duraspace.org/display/DSPACE/Add+expanding+and+collapsing+interface+to+community-list+hierarchy+%28Manakin%29 and used the javascript and css implementation of the TAMU Dspace as models. It works, but now we're trying to make the expand all button appear only on the community list, not on the front page. The problem resides probably in our lack of knownledge on XSL. On the TAMU javascript code, there's the line: jQuery(div#right_content_column div#aspect_artifactbrowser_CommunityBrowser_div_comunity-browser p#expand_all_clicker, div#right_content_column div#aspect_artifactbrowser_CommunityBrowser_div_comunity-browser p#collapse_all_clicker).remove(); Which would remove it from the front page, defined on the div But where is the code which generates the div id=right_content_column being implemented? We were only able to find general sections, which are valid for both the front and the communities pages. Any tips would be very much appreciated. Thanks Andre -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Expansible menus on DSpace 1.7
Could anyone who had success implementing expansible menus on DSpace share more detailed knowledge? I'm trying to follow this guide, but apparently I can't implement correctly the .JS and the .CSS https://wiki.duraspace.org/display/DSPACE/Add+expanding+and+collapsing+interface+to+community-list+hierarchy+%28Manakin%29 Thank you and best regards Andre -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech