> You must remember you are working with source. I get that, but I was thinking that the source files are wherever you unzipped the download (on my system, ~/dspace-5.1-src-release) and that the "live" directory where theme files are actually read from disk at runtime would be this: /dspace/webapps/xmlui/themes (for example, on my system). But when you say "live" are you referring to /var/lib/tomcat7/webapps/xmlui/themes? If so, does that mean that /dspace/webapps/xmlui/themes is actually the "source" directory?
Related question: If you're doing UI customization, all that seems to matter is the theme directory. So why do you have to "rebuild" -- why not just copy the theme directory from /dspace/webapps/xmlui/themes/MyTheme to /var/lib/tomcat7/webapps/xmlui/themes/MyTheme ? Thanks! On May 28, 2015, at 6:44 PM, Hilton Gibson wrote: > Short answer = yes, but it depends. > Rebuild is the safest. > You must remember you are working with source. > The production (live) webapp is served by Tomcat in a totally different > folder location. > Hard to explain via email. > > Hilton Gibson > Ubuntu Linux Systems Administrator > Stellenbosch University Library > http://staff.lib.sun.ac.za/~hgibson/docs/cv/cv.html > > > On 29 May 2015 at 00:38, Murray, Gregory <gregory.mur...@ptsem.edu> wrote: > Thanks for the link to your detailed guide. The Manakin Theme Tutorial says > to restart Tomcat to "install" a new theme, whereas your wiki says to rebuild > DSpace, which judging by the example rebuild script involves not only > restarting Tomcat but also running Maven and Ant. So when you have a source > installation do you have to "rebuild" to get DSpace to see the new theme > directory? > > > > On May 28, 2015, at 6:04 PM, Hilton Gibson <hilton.gib...@gmail.com> wrote: > >> Hi Greg >> >> Perhaps this will help: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Theme >> It's a more holistic guide. >> >> Cheers >> >> hg >> >> Hilton Gibson >> Ubuntu Linux Systems Administrator >> Stellenbosch University Library >> http://staff.lib.sun.ac.za/~hgibson/docs/cv/cv.html >> >> >> On 28 May 2015 at 23:29, Murray, Gregory <gregory.mur...@ptsem.edu> wrote: >> Hello, >> >> I am new to DSpace and trying to get started with UI customization. I'm >> comfortable at the Unix/Linux command line, but I'm not a system >> administrator. I'm working with a source (not binary) installation of DSpace >> 5.1 on Ubuntu. I'm following the "Manakin theme tutorial" here: >> >> https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial >> >> I'm finding that I can edit /dspace/config/xmlui.xconf to indicate any of >> the pre-installed themes (Mirage, Reference, Classic, Kubrick, template), >> restart Tomcat, and the new theme gets applied successfully. But if I >> indicate a theme in a directory I've made, Tomcat returns an error message >> (details below). For example, if I copy the "template" directory and call it >> "test" like so: >> >> cd /dspace/webapps/xmlui/themes >> cp -r template test >> >> and then edit /dspace/config/xmlui.xconf to indicate the "test" theme like >> so: >> >> <theme name="test" regex=".*" path="test/" /> >> >> then when I restart Tomcat it returns this error: >> >> java.io.FileNotFoundException: >> jndi:/localhost/xmlui/themes/test/sitemap.xmap >> >> I don't see how it can be a permissions problem, because both the "template" >> and "test" directories have the same owner and permissions, and the files in >> those directories have the same owner and permissions. That is, the >> directories appear to be identical except for the name. Any ideas as to why >> setting the config to this: >> >> <theme name="template" regex=".*" path="template/" /> >> >> works just fine, whereas this: >> >> <theme name="test" regex=".*" path="test/" /> >> >> fails? >> >> Thanks, >> Greg >> >> PS. For the newbie, it's not clear whether the changes described in the >> tutorial should happen in the source directory at >> ~/dspace-5.1-src-release/dspace-xmlui/src/main/webapp/themes -- or in >> /dspace/webapps/xmlui/themes -- or both. The tutorial indicates the source >> directory, but it refers to DSpace 1.5, so that's not necessarily accurate. >> Based on the error message described above -- which says >> ".../xmlui/themes/..." -- apparently UI customizations are supposed to be >> made in /dspace/webapps/xmlui/themes. So the tutorial needs to be updated, >> right? >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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 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