EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08416
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Deposit Statistic by User Department
- To: <eprints-tech@ecs.soton.ac.uk>, "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- Subject: Re: [EP-tech] Deposit Statistic by User Department
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Mon, 4 Jan 2021 10:54:48 +0000
Hi Izwan,
I have had a look at your repository's statistics page for a depositor:
http://ir.uitm.edu.my/cgi/stats/report/userid/4667/
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="http://www.w3.org/1999/xhtml"><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
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="http://www.w3.org/1999/xhtml">)
Regards
Izwan
UiTM Digital Library
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- References:
- [EP-tech] Deposit Statistic by User Department
- From: "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- [EP-tech] Deposit Statistic by User Department
- Prev by Date: [EP-tech] Deposit Statistic by User Department
- Next by Date: Re: [EP-tech] Lift_embargo error
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):