EPrints Technical Mailing List Archive

Message: #05474


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

Re: [EP-tech] subject dataset - remove_field


Hi Monica,

I think your suggestion will remove the field itself, rather than a specific value stored in that field.

 

I’ve done something similar – just added it to the wiki for you:

https://wiki.eprints.org/w/Remove_subjectid_script

 

Let me know if it doesn’t work for you.

 

Cheers,

John

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Monica Wood
Sent: 08 March 2016 06:17
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] subject dataset - remove_field

 

Hi there,

 

In our repository we have a root subject called ‘Collections’  Under this I have unlinked(deleted) a child of Collections. 

I now have the issue that all items that were connected to this collection still have the metadata saying so and on our summary page we display the collection an item belongs to.

So it’s now showing ‘??colllectionName??’ as a link and that link is now dead.

 

Is there a way to delete these connections without needing to do it directly through the database? 

I was wondering if the epadmin remove_field might do the job on the subject dataset?

Something like:

~/bin/epadmin remove_field repoid subject collectionid ??

 

Thanks in advanced

Monica Wood
Library Systems Officer
Library | Division of Students & Education
University of Tasmania
Locked Bag 25
Hobart 7001
T +61 3 6226 1849
http://www.utas.edu.au/library

Available Times

Tues: 9am – 5pm

Wed: 1pm – 5pm

Fri: 9am – 5pm

 



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.