Is it possible to script changes to edition URL format?

Use this forum for HELP at Choral Public Domain Library as well as FEEDBACK
Locked
MandyShaw
Posts: 83
Joined: 28 May 2007 09:11
Location: Bath, England

Is it possible to script changes to edition URL format?

Post by MandyShaw »

We have thousands of CPDL editions posted with URLs of the form https://www.notamos.co.uk/123456.shtml. I would ideally like to change these to https://www.notamos.co.uk/detail.php?scoreid=123456 (I have made this change manually to the link on https://www.cpdl.org/wiki/index.php/In_ ... gor_Lange), as an example). Is there any way this can be scripted? I am happy to do it myself if any route exists for me to do so.
Thanks.
choralia
Site Admin
Posts: 3021
Joined: 05 Mar 2006 19:57
Location: Rome, Italy
Contact:

Re: Is it possible to script changes to edition URL format?

Post by choralia »

Hi Mandy,

A "replace text" function exists, which is restricted to administrators. I've tested it on the following 10 pages:

notamos_replace.png

Please check that everything is OK.

For this test I used the normal text replacement function, which required two operations, however the function also accepts regular expressions, so everything should be feasible with a single operation only.

I think that we can temporarily provide administrator privileges to you, so that you can do the operation yourself. We may privately correspond about that, if you like.

Max
MandyShaw
Posts: 83
Joined: 28 May 2007 09:11
Location: Bath, England

Re: Is it possible to script changes to edition URL format?

Post by MandyShaw »

That looks perfect Max, thank you very much. I will drop you an email.
Locked