[Isis-users] Operator/date field in ABCD2.0f (2017-01-01) - subfields are switched

De Smet Egbert egbert.desmet at uantwerpen.be
Mon Dec 18 14:09:31 CET 2017


Hi,

the script dibujarhojadeentrada is a very complicated one (as the number of lines already indicates) and is maintained by Guilda Ascencio, so I prefer not to make any changes there now. 
But there is a solution : use the replace-function in the PFT. The problem as you describe it is only that the subfield markers need to be switched (^o -> ^d and v.v.) on-the-fly, which can be performed in the PFT by the statement (if applied on v980 e.g. the date/operator field in our MARC21) : 

replace(replace(replace(v980,'^d','~o'),'^o','^d'),'~o','^o')

This will show the field correctly, but if you need the real stored values to be changed, use a gizmo to perform the switch.

Egbert de Smet
Universiteit Antwerpen
________________________________________
From: isis-users <isis-users-bounces+egbert.desmet=ua.ac.be at iccisis.org> on behalf of Ligia Dias de Freitas <ligia.freitas at pucrs.br>
Sent: Monday, December 18, 2017 1:29 PM
To: isis-users at iccisis.org
Subject: [Isis-users] Operator/date field in ABCD2.0f (2017-01-01) -    subfields are switched

Hi,

I'm testing Github's version ABCD2.0f (2017-01-01) and found a problem: the field operator/date (OD) is saving like this:
^o20171218 11:46:08^dligia

While in the version ABCD2.0b (2015-03-25) it salves like this:
^d20171218 09:25:05^oligia

The difference is that in the current version it saves the date in the ^o subfield and the operator in the ^d subfield but I think it should be the other way around as it was before.

The code seems to be in lines 1405-1407 of the file dibujarhojadeentra.php but I’m not sure if it’s only there.

Is there a quick fix for this?

Thanks in advance
Lígia Freitas



More information about the isis-users mailing list