Error when attempting to upload MARC (0.7.0)

Help
tommyrot77
2010-08-06
2013-05-30
  • tommyrot77

    tommyrot77 - 2010-08-06

    Hi All,

    I'm getting the following error when I attempt to upload a .mrc file in version 0.7.0 of openbiblio - any thoughts/suggestions?

    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 54
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    Deprecated: Function split() is deprecated in C:\xampp\htdocs\obiblio\catalog\upload_usmarc.php on line 60
    MARC Record
    Tag Sub Data 
    020 a 9780141382968 
    082 a 413 
    082 2 22 
    099 a Picture Book 
    100 a Carle, Eric. 
    245 a My very first book of words / 
    245 c by Eric Carle. 
    260 a London : 
    260 b Puffin, 
    260 c c2006. 
    300 a [19] p. : 
    300 b col. ill. ; 
    300 c 18 cm. 
    500 a Title from cover. 
    500 a Board book. 
    500 a Split-page format. 
    500 a Text and illustrations on inside covers. 
    500 a First published in the USA: HarperCollins, 1974. 
    650 a Vocabulary 
    650 v Pictorial works 
    650 v Juvenile literature. 
    984 b 000777214 
    984 c C 
    984 d (Red Spot) 
    984 j 771637 
    984 k J 
    984 l PC 
    984 m st 
    984 n JPIC 
    984 o 12.95 
    984 u 1 
    984 x loc 
    984 y ALS 
    984 b 000777215 
    984 c C 
    984 d (Red Spot) 
    984 j 771637 
    984 k J 
    984 l PC 
    984 m st 
    984 n JPIC 
    984 o 12.95 
    984 u 1 
    984 x loc 
    984 y ALS 
    984 b 000780581 
    984 c C 
    984 d (Red Spot) 
    984 j 771637 
    984 k J 
    984 l PC 
    984 m st 
    984 n JPIC 
    984 o 12.95 
    984 u 1 
    984 x loc 
    984 y ALS 
    --------------------------------------------------------------------------------
    Raw Data:
    00954cam  2200253 a 450000500170000000800410001702000180005804000280007608200120010409900170011610000170013324500500015026000300020030000350023050000220026550000160028750000230030350000450032650000530037165000540042498400740047898400740055298400740062620090521114510.0060202r20061974enka   ar     000 0 eng c a9780141382968 aUkOxUbengcUkOxUdSSLP04a4132220 aPicture Book1 aCarle, Eric.10aMy very first book of words /cby Eric Carle. aLondon :bPuffin,cc2006. a[19] p. :bcol. ill. ;c18 cm. aTitle from cover. aBoard book. aSplit-page format. aText and illustrations on inside covers. aFirst published in the USA: HarperCollins, 1974. 0aVocabularyvPictorial worksvJuvenile literature. b000777214cCd(Red Spot)j771637kJlPCmstnJPICo12.95u1xlocyALS b000777215cCd(Red Spot)j771637kJlPCmstnJPICo12.95u1xlocyALS b000780581cCd(Red Spot)j771637kJlPCmstnJPICo12.95u1xlocyALS
    

    Cheers,

    Tom

     
  • tommyrot77

    tommyrot77 - 2010-08-06

    Okay, I figured out how to fix this myself.

    Did some reading and apparently the split function is deprecated in version 5.3 and up of PHP. This function can be replaced with explode

    To get it working I simply replaced all instances of the term split in the upload_usmarc.php file with the word explode

    Now working fine!

     
  • Hans van der Weij

    Thanks Tom,

    Although it's not an error (upload is performed correctly), it's a bit annoying to see a warning for every record imported.
    Compared results from your fix with old: results in database are identical.

    Fix implemented here: https://bitbucket.org/jgvdweij/obiblio/changeset/025dd262e8bb

    Nice side effect: Marc Upload is now much faster.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks