Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ind not defined #10

Closed
horaciod opened this issue Oct 21, 2015 · 4 comments
Closed

ind not defined #10

horaciod opened this issue Oct 21, 2015 · 4 comments

Comments

@horaciod
Copy link

during some tests with mrc files I found a bug when there is no indicators (may be the files are corrupted :))

my change in line 454 or marcjs.js to evaluate the ind var ( in my case is undefined)
var ind = element[1];
if (ind != undefined ){
attr.ind1 = ind.substr(0,1);
attr.ind2 = ind.substr(1);
}

@fredericd
Copy link
Owner

Could you attach a sample file to this github issue?

@horaciod
Copy link
Author

this is the record with the error
http://bibliotecas.uncu.edu.ar/explorador/Record/OEDSID0005
Obviously is an error with the indeicator ( a value instead of a number ) but this happend with some of our files.
MARCXML pasted.


01375Cam#a2200421#a#4500
OEDSID0005
OED
19990110015819
s2002 ag d ||m 001 0 spa d

4-157103-9 011.75 20 Sección Tesis T011.75 (T-55) GON González, Sara Beatriz El trabajo experimental en la E.G.B. : un instrumento de cambio metodológico / Sara Beatriz González ; [Director de Tesis: Ángel Luis Plastino]. [6], 1-[107] h. : graf. col. ; 30 cm. Tesis (Maestría) -- Facultad de Educación Elemental y Especial, Universidad Nacional de Cuyo ; Universidad de Alcalá, 2002. EDUCACIÓN unescot INVESTIGACIÓN unescot CIENCIAS unescot FÍSICA unescot MÉTODOS DE INVESTIGACIÓN unescot MÉTODOS EXPERIMENTALES unescot MÉTODOS DE ENSEÑANZA unescot ESTUDIOS DE CASOS unescot ENCUESTAS unescot ANÁLISIS DE DATOS unescot ENTREVISTAS TRABAJO EXPERIMENTAL PROTOCOLO DE OBSERVACIÓN Plastino, Ángel Luis, dir.. imp DON 8853 res mab

@fredericd
Copy link
Owner

Apparently, you encountered this error by parsing a MARCXML file. Do you have an xml file containing a record with this empty indicator? For me, it could be considered as a non-error, since it means that you input xml file is malformed.

@horaciod
Copy link
Author

I'm parsing a BIG ISO file.
yes, the record is malformed because allow a "A" letter in indicator
position.
Maybe I need to validate the iso with another tool previously.
Thanks for the support.

Lic. Horacio Degiorgi
http://bdigital.uncu.edu.ar
http://sid.uncu.edu.ar
Mendoza - Argentina

On Wed, Oct 21, 2015 at 8:42 AM, Frédéric Demians notifications@github.com
wrote:

Apparently, you encountered this error by parsing a MARCXML file. Do you
have an xml file containing a record with this empty indicator? For me, it
could be considered as a non-error, since it means that you input xml file
is malformed.


Reply to this email directly or view it on GitHub
#10 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants