[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Deposit Statistic by User Department
- Subject: [EP-tech] Deposit Statistic by User Department
- From: drn at ecs.soton.ac.uk (David R Newman)
- Date: Mon, 4 Jan 2021 10:54:48 +0000
- In-reply-to: <EMEW3|a783792b0b7339d04a1c32530c496d58x033JJ14eprints-tech-bounces|ecs.soton.ac.uk|CAANJ=piR+LX4W6UMgA8B-RFVJBxuO8pwKXw6qMzafowr4Uh09g@mail.gmail.com>
- References: <CAANJ=piR+LX4W6UMgA8B-RFVJBxuO8pwKXw6qMzafowr4Uh09g@mail.gmail.com> <CAANJ=piR+LX4W6UMgA8B-RFVJBxuO8pwKXw6qMzafowr4Uh09g@mail.gmail.com> <EMEW3|a783792b0b7339d04a1c32530c496d58x033JJ14eprints-tech-bounces|ecs.soton.ac.uk|CAANJ=piR+LX4W6UMgA8B-RFVJBxuO8pwKXw6qMzafowr4Uh09g@mail.gmail.com> <7a99050e-f870-62c0-8ddf-b790b4ffec66@ecs.soton.ac.uk>
Hi Izwan,
I have had a look at your repository's statistics page for a depositor:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fir.uitm.edu.my%2Fcgi%2Fstats%2Freport%2Fuserid%2F4667%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941143084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=U5JNpV4TnQFKwNJA70YmdGesGn6pxf4GIOKuJF5qXZ0%3D&reserved=0
An eprint's userid field value is not typically used as a field on which
to filter.? Typically you would use creators_name which is used by the
authors filter, which you seem to have disabled/removed.
It would be useful if you could show me the z_irstats2.pl configuration
file for your repository.? This should be either in
EPRINTS_PATH/lib/cfg.d/ or
EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/, where you need to
substitute EPRINTS_PATH and ARCHIVE_NAME.? (EPRINTS_PATH is likely to be
either /usr/share/eprints/ or /opt/eprints3/).? If you find the file in
both places then the one in
EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/, is what I need to see.
I suspect I know what the problem is.? IRStats2 is using the standard
means for rendering a user's name based on their ID but then the HTML
code is itself is being HTML encoded before it is rendered so that is
why you see something like below actually rendered on the page:
<span class="ep_name_citation"
xmlns="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941153040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r7FPznYx%2B12s%2BduNvB9vBr%2FU%2F6UinjoSWbqQokcFahI%3D&reserved=0"><span class="person_name">Faizul
Kamaruddin</span></span>
I think the way you fix this is to amend $c->{irstats2}->{sets},
specifically the block that specifies:
'field' => 'userid',
to add the line: 'type' => 'authorid',? once amended this block should
look like:
{
??? 'field' => 'userid',
??? 'type' => 'authorid',
}
Regards
David Newman
On 04/01/2021 03:18, MOHD.IZWAN SALIM via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Dear all, how to generate statistics via IRStat2 for deposit by the
> user department.
>
> I manage to get by depositor (with some error span error : <span
> class="ep_name_citation" xmlns="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941153040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r7FPznYx%2B12s%2BduNvB9vBr%2FU%2F6UinjoSWbqQokcFahI%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941153040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r7FPznYx%2B12s%2BduNvB9vBr%2FU%2F6UinjoSWbqQokcFahI%3D&reserved=0>">)
>
> Regards
>
> *Izwan*
> UiTM Digital 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&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941153040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=chi%2F%2B1AT1wPSUX9Ro5UYCgMe0QqBt12wfO2tQFjZBH0%3D&reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941153040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=b3fiWVBhYi3iM17uJmCUrOmJLBCaNpcmF1eeP40Dpdc%3D&reserved=0
--
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C9be090250db34429715e08d8b09f2a5e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453544941153040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JmvNoH%2BcqNa5LfZ%2FJvbCS7M6cjL%2BrnjPkLmxs8BaLIQ%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210104/475e23b8/attachment-0001.html