[Dspace-tech] How to edit themes.xmap file for mobile theme?
I am trying to install mobile theme with Dspace4.1. according to the introduction of readme.txt as following: Installation: 0. Get a new domain name that is an alias of the existing domain name for your DSpace installation. e.g. if your current domain is yoursite.edu your new domain name might be mobile.yoursite.edu These instructions assume that the new domain name starts with 'mobile.' If it is something else, you will need to make a change in Step 5. yes, I get a new domain which starts 'mobile'. 1. Copy the mobile theme folder into your XMLUI theme folder e.g. ../dspace/webapps/xmlui/themes/ in Dspace4.1, there is no need to copy. the files has already at the directory. 2. Add a call for the detectmobile.js and cookies.js file in the header of your current main theme.xsl file. It should look like: * In this file, we also add a "View mobile site" link in the footer section, which allows users to view the full site on their mobile devices. The cookies.js file saves this preference but it's erased when the session is closed. If you want such a link, the code for this should look like the following (with the appropriate URL for your mobile site): http://mobile. yoursite.edu';"> View mobile site yes, i can edit the webapps/xmlui/themes/Mirage/lib/xsl/core/page-structure.xsl to get 3. Open the detectmobile.js file and enter your new mobile domain at the end of the function call e.g. mobile.yoursite.edu * if you choose a different domain name or theme name other than "mobile" make sure to update the settings in the sitemap.xmap 4. In mobile.xsl, find the link "View full website" and replace the references to yoursite.edu with the domain name for your main site. * lines 255-257 5. Replace or edit the themes.xmap file located in your default theme folder e.g. ../dspace/webapps/xmlui/themes/ * The code for setting up the properties for the domain is in lines 32-37. This will need to be changed if the domain name for your mobile site starts with something other than 'mobile.' 6. Restart tomcat and now you should be able to see the mobile theme in action; to change the look-and-feel, you can go to http://jquerymobile.com/themeroller/ and either create your own files or import/upgrade the uncompressed sc-mobile.css file. -- ¤�q⌒�r �q⌒�r 相识也是缘份; �u�� �q⌒�r再见亦是朋友。 �蛱铴蛱� 田| �t- �p�p�p�p�p�p�p�p�p�p�p�p�p�p -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] How to edit themes.xmap file for mobile theme?
I am trying to install mobile theme with Dspace4.1. according to the introduction of readme.txt as following: Installation: 0. Get a new domain name that is an alias of the existing domain name for your DSpace installation. e.g. if your current domain is yoursite.edu your new domain name might be mobile.yoursite.edu These instructions assume that the new domain name starts with 'mobile.' If it is something else, you will need to make a change in Step 5. yes, I get a new domain which starts 'mobile'. 1. Copy the mobile theme folder into your XMLUI theme folder e.g. ../dspace/webapps/xmlui/themes/ in Dspace4.1, there is no need to copy. the files has already in the directory. 2. Add a call for the detectmobile.js and cookies.js file in the header of your current main theme.xsl file. It should look like: * In this file, we also add a "View mobile site" link in the footer section, which allows users to view the full site on their mobile devices. The cookies.js file saves this preference but it's erased when the session is closed. If you want such a link, the code for this should look like the following (with the appropriate URL for your mobile site): http://mobile. yoursite.edu';"> View mobile site yes, i can edit the webapps/xmlui/themes/Mirage/lib/xsl/core/page-structure.xsl to add the js files. 3. Open the detectmobile.js file and enter your new mobile domain at the end of the function call e.g. mobile.yoursite.edu * if you choose a different domain name or theme name other than "mobile" make sure to update the settings in the sitemap.xmap yes, i had edited detectmobile.js. but not edited sitemap.xmap. 4. In mobile.xsl, find the link "View full website" and replace the references to yoursite.edu with the domain name for your main site. * lines 255-257 in Dspace4.1, there is no need to replace the references? which is replaced by the var "$dspace-url". 5. Replace or edit the themes.xmap file located in your default theme folder e.g. ../dspace/webapps/xmlui/themes/ * The code for setting up the properties for the domain is in lines 32-37. This will need to be changed if the domain name for your mobile site starts with something other than 'mobile.' in this step, how to replace or edit the themes.xmap? 6. Restart tomcat and now you should be able to see the mobile theme anyone can tell me how to do it? or show me a full example? many thanks! Chenhe -- ¤�q⌒�r �q⌒�r 相识也是缘份; �u�� �q⌒�r再见亦是朋友。 �蛱铴蛱� 田| �t- �p�p�p�p�p�p�p�p�p�p�p�p�p�p -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Assetstore or PDF's not visible on collection
Do you have run the command? [dspace]/bin/dspace index-discovery -f chenhe -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Which log files can I remove
I have the same question. which log files can be deleted ? Thanks -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] ChineseAnalyzer not work in DSpace 4.0
yes, we will trying it, thank you very much! 2014-02-27 12:43 GMT+08:00 SUZUKI Keiji : > Hi Chenhe, > > DSpace 4.0 uses Lucene 4.4.0. The ChineseAnalyser packaged in this version > does not have a method with the signature of init(Version), so this > error occurs. > > According to the api document of ChineseAnalyser, this class is deprecated > and using "org.apache.lucene.analysis.standard.StandardAnalyzer", which has > the same functionality, is recommended instead. > > How about trying this class as the value of "search.analyzer" property? > > Regards, > Keiji Suzuki > > > > 2014-02-27 12:14 GMT+09:00 badboy : > > we install DSpace4.0 on RHEL6.5, and set the dspace.cfg like this: > > search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer > > > > we meet the error when run #ant fresh_install > > FATAL org.dspace.search.DSIndexer @ anonymou > > s:no_context:no_search_analyzer:search.analyzer= > org.apache.lucene.analysis.cn.Ch > > ineseAnalyzer > > > > just as the same as https://jira.duraspace.org/browse/DS-1170 > > > >> in dspace.conf, if set > >> search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer > >> > >> if will fail with #ant fresh-install . > >> > >> [java] 2012-05-09 17:02:18,195 ERROR org.dspace.search.DSIndexer @ > Unable > >> t > >> o create index directory: c:\dspace180/search > >> [java] 2012-05-09 17:02:18,203 FATAL org.dspace.search.DSIndexer @ > >> anonymou > >> > >> s:no_context:no_search_analyzer:search.analyzer= > org.apache.lucene.analysis.cn.Ch > >> ineseAnalyzer > >> [java] java.lang.NoSuchMethodException: > >> org.apache.lucene.analysis.cn.Chine > >> seAnalyzer.(org.apache.lucene.util.Version) > >> [java] at java.lang.Class.getConstructor0(Class.java:2706) > >> [java] at java.lang.Class.getDeclaredConstructor(Class.java:1985) > >> [java] at > org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:635) > >> [java] at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914) > >> [java] at org.dspace.search.DSIndexer.(DSIndexer.java:225) > >> [java] java.lang.ExceptionInInitializerError > >> [java] Caused by: java.lang.IllegalStateException: > >> java.lang.NoSuchMethodEx > >> ception: > >> org.apache.lucene.analysis.cn.ChineseAnalyzer.(org.apache.lucene. > >> util.Version) > >> [java] at > org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:644) > >> [java] at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914) > >> [java] at org.dspace.search.DSIndexer.(DSIndexer.java:225) > >> [java] Could not find the main class: org.dspace.search.DSIndexer. > >> Program > >> will exit. > >> [java] Exception in thread "main" > >> > >> If I don't set .ChineseAnalyzer before install, ant build successful, > and > >> then I edit the dspace.conf > >> set it to use ChineseAnalyzer, same error message will got when use > >> #dspace index-init > > > > > > -- > > How to do this? > > > > Thanks in advance! > > Regarts. > > Chenhe > > > > > > > > > -- > > Flow-based real-time traffic analytics software. Cisco certified tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/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 > > > > -- > ��木敬二@江�e市 > -- ¤�q⌒�r �q⌒�r 相识也是缘份; �u�� �q⌒�r再见亦是朋友。 �蛱铴蛱� 田| �t- �p�p�p�p�p�p�p�p�p�p�p�p�p�p -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/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
[Dspace-tech] ChineseAnalyzer not work in DSpace 4.0
we install DSpace4.0 on RHEL6.5, and set the dspace.cfg like this: search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer we meet the error when run #ant fresh_install FATAL org.dspace.search.DSIndexer @ anonymou s:no_context:no_search_analyzer:search.analyzer= org.apache.lucene.analysis.cn.Ch ineseAnalyzer just as the same as https://jira.duraspace.org/browse/DS-1170 in dspace.conf, if set > search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer > > if will fail with #ant fresh-install . > > [java] 2012-05-09 17:02:18,195 ERROR org.dspace.search.DSIndexer @ Unable t > o create index directory: c:\dspace180/search > [java] 2012-05-09 17:02:18,203 FATAL org.dspace.search.DSIndexer @ > anonymou > s:no_context:no_search_analyzer:search.analyzer= > org.apache.lucene.analysis.cn.Ch > ineseAnalyzer > [java] java.lang.NoSuchMethodException: > org.apache.lucene.analysis.cn.Chine > seAnalyzer.(org.apache.lucene.util.Version) > [java] at java.lang.Class.getConstructor0(Class.java:2706) > [java] at java.lang.Class.getDeclaredConstructor(Class.java:1985) > [java] at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:635) > [java] at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914) > [java] at org.dspace.search.DSIndexer.(DSIndexer.java:225) > [java] java.lang.ExceptionInInitializerError > [java] Caused by: java.lang.IllegalStateException: > java.lang.NoSuchMethodEx > ception: > org.apache.lucene.analysis.cn.ChineseAnalyzer.(org.apache.lucene. > util.Version) > [java] at org.dspace.search.DSIndexer.getAnalyzer(DSIndexer.java:644) > [java] at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:914) > [java] at org.dspace.search.DSIndexer.(DSIndexer.java:225) > [java] Could not find the main class: org.dspace.search.DSIndexer. > Program > will exit. > [java] Exception in thread "main" > > If I don't set .ChineseAnalyzer before install, ant build successful, and > then I edit the dspace.conf > set it to use ChineseAnalyzer, same error message will got when use > #dspace index-init -- How to do this? Thanks in advance! Regarts. Chenhe -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/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
[Dspace-tech] how to filter the repeat items with import tools
hi, all we had an IR with dspace1.7.2 on CentOS6.2. we import items with command tool, just like " dspace import --add ..." . and after that, we find many items repeated. because we get the items from different source, and can not filter the repeat items before import. if it is possible, that modify the import tool to filter the repeat items? and how to do it ? or anyother ways? thank you! chenhe -- ¤�q⌒�r �q⌒�r 相识也是缘份; �u�� �q⌒�r再见亦是朋友。 �蛱铴蛱� 田| �t- �p�p�p�p�p�p�p�p�p�p�p�p�p�p -- 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_mar___ 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] community-list and search
hi, all we built our IR with dspace1.8 on CentOS6.2, and with the Mirage theme. we have two question with home page: 1. how to show community with two colunm table? Which files should I modify? We have many communites, and it shows too long now. 2. how to avoid the repeat search at bottom of the page, only keep the search at the top of the right page? which files should be modified? thanks a lot! -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d___ 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] help for StatisticsAddOn
Hi, I download Stats_v3.zip recently, and install it with dspace1.6.2. I can execute the 'setup.sh' script successfully. but I meet the following error when I excute 'mvn package': ... > [INFO] Error building POM (may not be this project's POM). > Project ID: org.dspace.modules:jspui > POM Location: > /home/badboy/soft/dspace16/dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml > Validation Messages: > >[0] 'dependencies.dependency.version' is missing for > org.dspace:dspace-uminho-stats-api:jar >[1] 'dependencies.dependency.version' is missing for > org.dspace:dspace-uminho-stats-jspui-api:jar > Reason: Failed to validate POM for project org.dspace.modules:jspui at > /home/badboy/soft/dspace16/dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml > > [INFO] > > [INFO] Trace > org.apache.maven.reactor.MavenExecutionException: Failed to validate POM > for project org.dspace.modules:jspui at > /home/badboy/soft/dspace16/dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml >at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) > ... > so I modify the file --/home/badboy/soft/dspace16/ dspace-1.6.2-src-release/dspace/modules/jspui/pom.xml, and a line like '3.0' > org.dspace > dspace-uminho-stats-api > 3.0 > > > org.dspace > dspace-uminho-stats-jspui-api > 3.0 > and excute 'mvn package' again, but it failed again, the error information just like: Downloading: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom > [WARNING] Unable to get resource > 'org.dspace:dspace-uminho-stats-api:pom:3.0' from repository apache.org ( > http://repository.jboss.org/maven2): Authorization failed: Access denied > to: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom > Downloading: > http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom > [INFO] Unable to find resource > 'org.dspace:dspace-uminho-stats-api:pom:3.0' in repository java.net ( > http://download.java.net/maven/2) > Downloading: > http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.pom > [INFO] Unable to find resource > 'org.dspace:dspace-uminho-stats-api:pom:3.0' in repository central ( > http://repo1.maven.org/maven2) > Downloading: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom > [WARNING] Unable to get resource > 'org.dspace:dspace-uminho-stats-jspui-api:pom:3.0' from repository > apache.org (http://repository.jboss.org/maven2): Authorization failed: > Access denied to: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom > Downloading: > http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom > [INFO] Unable to find resource > 'org.dspace:dspace-uminho-stats-jspui-api:pom:3.0' in repository java.net( > http://download.java.net/maven/2) > Downloading: > http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-uminho-stats-jspui-api-3.0.pom > [INFO] Unable to find resource > 'org.dspace:dspace-uminho-stats-jspui-api:pom:3.0' in repository central ( > http://repo1.maven.org/maven2) > Downloading: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar > [WARNING] Unable to get resource > 'org.dspace:dspace-uminho-stats-api:jar:3.0' from repository apache.org ( > http://repository.jboss.org/maven2): Authorization failed: Access denied > to: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar > Downloading: > http://download.java.net/maven/2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar > [INFO] Unable to find resource > 'org.dspace:dspace-uminho-stats-api:jar:3.0' in repository java.net ( > http://download.java.net/maven/2) > Downloading: > http://repo1.maven.org/maven2/org/dspace/dspace-uminho-stats-api/3.0/dspace-uminho-stats-api-3.0.jar > [INFO] Unable to find resource > 'org.dspace:dspace-uminho-stats-api:jar:3.0' in repository central ( > http://repo1.maven.org/maven2) > Downloading: > http://repository.jboss.org/maven2/org/dspace/dspace-uminho-stats-jspui-api/3.0/dspace-umin