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
Adaptation Bibliotheque nationale de France.js for the new BnF catalog #1051
Conversation
@@ -41,7 +41,8 @@ var BnfClass = function() { | |||
See http://archive.ifla.org/VI/3/p1996-1/appx-c.htm. | |||
*/ | |||
function getCreatorType(aut) { | |||
switch(aut['4']) { | |||
typeAut = aut['4'].replace(/\s/g,""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be var typeAut
and I'd use .trim()
instead of the replace.
@symac -- if you have a minute to look over this? Makes a lot of sense to me, but you wrote most of the code. |
Suppressions method getDCType and translateDCType. These methods don't work with any display.
Hello, |
Hello, Best regard 2016-04-22 16:41 GMT+02:00 Sebastian Karcher notifications@github.com:
|
@@ -41,7 +41,9 @@ var BnfClass = function() { | |||
See http://archive.ifla.org/VI/3/p1996-1/appx-c.htm. | |||
*/ | |||
function getCreatorType(aut) { | |||
switch(aut['4']) { | |||
//typeAut = aut['4'].replace(/\s/g,""); | |||
typeAut = aut['4'].trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're still not declaring the variable here. Needs to be var typeAut = ...
Looks good to me otherwise. |
Hello |
Trying the new translator I have encountered an error when trying to get list (but I believe they also exist in the previous version, seems BnF has updated their markup). In getSelectedItems function, there is the following line : that needs to be replaced by : The div with the class notice-synthese has been added meanwhile I believe. Otherwise I have not found any error with some tests, seems ok to me. |
don't do anything when the page type is undefined
Hello Best regard |
Hello, I corrected the last error. Is it good? what happens when it is ok ? Best regard Le 9 mai 2016 14:35, "Sylvain Machefert" notifications@github.com a
|
thanks! |
Hello 2016-05-19 15:26 GMT+02:00 Sebastian Karcher notifications@github.com:
|
zotero#1051) * adaptation for a new markup for the list. * don't do anything when the page type is undefined
zotero#1051) * adaptation for a new markup for the list. * don't do anything when the page type is undefined
The changes consist on :
the Import works whatever display style (intermarc, unimarc, public)
in the field 'URL' there is a ARK link of the notice
the URL of numeric document is in field "attachement document"
correction for the role detection
The document type detection uses the field Unimarc
Modification of the field "source"