Hi Tim,
we did the same thing (don't copy the pdf of the old version to the new
version) as in our case a new version will probably always have a new
version of the attached files as well.
This is the Place we changed for that:
org.dspace.versioning.DefaultItemVersionProvider#updateItemState(Context
c, Item itemNew, Item previousItem)
Just remove the line createBundlesAndAddBitstreams(c, itemNew,
previousItem)
Hope this helps
Christian
Am 13.04.2016 um 10:28 schrieb Fischer, Tim:
Hi,
I am making some small tweaks for my needs to the currently available
versioning process.
With item.clearMetadata I managed to remove the metadata fields I want
the user to re-enter for the new version.
Another thing I wanted to change is making the user have to choose a
new file for the new version. Normally, when you get to the
uploadfilestep, the file from v1 is already entered and needs to be
removed manually.
How do I remove this file from the form?
I tried by first setting a new item (Item itemwithoutMetaandFile =
item;) and continuing to work with itemwithoutMetaandFile.
I thought this would prevent any changes to the original, unversioned
item.
I tried
itemwithoutMetaandFile.removeBundle(itemwithoutMetaandFile.getBundles("ORIGINAL")[0]);
which resulted in the uploadfilestep being empty, just like I wanted!
But it also seems to affect v1, as I can’t open the file from v1 anymore.
Any idea on what I might be doing wrong?
Thanks!
- Tim
--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Christian Scheible
Softwareentwickler / Abt. Content-basierte Dienste
Kommunikations-, Informations- und Medienzentrum (KIM)
Universität Konstanz
78457 Konstanz
+49 (0)7531 / 88-2857
Raum B 703
--
You received this message because you are subscribed to the Google Groups "DSpace
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.