<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="margin: 0px;">$self-&gt;{database} should be $self-&gt;{dataset}&nbsp;</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">(good spot Seb)</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><a href="https://github.com/eprints/eprints/commit/a2c9961170fc0836660c61da1a0968f9c0239609">https://github.com/eprints/eprints/commit/a2c9961170fc0836660c61da1a0968f9c0239609</a></div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">        </span>Justin</div><div style="margin: 0px;">&nbsp;</div><div><div>On 24 Mar 2015, at 13:51, peter &lt;<a href="mailto:pjw@repositoryservices.co.uk">pjw@repositoryservices.co.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi<br>A quick update on this one. The two solutions below do fix the problem <br>of the broken link but could result in the wrong plugin being selected <br>during content negotiation.<br>The summary page should be the highest priority for id/eprint/123 but if <br>the database is not set in the hash then the wrong plugin will be <br>selected so an alternative solution would be something like:<br><br>my $base_id = "";<br>$base_id = $self-&gt;{database}-&gt;base_id if $self-&gt;{database};<br>if( ( $self-&gt;scope == CRUD_SCOPE_DATAOBJ &amp;&amp; $base_id ne "subject" ) || <br>$self-&gt;scope == CRUD_SCOPE_USER_CONTENTS )<br><br>Thanks<br>Peter<br><br>-- <br>Peter J. West<br>Digital Repository Services Ltd<br><br><br>On 03/03/15 10:35, Lizz Jennings wrote:<br><blockquote type="cite"><br>This seems to be a bug in 3.3.13<br><br>The issue is on line 897 of:<br><br>/perl_lib/EPrints/Apache/CRUD.pm<br><br>Replace it with either (my solution):<br><br>if( $self-&gt;scope == CRUD_SCOPE_DATAOBJ || $self-&gt;scope == <br>CRUD_SCOPE_USER_CONTENTS )<br><br>or (Gunnar Wolf’s solution):<br><br>if( ( $self-&gt;scope == CRUD_SCOPE_DATAOBJ &amp;&amp; $self-&gt;{database} &amp;&amp; <br>$self-&gt;{database}-&gt;base_id ne "subject" ) || $self-&gt;scope == <br>CRUD_SCOPE_USER_CONTENTS )<br><br>Lizz<br><br>--<br><br>Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2014)<br><br>Technical Data Officer<br><br>The Library 4.10, University of Bath, Bath, BA2 7AY UK<br><br>Ext. 3570 (External 01225 383570)<br><br><a href="mailto:E.Jennings@bath.ac.uk">E.Jennings@bath.ac.uk</a> &lt;<a href="mailto:E.Jennings@bath.ac.uk">mailto:E.Jennings@bath.ac.uk</a>&gt;__<br><br>Research Data Management: <a href="http://www.bath.ac.uk/research/data">http://www.bath.ac.uk/research/data</a><br><br>*From:*<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> <br>[<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>] *On Behalf Of *pgasinos pgs<br>*Sent:* 03 March 2015 09:39<br>*To:* <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>*Subject:* [EP-tech] URI: leads to broken link<br><br>I have noticed that in every item at the end of meta-data there is a <br>URI link, for example:<br><br>URI: <a href="http://www.myserver.com/id/eprint/85">http://www.myserver.com/id/eprint/85</a> <br>&lt;<a href="http://www.myserver.com/id/eprint/85">http://www.myserver.com/id/eprint/85</a>&gt; that is a broken link (because <br>it works without the /id/eprint). Why you added that by default? How <br>could I get rid of it?<br><br>Kostas Pgasinos<br><br><br><br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><br>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><br>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><br></blockquote><br><br><br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><br>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><br>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><br></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">--<br>Justin Bradley<br>Senior Software Consultant<br><a href="mailto:jb4@ecs.soton.ac.uk">jb4@ecs.soton.ac.uk</a><br>EPrints Services<br>Bay 2, 3081, B32<br>University of Southampton<br><br><br><br><br></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></div>
</div>
<br></body></html>