fix_doc_do_file_08: ADD-SUBFIELD doesn't work
- Article Type: General
- Product: Aleph
- Product Version: 20
Description:
We have 856 fields in incoming records that look like this:
000000001 85640 L $$uhttp://proxy.lib.abc.edu:90/login?url=http://site.ebrary.com/lib/abck/Top?id=10484268$$zOnline access :
I want to delete the existing subfield $$z and add a new subfield $$z so that the fields look like this:
000000001 85640 L $$uhttp://proxy.lib.abc.edu:90/login?url=http://site.ebrary.com/lib/abck/Top?id=10484268$$zOnline access : 1 simultaneous user
Using the EBK1 fix routine in manage-37/tab_fix, I have created a file called ybp_ebook_fix2 with the following contents:
! 2 3 4 5 6 7 8 9
!-!!!!!-!!-!-!!!-!!!-!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1 85640 DELETE-SUBFIELD z
1 85640 ADD-SUBFIELD z,Online access : 1 simultaneous user
However, the resulting 856 fields look like this:
000000001 85640 L $$uhttp://proxy.lib.abc.edu:90/login?url=http://site.ebrary.com/lib/abck/Top?id=10484268$$8L
Resolution:
The second command needs to be a "2" (rather than "1"):
! 2 3 4 5 6 7 8 9
!-!!!!!-!!-!-!!!-!!!-!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1 85640 DELETE-SUBFIELD z
2 85640 ADD-SUBFIELD z,Online access : 1 simultaneous user
Additional Information
p_file_08
- Article last edited: 10/8/2013