Bookends -> Refbase Problems

A place for users to ask each other questions, make suggestions, and discuss Bookends.
GertW
Posts: 18
Joined: Wed Apr 20, 2005 6:22 am
Location: Germany
Contact:

Post by GertW »

msteffens wrote: The contents of the 'label' tag in Endnote XML will be copied to the refbase 'call_number' field. OMM, Bookends exports contents of the 'User1' (Key) field to the 'label' tag in Endote XML which then gets imported into the 'call_number' field. I.e., by default, you should be able to transfer contents of the Bookends 'User1' field to the refbase 'call_number' field. Does this work for you?
no, it does not. does this have anything to do with the modifications I did in import.inc.php in the RIS TO REFBASE section (see previous posting). I have outcommented the "ID" => "call_number"?
msteffens wrote: Also note that in recent versions of Bibutils (v3.35 or greater) the RIS 'U1' tag is used to indicate the type of thesis (e.g. "Masters thesis" or "Ph.D. thesis"), i.e. future versions of refbase will associate the 'U1' tag with the 'thesis' field.
ok, where should I then put my User1 information (aka 'Label')? Any suggestions? I think we are using Bibutils v.3.37.
msteffens
Posts: 42
Joined: Thu Jul 19, 2007 10:04 am
Location: Germany
Contact:

Post by msteffens »

GertW wrote:no, it does not. does this have anything to do with the modifications I did in import.inc.php in the RIS TO REFBASE section (see previous posting). I have outcommented the "ID" => "call_number"?
If you uncomment again the "ID" => "call_number" mapping (in function 'risToRefbase()' in file 'import.inc.php') the contents of the Bookends 'User1' field should get exported to the refbase 'call_number' field when importing records directly from Bookends via the Refs > "Upload To Refbase" menu command.
GertW wrote:where should I then put my User1 information (aka 'Label')? Any suggestions? I think we are using Bibutils v.3.37.
If you want to manually export records from Bookends as RIS and transfer your contents from the Bookends 'User1' field to the refbase 'call_number' field, then you could do either of the following:

- Edit your Bookends RIS exporter so that it outputs contents from the 'User1' field to the RIS 'ID' tag. By default, refbase imports contents of the RIS 'ID' tag to its 'call_number' field.

Or, alternatively:
- Edit your Bookends RIS exporter so that it outputs contents from the 'User1' field to the RIS 'U4' tag (or any other user definable RIS tag except 'U1')
- Then, edit function 'risToRefbase()' in file 'import.inc.php' so that it has a mapping of "U4" => "call_number". Btw, you don't need to comment the "ID" => "call_number" mapping, since tag mappings higher up in the mappings array get overwritten by any subsequent mappings to the same refbase field (unless the RIS tags are also specified in '$tagsMultipleArray' in which case the info will get merged).

Hope this helps, Matthias
GertW
Posts: 18
Joined: Wed Apr 20, 2005 6:22 am
Location: Germany
Contact:

Post by GertW »

msteffens wrote: Btw, you don't need to comment the "ID" => "call_number" mapping, since tag mappings higher up in the mappings array get overwritten by any subsequent mappings to the same refbase field (unless the RIS tags are also specified in '$tagsMultipleArray' in which case the info will get merged).
no, that does not work (blank page: import_modify.php). Only when I outcomment it works correctly.

But back to BE: what still bugs me is the editor issue with the RIS format, I haven't found a solution yet (see one of previous posts). It consistently puts the second etc. editors with the authors (also in the default RIS format that came with BE). the RIS spec pdf was also of no help here.
msteffens
Posts: 42
Joined: Thu Jul 19, 2007 10:04 am
Location: Germany
Contact:

Post by msteffens »

GertW wrote:no, that does not work (blank page: import_modify.php). Only when I outcomment it works correctly.
In PHP, the comma after an array item (in this case, the tag mapping) can be omitted if it's the last item in an array, but all other array items must be separated by a comma. Please make sure that there's a comma character after the "ID" => "call_number" mapping. If you add the comma, I'm pretty sure that it will work.

My previous statement was slightly incorrect, though, since, in case of non-repeatable RIS tags that get mapped to the same refbase field, the order of RIS tags within the RIS source data determines which tag content gets imported. Subsequent tags with the same mapping will overwrite previous ones. Sorry for the confusion.

My apologies for hijacking the Bookends forums with this refbase-specific stuff, we should probably take any further questions that are solely related to refbase to the refbase forums. Thanks, Matthias
GertW
Posts: 18
Joined: Wed Apr 20, 2005 6:22 am
Location: Germany
Contact:

Post by GertW »

msteffens wrote: In PHP, the comma after an array item (in this case, the tag mapping) can be omitted if it's the last item in an array, but all other array items must be separated by a comma. Please make sure that there's a comma character after the "ID" => "call_number" mapping. If you add the comma, I'm pretty sure that it will work.
the comma did the trick. thanks. further issues if they arise will be taken to the refbase forums.
thanks

Gert
Post Reply