EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #08954


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] How to Remove Available Versions of this Item


Hi,

I usually would add a block to the EPrint workflow, towards the end of the core (Details) stage something like:

    <epc:if test="$current_user{username} = 'MYUSERNAME'">
      <component>
        <field ref="succeeds"/>
      </component>
    </epc:if>

Substituting MYUSERNAME as appropriate.  Directly updating the database is very much a last resort option in my opinion, as you could create a much bigger problem if you get things wrong.  Also, you won't have the traceability to see when and who unset the succeeds field, which may be useful to know in the future.   With the workflow method you just need to go to the Details stage on the edit page for the newer eprint record, scroll to the button and unset the value for the succeeds field.

As Alan said, I think even if you use the workflow method, you may need to manually refresh the abstract page for that eprint record that has the warning about a newer version being available.  I.e.

EPRINTS_PATH/bin/generate_abstracts ARCHIVEID EPRINTID

There is code to deal with changes relating to items that have the succeeds field set or are referred to by that field.  However, I am not sure it will work in this scenario.  I.e. cause the abstract page of the original eprint record to be regenerated to remove the new version warning banner.

I think the reason you may have experienced this issue in the first place is someone (maybe you) created the new eprint record using the "New version" button in the Actions tab of the original eprint record.  This will set the succeeds field on the new eprint record.  Instead make sure the "Use as template" button is used, as this will work much the same but will not set the succeeds field. 

Regards

David Newman

On 27/05/2022 8:16 am, Alan.Stiles via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.

Hi,

You need to clear the 913 from the ‘succeeds’ field on item 60435.  Either via direct access to the eprints database table or by temporarily adding it to the workflow and clearing it in the user interfacewriting or writing a script to clear it.  The last 2 options should leave a trace in the item history, the first option will not.

You may then also need to regenerate the abstracts for one or both of the items to remove the version messages from the public views of the items.

 

Alan

 

From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of MOHD.IZWAN SALIM via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Date: Friday, 27 May 2022 at 06:06
To: EDER Norbert via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] How to Remove Available Versions of this Item

CAUTION: This mail comes from outside the University. Please consider this before opening attachments, clicking links, or acting on the content.

CAUTION: This e-mail originated outside the University of Southampton.

Dear all

 

One of my old records appear  There is a more recent version of this item available.

with some Available Versions of this Item info at the bottom record.

 

 

I use to see this in eprints software download.

 

How do i remove this because both record are not same in term of version.

 

Regards

 

PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA SELANJUTNYA...


DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public,  proprietary,  privileged,  confidential  and  exempt  from  disclosure under applicable law including the Official Secrets Act 1972. READ MORE...


*** 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/