[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Antwort: Re: BatchEdit permission name

The shortest route is to add code to eprint_fields_automatic and then recommissioned the dataset.
if ($eprint->value ('fieldname') eq 'Thesis (Ph. D.)'){? $eprint->set_value('fieldname', 'Ph D');}
After recommitting, remove the code (or not if you regularly import data in this shape)

Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Tomasz Neugebauer <Tomasz.Neugebauer at concordia.ca> Date: 07/04/2017  20:45  (GMT+00:00) To: eprints-tech at ecs.soton.ac.uk Subject: Re: [EP-tech] Antwort: Re:? BatchEdit permission name 

Thank you Adam and Martin.? That was what I was looking for, nice and simple.
Now if only I could find a way to do a Batch Edit for ?Theses (Ph. D.)? in a field (so that I can replace it with ?Ph. D.?.
My understanding is that the Batch Edit is only available from the ?editor? search, which works like the Advanced search interface, offering ?all of? or ?any
 of? as options for searching within a field.? So when I search for ?Theses (Ph. D.)?, I get this:

Degree matches "Theses (Ph. D.)" (Ignoring: "D", "Ph").
If it ignores the ?Ph? and the ?D?, then it is not specific enough and catches to many items.
And thus, it looks like to make this replace, I would have to use Perl scripting, right?? ??Is there any way to set the advanced search to do phrase searching
 and/or not ignore ?D? and ?Ph? in my criteria?

From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk]
On Behalf Of martin.braendle at id.uzh.ch

Sent: April-07-17 11:20 AM

To: eprints-tech at ecs.soton.ac.uk

Subject: [EP-tech] Antwort: Re: BatchEdit permission name

Hi Tomasz,

I wanted just to tell the same, in the cfg.d/user_roles.pl, add
+eprint/archive/edit, but Adam was faster.

BTW, there's a useful extension to BatchEdit on
https://github.com/eprintsug/batchedit-extended?that allows
 find/replace on multiple compound fields.

Best regards,




Dr. Martin Br?ndle

Zentrale Informatik

Universit?t Z?rich

Stampfenbachstr. 73

CH-8006 Z?rich

 Field ---07/04/2017 17:05:27---Hi Tomasz

Adam Field <adam at adamfield.net>

<eprints-tech at ecs.soton.ac.uk>

07/04/2017 17:05

Re: [EP-tech] BatchEdit permission name

Gesendet von:
eprints-tech-bounces at ecs.soton.ac.uk

Hi Tomasz


??????????????? The permission is eprint/archive/edit ? see


??????????????? In the roles field, add +eprint/archive/edit


??????????????? HOWEVER, I don?t know if this will unlock other bits of functionality.? It kindof looks like it might ? be sure you trust the user?s intentions and capabilities.






<eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Tomasz Neugebauer <Tomasz.Neugebauer at concordia.ca>

Reply-To: <eprints-tech at ecs.soton.ac.uk>

Date: Friday, 7 April 2017 15:49

To: "eprints-tech at ecs.soton.ac.uk" <eprints-tech at ecs.soton.ac.uk>

Subject: [EP-tech] BatchEdit permission name


I want to add the permission to an Editor account for access to BatchEdit function.

Right now, only an admin account can access this screen, an editor gets this error: ?You may not view this screen: BatchEdit.?

I couldn?t find the name of the relevant permission here:

How do I assign permission for an Editor to have access to BatchEdit?







Tomasz Neugebauer

Digital Projects & Systems Development Librarian / Biblioth?caire des Projets Num?riques & D?veloppement de Syst?mes

Library / Biblioth?que

Concordia University / Universit? Concordia

Tel. / T?l. 514-848-2424 ext. / poste 7738

Email / courriel: tomasz.neugebauer at concordia.ca?

Mailing address / adresse postale: 1455 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8

Street address / adresse municipale: 1400 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8




*** 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/?*** EPrints developers Forum: 
http://forum.eprints.org/?*** Options: 

*** Archive: http://www.eprints.org/tech.php/

*** EPrints community wiki: http://wiki.eprints.org/

*** EPrints developers Forum: http://forum.eprints.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170407/2d32954c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170407/2d32954c/attachment-0001.gif