[EP-tech] Subject Appear Duplicate

MOHD.IZWAN SALIM mohdizwan8733 at uitm.edu.my
Wed Nov 25 14:39:08 GMT 2020


CAUTION: This e-mail originated outside the University of Southampton.
Dear David

After several days looking into it, the problem was at table subject_parents

It appears twice  for the same subjectid with the same parents.

The only different is pos 0 and 1

So I delete the 1, and regenerate views.

Now it back to normal.

Thanks for your reply..

Mohd Izwan Bin Salim
Bahagian Aplikasi Digital & Pendidikan Sumber Terbuka
Jabatan Perpustakaan Digital
Perpustakaan Tun Abdul RAzak


On Sat, Nov 21, 2020 at 11:18 PM David R Newman <drn at ecs.soton.ac.uk<mailto:drn at ecs.soton.ac.uk>> wrote:

Hi Izwan,

The phrase you should need to edit is viewtitle_eprint_subjects_list.  Here is the phrase as I see it in EPRINTS_PATH/lib/lang/en/phrases/system.xml:

Items where Subject is "<epc:pin name="value1"/>"

This should only display the subject title once within the quote marks.  Maybe somehow this phrase has been modified.  The easiest way to find this out and fix it is to go to the Admin menu and then in the "Config. Tools" tab click on the "Phrase Editor" button.  On this page find (i.e. using Ctrl+F shortcut) viewtitle_eprint_subjects_list.  If it looks like this or more likely it has expanded the XML to look like:

Items where Subject is "<epc:pin name="value1"></epc:pin>"

then the phrase is correct and it may be the code that renders the title on the browse view page that is at fault.  It is worth checking that to the right of the box with the phrase in it says "en/system" this indicates it is the default system phrase and has not been modified.  If the phrase has been change then change the value back to the default I have provided and save it and then go to the "System Tools" tab of the Admin menu and click on "Regenerate Views" before revisiting the browse view page you reported the issue with.  By default the bottom of the browse view should have a date and time of generated.  If that is about the same time as you loaded the page then it has been regenerated.  So if the page still has the duplicate subject displayed and there is some other issue.

If the phrase looks the same as the value I provided and "en/system" is still set (or my above advice did not make a difference), then it would be useful to know which version of EPrints you are running, as there may be a bug with the code in this version that has led to your problem.  If you go to the http://REPOSITORY_HOSTNAME/cgi/counter (subsituting REPOSITORY_HOSTNAME as appropriate) should display a page that includes the version number.  If you can tell me that I may be able to look into whether this version has such a bug.

Regards

David Newman

On 20/11/2020 14:03, MOHD.IZWAN SALIM via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Dear all

I just found out that some of my subject title is duplicate.

[image.png]

Where should I take a look to fix this?

Regards

Izwan
UiTM Library



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca01ca9b49b67477aa6f508d8914fe71f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637419119677338984%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=11A9qKIpq42SLousjAwpz9HEMHYeT00BY6niYMIJJ60%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca01ca9b49b67477aa6f508d8914fe71f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637419119677348980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=muI0yikEmjh6GyMXK%2F6dJPcS%2FVumNbsvBBSSo7Wdm14%3D&amp;reserved=0

[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fipmcdn.avast.com%2Fimages%2Ficons%2Ficon-envelope-tick-green-avg-v1.png&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca01ca9b49b67477aa6f508d8914fe71f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637419119677348980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Fr6BfF9IAG3iTfNBYEf9nozOI47c7NsuufgBtkEpeXo%3D&amp;reserved=0]<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca01ca9b49b67477aa6f508d8914fe71f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637419119677348980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3jUpEXsiMiH1752GkKI854JY%2BvEMSq3BLJqsfleQSCA%3D&amp;reserved=0> Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca01ca9b49b67477aa6f508d8914fe71f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637419119677348980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=WWlswdoxEQ6X01HQ6cQsv8Oe6o6TbJCPCSUo62SQRXI%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca01ca9b49b67477aa6f508d8914fe71f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637419119677348980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3jUpEXsiMiH1752GkKI854JY%2BvEMSq3BLJqsfleQSCA%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20201125/3bced670/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 127906 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20201125/3bced670/attachment-0001.png 


More information about the Eprints-tech mailing list