Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
97898cb
Small restructure for easier EPM deployment
drtjmb Jan 20, 2015
05f66a5
epmi for irus submodule
Jan 15, 2015
95517e3
rejigged to make directories bazaar shaped (will now need to updat ee…
Jan 31, 2015
a3567ca
Upgraded to 1.05 (http://files.eprints.org/971/)
drtjmb Feb 13, 2015
40327e8
Updated README
drtjmb Feb 13, 2015
cf03d2a
Don't need to clutter up archives/foo/cfg.d - should all work from li…
drtjmb Feb 13, 2015
0b54d14
Add 1.1.0 epmi
drtjmb Feb 13, 2015
55f7adf
change destination URI for tracker
Ainmhidh Jul 12, 2017
649b4af
Merge pull request #1 from Ainmhidh/patch-2
Ainmhidh Aug 29, 2018
ed0a929
Send additional data for Counter v5
jesusbagpuss Oct 25, 2018
2517bc4
Add example ORCID OAI-PMH set config
jesusbagpuss Oct 25, 2018
fae6173
Update tracker URL to https. Add test tracker URL.
jesusbagpuss Oct 25, 2018
ac39789
Remove return statement that stops abstracts being logged
jesusbagpuss Oct 25, 2018
eddb3da
Fallback to securehost if host is not defined in config
jesusbagpuss Dec 12, 2018
da461ba
Update and rename README to README.md
jesusbagpuss Dec 12, 2018
7784b73
Update README.md
jesusbagpuss Dec 12, 2018
636a620
Update README.md
jesusbagpuss Dec 12, 2018
c16b581
Update README.md
jesusbagpuss Dec 13, 2018
fa8c44a
Update epmi
jesusbagpuss Dec 14, 2018
75883bf
Update README
jesusbagpuss Dec 14, 2018
6816676
Add icon (design agreed by IRUS)
jesusbagpuss Dec 14, 2018
00ff889
Version 1.2.0
jesusbagpuss Dec 14, 2018
3e4cc57
Merge pull request #2 from eprintsug/counter-v5
jesusbagpuss Mar 8, 2019
15c05c0
irus domainname change
Mar 29, 2019
ea4f023
Update default tracker URL to irus.jisc.ac.uk/counter/
jesusbagpuss Mar 29, 2019
4446ad6
Merge branch 'master' into v1.2.1
jesusbagpuss Mar 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions README

This file was deleted.

122 changes: 122 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# PIRUS 'PUSH' implementation


UPDATE March 2019: The default URL used by this code has been updated to https://irus.jisc.ac.uk/counter/.

If you are looking for a version of this plugin that *does* have the latest IRUS tracker URL, but *doesn't* have the counter R5 updates see https://github.com/eprintsug/irus/tree/irus-jisc-ac-uk

Provide data for [COUNTER R5](https://www.projectcounter.org/code-of-practice-five-sections/abstract/) compliant usage statistics.

By default this package is configured to send data to the IRUS-UK tracker.

## Installation

This EPrints plugin should be available from the [EPrints Bazaar](https://bazaar.eprints.org/),
and can be installed from within your repository.

To manually install it, you can use the GitHub repository and the [Gitaar](https://github.com/eprintsug/gitaar) tool.

### Sending data to other trackers

If you need to send data to a tracker other than [IRUS-UK](https://www.jisc.ac.uk/irus), please add
the following to a file in the archive specific configuration e.g. `~/archives/ARCHIVEID/cfg/cfg.d/z_pirus.pl`

`$c->{pirus}->{tracker} = "https://THE-URL-OF-THE-OTHER/tracker/";`

### Testing / use on development servers

In the file `lib/cfg.d/pirus.pl` there is a URL for a test COUNTER server in the comments.

`#$c->{pirus}->{tracker} = "https://jusp.jisc.ac.uk/testcounter/";`

if you are testing the plugin, or have it installed on a test/development machine, you can add the configuration
above to a file in the archive specific configuration e.g. `~/archives/ARCHIVEID/cfg/cfg.d/z_pirus.pl`.

## Implementation

This code will PING the configured tracker server whenever a full-text or item summary page is requested from EPrints.

These pings can be aggregated together with data from other sources
(publishers, other repositories) to create a fuller picture of the usage
of individual articles.

The data transferred are:

- `url_ver` - set to `Z39.88-2004` (OpenURL)
- `url_tim` - the datestamp of the 'access' dataobject
- `req_id` - requesting IP address
- `req_dat` - User-agent making request
- `rft.artnum` - the OpenArchives OAI identifier for the accessed item
- `rfr_id` - the hostname of the repository
- `svc_dat` - the URL requested
- `rfr_dat` - the HTTP referrer (when set)
- `rft_dat` - whether it was a full-text download, or a summary page access.

## OAI-PMH IRUS / ORCID set

The file `lib/cfg.d/z_oai_irus.pl.example` contains an example configuration for an OAI-PMH custom set `irus-orcid`
that will include items which have an ORCID defined for a creator. It is based on the standard EPrints implementation
for ORCIDs.

To activate this set, copy the file into `archives/ARCHIVEID/cfg/cfg.d/`, but without the `.example` on the end of the filename.
Reload the webserver, and test using the URL:
`https://YOUR-SERVER-NAME/cgi/oai2?verb=ListIdentifiers&metadataPrefix=oai_dc&set=irus-orcid`

The default oai_dc metadata profile does not contain ORCIDs, but if you have a metadata profile that can include them
(and has been confiigured to include them) e.g. RIOXX, then use that, and a 'ListRecords' request e.g.
`https://YOUR-SERVER-NAME/cgi/oai2?verb=ListRecords&metadataPrefix=rioxx&set=irus-orcid`


## Changes

* 1.2.1 John Salter <J.Salter@leeds.ac.uk>

Update to default tracker URL.

* 1.2.0 John Salter <J.Salter@leeds.ac.uk>

Update to COUNTER R5:

Set `rft_dat` to `Request` (for fulltext downloads)

Set `rft_dat` to `Investigation` (for summary page views)

* 1.1.0 ???

* 1.06 Justin Bradley <jb4@ecs.soton.ac.uk>

Perl syntax bug Fix.

* 1.05 Sebastien Francois <sf2@ecs.soton.ac.uk>

* 1.04 Tim Brody <tdb2@ecs.soton.ac.uk>

Set svc_format to mime_type (was commented out???)

Set svc_dat to the requested URL (works only for live)

* 1.03 ???

* 1.02 Justin Bradley <jb4@ecs.soton.ac.uk>

Compatibility fixes for 3.2.

* 1.01 Tim Brody <tdb2@ecs.soton.ac.uk>

Fixed reference to 'jtitle' instead of 'publication'

* 1.00 Tim Brody <tdb2@ecs.soton.ac.uk>

Initial version

## Reuse / licence information

Copyright 2012 University of Southampton

Released to the public domain (or CC0 depending on your juristiction).

Updated 2018 [John Salter](https://github.com/jesusbagpuss) on behalf of White Rose Libraries and IRUS-UK CAG.

With thanks to [Alan Stiles](https://github.com/Ainmhidh) (Open University) and [Paul Needham](https://orcid.org/0000-0001-9771-3469) (Cranfield University)

__USE OF THIS EXTENSION IS ENTIRELY AT YOUR OWN RISK__
Loading