Re: [Koha] MARC modification templates problem

2023-08-09 Thread Eric Phetteplace
Hi Caroline, That works! Thank you so much. Removing the if condition and using a more specific regex substitution changed only the field I wanted and left the other alone. Oddly, if I say I want to do this to the "1st" field it still shows the problematic behavior (both fields are modified, the

Re: [Koha] MARC modification templates problem

2023-08-09 Thread Caroline Cyr La Rose
Hi Eric, Did you try without the if? The regex replace should only replace the example.com links and leave the other ones alone. I tried in 23.05.02 with Copy and replace All field(s) 856 u to 856 u RegEx s/^https?:\/\/example.com/https://proxy.cca.edu/url?=https://example.com/ the record

Re: [Koha] MARC modification templates problem

2023-08-08 Thread Eric Phetteplace
Hi Caroline, Yes, they do happen to have different domains, one I want to preserve and one I want to proxy. Thank you for the suggestion! Using a more qualified regex seemed like it should work, but Koha still clobbers the second 856$u subfield. Here's a modified example: Record 245 _ _

Re: [Koha] MARC modification templates problem

2023-08-07 Thread Caroline Cyr La Rose
Hi Eric, This has been my experience as well. I haven't found a way to modify only one field when there are more that one of the same tag in the same record. Are the links you are trying to change all the same domain? Or a couple of different domains? If so, you could match the regex on a

[Koha] MARC modification templates problem

2023-08-04 Thread Eric Phetteplace
Hi collective wisdom, I'm running into a MARC modification template problem and I can't tell if I'm missing something or there's a bug/limitation. I know I could accomplish these edits with MARCEdit or a script, but I was hoping to use Koha's tools. I have a record with two 856 fields with

Re: [Koha] MARC modification templates w/ indicators?

2021-10-23 Thread Katrin Fischer
Hi Tasha, I believe at the moment it's not possible to use indicators in the MARC modification tool: *BugĀ 21860* - Marc modification templates cannot check or change indicators Katrin On 23.10.21 01:41, Bales (US), Tasha R

[Koha] MARC modification templates w/ indicators?

2021-10-22 Thread Bales (US), Tasha R
Do MARC modification templates support changes based on, or to, MARC indicators? For instance, I'd like to change all instances of 856 _8 to 956 _ _. However, I don't see a clear way to specify or insert indicators w/ or w/o RegEx. Are the indicators considered part of the field data? I

Re: [Koha] MARC modification templates question

2020-06-24 Thread Carlos Lopez
ext.1 | libr...@dml.vic.edu.au | library.dmlibrary.org.au -Original Message- From: Koha On Behalf Of Carlos Lopez Sent: Wednesday, 24 June 2020 10:21 AM To: koha Subject: [Koha] MARC modification templates question Hi all We're about to batch change several thousand records because we're

[Koha] MARC modification templates question

2020-06-23 Thread Carlos Lopez
Hi all We're about to batch change several thousand records because we're modifying the URL used to access our proxy server. To do this should we do the following? Add a new MARC modification template Add a new action to it: Copy and Replace > Every > 856 > u > to field > 856 > u > regex >

Re: [Koha] MARC Modification Templates & indicators

2016-08-30 Thread Jonathan Druart
Hi Eric, I confirm that MARC modification templates do not deal with indicators so far. Regards, Jonathan 2016-08-30 1:19 GMT+01:00 Eric Phetteplace : > Hi collective wisdom, > > We're trying to fix up an issue with our records by copying information > from the 810 MARC

[Koha] MARC Modification Templates & indicators

2016-08-29 Thread Eric Phetteplace
Hi collective wisdom, We're trying to fix up an issue with our records by copying information from the 810 MARC field (series added entry) to 490 (series statement) using MARC Modification Templates. Our template currently is just one action that looks like this: Copy All field(s) 810 __ to

[Koha] MARC modification templates

2015-05-13 Thread Katelyn Browne
Hi all, I've just about got our MARC modification template set up, but I have one major issue I can't solve: moving and modifying item prices. Here's what I do with MARCedit: --move all of 852 (where our vendor puts items) to 952 --(do other stuff on other subfields) --move 952$9 to 952$g

Re: [Koha] Marc Modification Templates

2014-07-09 Thread Jonathan Druart
Hi Nicole, I am not sure if that works in 3.16, but you can try the following rule: Copyfield 856$u with 856$u using the regexp s/^/PROXY_URL/ I am sure this works with the improvements I developed on bugs 11319 and 11413 (not in master yet). Regards, Jonathan 2014-07-09 4:27 GMT+02:00 Nicole

[Koha] Marc Modification Templates

2014-07-08 Thread Nicole Engard
Hi all, I'm looking for a way to add a proxy URL to the front of an existing 856$u using the MARC modification templates. I'm sure it's Regex, I'm just not so good at Regex so if you can provide and example I'd appreciate it and I'll even include it in the manual for all. Nicole