Commit Graph

25 Commits

Author SHA1 Message Date
Alessandro Martelli
d3c3d30c6c [CSTPER-221] Versioned handle populate metadata cleanup 2020-10-29 17:28:40 +01:00
Alessandro Martelli
b27d2ba322 [CSTPER-221] Handle Providers enhanced for Communities and Collections 2020-10-27 16:39:26 +01:00
Tim Donohue
ceed829800 Merge branch 'master' into configurable_entities 2018-12-06 17:05:31 +00:00
Raf Ponsaerts
b905f69d63 Refactored the usages of MetadataSchema.DC to use the enum instead 2018-11-21 09:35:11 +01:00
Patrick Trottier
7f4b4e9f8a Convert getLogger() and Log4J imports for Log4J 2 2018-11-09 08:41:42 -05:00
Terry Brady
220c8a5a48 checkstyle fix 2018-08-03 17:47:31 -07:00
Terry Brady
77d67537f7 port pr1839 minus xmlui 2018-08-03 17:15:23 -07:00
Tim Donohue
8a48f782ea Fix dspace-api module per new code style 2018-02-21 15:23:58 -06:00
Terry Brady
351b03a87b Use handle.original.prefixes 2016-08-16 13:17:38 -07:00
mjmarttila
f6bfc491d3 More restrictive handle definitions
As per request by pnbecker and tdonahue, reworking supports() method to
be more restrictive in its handle validation while also still allowing
support for multi-instance environments with derived handles. Now, if a
handle does not match one of the currently known DSpace handle provider
formats, it will be rejected.
2016-08-03 14:02:16 -04:00
mjmarttila
12649fe1fe Extend supported handles for supports() method
Updates the supports() method across the three relevant handle provider
classes to check if the identifier a) matches a valid handle starting
pattern or b) does not match a DOI starting pattern and does contain a
slash but is not an arbitrary URL.
2016-06-02 09:27:59 -04:00
mjmarttila
ab2f876155 Extend accepted handles for supports()
Add an additional supported handle format to the supports() method of
VersionedHandleIdentifierProvider to make behavior more in-line with the
DS 5.4 code.
2016-05-11 13:49:54 -04:00
Pascal-Nicolas Becker
54de1ac71d Add handles in canonical form to the metadata. 2016-04-07 15:39:13 +02:00
Pascal-Nicolas Becker
f84f1dc283 Versioned Items should have one handle only, remove old ones before. 2016-04-07 15:29:49 +02:00
Pascal-Nicolas Becker
46c223d172 DS-2940: fixing metadata problems with canonical versioned handles. 2016-04-07 15:29:49 +02:00
Pascal-Nicolas Becker
bff93d6686 DS-1348: Removing the use of "canonical handles"
The previous VersionedHandleIdentifierProvider introduced "canonical
handles". The idea was to keep the current handle always linked to the
newest version of an item. The downside is that this limits the
versioning to version changes that do not derogate the citation of the
items (e.g. no changes in pagination of any bitstreams). This can be
used as a special feature to manually track metadata changes. In this
case administrators might want to show only the newest version publicly
and hide older versions.

Another way to use a versioning feature is to create new versions of an
item which may even change existing citations. The old versions should
be kept with there former handles so that citing a handle with a page
number still results in the same citation. A newer version should get a
new handle.

This commit introduces a VersionedHandleIdentifierProvider that does not
change the link between a handle and an item. A new version of an item
gets a new handle. This behaviour ensures that every version is always
citable even if a newer version will be release at any time.
2016-04-07 15:29:49 +02:00
Pascal-Nicolas Becker
0e34ed8d9d DS-1348: Rename the current VersionedHandleIdentifierProvider.
The current VersionedHandleIdentifierProvider introduced "canonical
handles". The idea is to keep the current handle always linked to the
newest version of an item. The downside is that this limits the
versioning to version changes that do not derogate the citation of an
item (e.g. no changes in pagination of any bitstreams). This can be
used as a special feature to manually track metadata changes. In this
case administrators might want to show only the newest version publicly
and hide older versions.

Another way to use a versioning feature is to create new versions of an
item which may even change existing citations. The older versions should
be kept with there former handles so that citing a handle with a page
number still results in the same citation. A newer version should get a
new handle.

This commit just moves the old VersionedHandleIdentifierProvider to a
new class so it still can be used if necessary. A new
VersionedHandleIdentifierProvider will be provided within the next
commit.
2016-04-07 15:29:49 +02:00
Pascal-Nicolas Becker
294cd9d4be DS-2497: Keep version numbers stable. 2016-02-08 12:56:04 +01:00
KevinVdV
038e2c57c5 [DS-2779] Fix versioning due to service api 2015-10-02 12:20:12 +02:00
KevinVdV
54222f3c1d DSpace refactored service api 2015-08-19 11:54:32 +02:00
Mark H. Wood
e440e64739 [DS-1883] Un-deprecate DCValue and rename it.
It seems that the reason for deprecation was objection to the *name*,
since it is not strictly for DC anymore.
2014-10-31 14:48:24 -04:00
Àlex Magaz Graça
45d702c42f DS-1536 having a DOT in handle prefix causes identifier.uri to be cut off when being created. 2013-09-26 16:29:05 +02:00
KevinVdV
9961c0a990 [DS-1363] Unable to create new version when previous version was deleted in workspace 2012-11-16 13:59:57 +01:00
Fabio Bolognesi
4084d675fa [DS-1194] Item Level Versioning : Bamboo Test Fixes 2012-09-20 10:19:44 -07:00
Mark Diggory
db9f6e6f36 Atmire dspace 3.0 versioning contribution
Versioning : Add Spring WebMVC Control
Versioning : AIP Prototype Test Improvements.
2012-09-20 01:14:30 +02:00