Hi Bram
No. I not talking about foter. I am talking about page content

Contact us

DSpace at University administrators may be contacted at:
On-line form:   Feedback  <--- I am taking about this link.(how to remove it)
Email:  [email protected]

On 22 December 2010 15:15, Bram Luyten <[email protected]> wrote:
> Hi Martins,
>
> just a fast, offlist reply here, because I don't know if I fully understand:
>
> the link disappeared for all pages, but not on the contact page ?
> that's very strange because they all use the same footer file.
>
> If this is the case, it must be some sort of caching problem.
>
> best regards,
>
> Bram
>
> @mire
>
> Technologielaan 9 - Heverlee 3001 - Belgium
> 2888 Loker Avenue East, Suite 305 - Carlsbad, CA 92010 - USA
> atmire.com - Institutional Repository Solutions
>
>
> On Wed, Dec 22, 2010 at 2:08 PM, Martins Purins <[email protected]> wrote:
>>
>> Hi Bram
>>
>> Thanks for fast answer. In footer I removed feedback by myself., but
>> the problem persist for https://dspace.hostname/dspace[xmlui]/contact
>>
>> About generate-sitemaps
>> This happens only when no collections is created (fresh instalation)
>> Error
>> /usr/local/dspace/bin/dspace generate-sitemaps
>> Exception: null
>> java.lang.NullPointerException
>>        at
>> org.dspace.app.sitemap.AbstractGenerator.closeCurrentFile(AbstractGenerator.java:138)
>>        at
>> org.dspace.app.sitemap.AbstractGenerator.finish(AbstractGenerator.java:155)
>>        at
>> org.dspace.app.sitemap.GenerateSitemaps.generateSitemaps(GenerateSitemaps.java:238)
>>        at
>> org.dspace.app.sitemap.GenerateSitemaps.main(GenerateSitemaps.java:110)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
>>
>> 2010-12-22 15:07:02,552 INFO  org.dspace.core.ConfigurationManager @
>> Loading from classloader: file:/usr/local/dspace/config/dspace.cfg
>> 2010-12-22 15:07:02,567 INFO  org.dspace.core.ConfigurationManager @
>> Using dspace provided log configuration (log.init.config)
>> 2010-12-22 15:07:02,567 INFO  org.dspace.core.ConfigurationManager @
>> Loading: /usr/local/dspace/config/log4j.properties
>> 2010-12-22 15:07:04,407 ERROR org.dspace.kernel.DSpaceKernelManager @
>> WARN Failed to unregister the MBean:
>> org.dspace:name=e503f01b-1bd1-48cd-b45b-122f5fa18438,type=DSpaceKernel
>>
>>
>> Regards
>> Martins
>>
>> On 22 December 2010 14:50, Bram Luyten <[email protected]> wrote:
>> > Thanks for the elegant fix for (1.) Peter.
>> >
>> > I have documented it here, awaiting this fix to be applied in the
>> > codebase:
>> >
>> > https://wiki.duraspace.org/display/DSDOC/Mirage+Configuration+and+Customization
>> >
>> > Further Mirage troubleshooting information can also be added there.
>> >
>> > Martins,
>> >
>> > can you provide some more details about the errors with generating the
>> > sitemaps ? (2.)
>> >
>> > to remove the feedback link, check the buildFooter template in your
>> > lib/core/page-structure.xsl & remove the part I highlighted in bold.
>> >
>> > <xsl:template name="buildFooter">
>> >         <div id="ds-footer-wrapper">
>> >             <div id="ds-footer">
>> >                 <div id="ds-footer-left">
>> >                     <a href="http://www.dspace.org/";
>> > target="_blank">DSpace
>> > software</a> copyright&#160;&#169;&#160;2002-2010&#160; <a
>> > href="http://www.duraspace.org/"; target="_blank">Duraspace</a>
>> >                 </div>
>> >                 <div id="ds-footer-right">
>> >                     <span class="theme-by">Theme by&#160;</span>
>> >                     <a title="@mire NV" target="_blank"
>> > href="http://atmire.com"; id="ds-footer-logo-link">
>> >                     <span id="ds-footer-logo">&#160;</span>
>> >                     </a>
>> >                 </div>
>> >                 <div id="ds-footer-links">
>> >                     <a>
>> >                         <xsl:attribute name="href">
>> >                             <xsl:value-of
>> >
>> >
>> >  select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='contextPath'][not(@qualifier)]"/>
>> >                             <xsl:text>/contact</xsl:text>
>> >                         </xsl:attribute>
>> >
>> >  <i18n:text>xmlui.dri2xhtml.structural.contact-link</i18n:text>
>> >                     </a>
>> >                     <xsl:text> | </xsl:text>
>> >                     <a>
>> >                         <xsl:attribute name="href">
>> >                             <xsl:value-of
>> >
>> >
>> >  select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='contextPath'][not(@qualifier)]"/>
>> >                             <xsl:text>/feedback</xsl:text>
>> >                         </xsl:attribute>
>> >
>> >  <i18n:text>xmlui.dri2xhtml.structural.feedback-link</i18n:text>
>> >                     </a>
>> >                 </div>
>> >                 <!--Invisible link to HTML sitemap (for search engines)
>> > -->
>> >                 <a class="hidden">
>> >                     <xsl:attribute name="href">
>> >                         <xsl:value-of
>> >
>> >
>> >  select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='contextPath'][not(@qualifier)]"/>
>> >                         <xsl:text>/htmlmap</xsl:text>
>> >                     </xsl:attribute>
>> >                     <xsl:text>&#160;</xsl:text>
>> >                 </a>
>> >             </div>
>> >         </div>
>> >     </xsl:template>
>> >
>> > Thanks for the useful comments !
>> >
>> > best regards,
>> >
>> > Bram Luyten
>> >
>> > @mire
>> >
>> > Technologielaan 9 - Heverlee 3001 - Belgium
>> > 2888 Loker Avenue East, Suite 305 - Carlsbad, CA 92010 - USA
>> > atmire.com - Institutional Repository Solutions
>> >
>> >
>> > On Wed, Dec 22, 2010 at 1:17 PM, Martins Purins <[email protected]>
>> > wrote:
>> >>
>> >> Hi Peter
>> >>
>> >> thanks for your helping.
>> >> According to point 4.
>> >> I have seen the RSS in source, but I know, that a lot of users don't
>> >> read page source :). Thanks for your sample. I have added a small
>> >> modification for better look :)
>> >> in Mirage/lib/xsl/core/navigation.xsl,  after
>> >>           <!-- Once the search box is built, the other parts of the
>> >> options are added -->
>> >>                <xsl:apply-templates/>
>> >> I add this:
>> >> <!-- Prieks RSS -->
>> >> <xsl:if
>> >>
>> >> test="count(/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='feed'])
>> >> != 0">
>> >>    <h1 class="ds-option-set-head"><xsl:text>RSS Feeds</xsl:text></h1>
>> >>    <div id="ds-feed-option" class="ds-option-set">
>> >>        <ul><xsl:call-template name="addRSSLinks"/></ul>
>> >>    </div>
>> >> </xsl:if>
>> >>
>> >> According to the point 6.
>> >>
>> >> I changed my hostname, and you where right. Feedback works, but I
>> >> still want to remove this option. The thing I don’t understand is -
>> >> how the page is generated. I commented out in Contact.java file link
>> >> to feedback but it  still persists.
>> >>
>> >> And point 7
>> >>  The thing I did not describe previously. I have enabled shibboleth,
>> >> but still on some links (including "contact us") Register link
>> >> appears.
>> >> Which way would be better
>> >> a) Replace RegisterServlet.java with something who disable
>> >> registration?
>> >> b) Find where Register link is generated and comment out (hard for me
>> >> :) ) Can you get some timps what I need to comment out
>> >>
>> >> Thanks
>> >>
>> >> Regards
>> >> Martins
>> >>
>> >>
>> >>
>> >>
>> >> On 21 December 2010 21:00, Peter Dietz <[email protected]> wrote:
>> >> > Hi Martins,
>> >> > Thanks for the evaluation, its important to fix these things.
>> >> > I have some comments inline.
>> >> > --
>> >> > Peter Dietz
>> >> > Systems Developer/Engineer
>> >> > Ohio State University Libraries
>> >> >
>> >> >
>> >> >
>> >> > On Tue, Dec 21, 2010 at 10:07 AM, Martins Purins <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> Hello.
>> >> >> First of all thanks for new version of Dspace. I have set up
>> >> >> development environment to switch from 1.6.2 to 1.7 Mirage, but I
>> >> >> have
>> >> >> found some small problems. Some I can solve but some are to complex
>> >> >> for me: )
>> >> >
>> >> > I'll take the liberty to answer the easy questions, the memory leak
>> >> > question
>> >> > is too hard for me.
>> >> >
>> >> >>
>> >> >> 1. http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
>> >> >> is
>> >> >> hardcoded with http. When I switch to https there is an error in
>> >> >> IE8.
>> >> >
>> >> > For my local setup, I use the Google CDN version of jQuery as well,
>> >> > however,
>> >> > I also add another check to load https when needed to match the site,
>> >> > to
>> >> > prevent from having mixed secure/unsecure content.
>> >> > Additionally as a fail-safe, I have it load a version of jQuery
>> >> > served
>> >> > locally if the CDN were to have a problem.
>> >> > <!-- Grab Google CDN jQuery. fall back to local if necessary. Also
>> >> > use
>> >> > same
>> >> > http / https as site -->
>> >> >    <script type="text/javascript">
>> >> >      var JsHost = (("https:" == document.location.protocol) ?
>> >> > "https://";
>> >> > :
>> >> > "http://";);
>> >> >      document.write(unescape("%3Cscript src='" + JsHost +
>> >> > "ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'
>> >> > type='text/javascript'%3E%3C/script%3E"));
>> >> >    </script>
>> >> >     <script>!window.jQuery && document.write('<script
>> >> > src="/dspace/static/js/jquery-1.4.2.min.js"><\/script>')</script>
>> >> > This fix should probably make its way into the code base.
>> >> >
>> >> >>
>> >> >> 4. I cant find, how to enable RSS syndication in mirage theme? May
>> >> >> be
>> >> >> it is easy but still :)
>> >> >> # enable syndication feeds - links display on community and
>> >> >> collection
>> >> >> home pages
>> >> >> # (This setting is not used by XMLUI, as you enable feeds in your
>> >> >> theme)
>> >> >> webui.feed.enable = true
>> >> >
>> >> > Mirage has the syndication feeds in the source, they are in the html
>> >> > head
>> >> > <link type="application/rss+xml" rel="alternate"
>> >> > href="/xmlui/feed/rss_1.0/10673/6423" />
>> >> > <link type="application/rss+xml" rel="alternate"
>> >> > href="/xmlui/feed/rss_2.0/10673/6423" />
>> >> > <link type="application/atom+xml" rel="alternate"
>> >> > href="/xmlui/feed/atom_1.0/10673/6423" />
>> >> > But if you also wanted to add links to the page that said: "Click
>> >> > here
>> >> > for
>> >> > RSS 2.0 feed". Then something like this should help.
>> >> > Create a new template.
>> >> > <xsl:template name="addRSSLinks">
>> >> >         <xsl:for-each
>> >> >
>> >> >
>> >> > select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='feed']">
>> >> >             <li><a>
>> >> >                     <xsl:attribute name="href">
>> >> >                         <xsl:value-of select="."/>
>> >> >                     </xsl:attribute>
>> >> >                     <xsl:value-of select="@qualifier"/>
>> >> >             </a></li>
>> >> >         </xsl:for-each>
>> >> > </xsl:template>
>> >> >
>> >> > And then in Mirage/lib/xsl/core/navigation.xsl, add this somewhere
>> >> > before
>> >> > the end of dri:options
>> >> > <xsl:if
>> >> >
>> >> >
>> >> > test="count(/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='feed'])
>> >> > != 0">
>> >> >     <h3 id="ds-feed-option-head"
>> >> > class="ds-option-set-head"><xsl:text>RSS
>> >> > Feeds</xsl:text></h3>
>> >> >     <div id="ds-feed-option" class="ds-option-set">
>> >> >         <ul><xsl:call-template name="addRSSLinks"/></ul>
>> >> >     </div>
>> >> > </xsl:if>
>> >> >
>> >> >>
>> >> >> 6. Link to feedback does not work in Mirage theme. Even in
>> >> >> demo.dspace.org
>> >> >
>> >> > How the refer page works should be better documented, the error you
>> >> > get
>> >> > that
>> >> > you have a bad referrer is because it checks that the page you came
>> >> > from
>> >> > to
>> >> > get to the feedback form came from your DSpace site, as opposed to
>> >> > some
>> >> > link
>> >> > spammer who's hijacking your form for anonymous mailings. Meaning
>> >> > that
>> >> > if
>> >> > you change the dspace.hostname to match your current usage, then
>> >> > feedback
>> >> > page will work properly.
>> >> > In dspace.cfg:
>> >> > set dspace.hostname and dspace.baseUrl correctly. They are default to
>> >> > localhost, but on the demo server, I just set dspace.hostname =
>> >> > demo.dspace.org and now the feedback form works properly.
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Forrester recently released a report on the Return on Investment (ROI)
>> >> of
>> >> Google Apps. They found a 300% ROI, 38%-56% cost savings, and
>> >> break-even
>> >> within 7 months.  Over 3 million businesses have gone Google with
>> >> Google
>> >> Apps:
>> >> an online email calendar, and document program that's accessible from
>> >> your
>> >> browser. Read the Forrester report:
>> >> http://p.sf.net/sfu/googleapps-sfnew
>> >> _______________________________________________
>> >> DSpace-tech mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> >
>> >
>
>

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to