Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.0-rc5
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2007 at 11:56 UTC
Updated:
22 Apr 2011 at 01:45 UTC
Jump to comment: Most recent
Comments
Comment #1
rjerome commentedShouldn't be a problem, I can put in a user definable option for that.
Ron.
Comment #2
rjerome commentedBy the way, the way it works now is that it looks for different separators, first a semicolon then a comma and then a space, so if you had more than one keyword containing commas separated by semicolons, it would split on the semicolons, however if you just have one keyword containing commas that keyword would get split on the comma.
Ron.
Comment #3
jonmower commentedI'm always importing from Endnote and always use only semicolons as keywords separators, so that user definable option is what I need! Thanks
Comment #4
jonmower commentedI just noticed that "Henry's constant ensemble" was split into "Henry" and "s constant ensemble"
You didn't mention apostrophes as a separator. Are they being used or is this a bug?
Comment #5
jonmower commentedI was wrong. "Henry's constant ensemble" is split into "Henry" and "'" and "s constant ensemble"
seems like a bug
Comment #6
rjerome commentedI'm a bit surprised it split on the apostrophe, but none the less, this bit of code needs a little work and I think the first suggestion of a user defined character to split on will be the answer.
Ron.
Comment #7
jonmower commentedJust to make sure I'm being clear...it'd didn't split on the apostrophe by created two keywords one from before the apostrophe and one from after (like it would for a comma or semicolon). Instead, it creates three keywords: 1 from the text before the apostrophe, a second keyword that is the apostrophe itself, and a third keyword from the text after the apostrophe.
Comment #8
rjerome commentedThis isn't user selectable yet, but it is now forced to split only on semicolons.
Ron.
Comment #9
jonmower commentedThis isn't working for me. Keywords are stilling being split using commas rather than being forced to only use semicolons.
Comment #10
rjerome commentedHmm, this is strange. What version of PHP are you using?
Could you check the first line of the biblio.module file to confirm the version and date?
Ron.
Comment #11
jonmower commentedPHP 4.4.7
biblio.module,v 1.36.2.101 2007/06/12 01:59:16
Comment #12
rjerome commentedCould you take a look in the database and see if in fact the keywords are actually separated by semicolons? I'm a little mystified as to why it would still be splitting on commas.
Ron.
Comment #13
rjerome commentedI just thought of another thing... Do you have any caching turned on in Drupal?
Comment #14
jonmower commentedI don't know anything about caching in drupal so presumably I don't have any turned on unless it's on by default
The example I just tried was to import a record in Endnote 8+ xml format with a single keyword 1,2-apple
That keyword was split into two: 1 and 2-apple
If you want me to look in the database, give me the sql query to run via phpadmin (I'm pretty clueless about sql)
Comment #15
rjerome commentedI just entered that keyword (1,2-apple) on my development site and it works fine (doesn't split on the comma).
Check "admin/settings/performance" for cache settings.
Ron.
Comment #16
jonmower commentedcaching is disabled
Comment #17
rjerome commentedI don't know what to say, I just down graded to php 4.x on my development machine and it still works.
Is there any chance that you have two "biblio/" module directories in your drupal tree? I just seems like your using an older version of the module.
Ron.
Comment #18
jonmower commentedCould this be another 5.1 vs 4.7 issue?
It's not working on my two 5.1 sites where biblio is installed
I just installed it on a 4.7 site and it works
Comment #19
rjerome commentedI've tried it on both 4.7 and 5.x (I do my primary development on 5.x and back port). Did you search the 5.x tree for duplicate biblio.module files? (this has happened to me before when I accidentally extracted the biblio archive in a directory where I had not intended and it took me a while to figure out why my changes were not taking affect)
Ron.
Comment #20
jonmower commentedYes, I searched for a duplicate biblio.module and did not find one. If the problem is something I've done, it's probably something I've done intentionally since I have the same problem on both of my 5.1 installations.
I now see that it's not a problem with keywords. It's a problem with the taxonomy tags generated from the keywords. I had suppressed the display of keywords since the tags were being displayed also. I assumed that the tags and keywords were the same. I just re-enabled the display of keywords and see that the keyword doesn't split with the comma...only the tags do.
Comment #21
rjerome commentedSo I guess that's a good news(for me)/bad news(for you) type scenario.
Glad we finally got to the bottom of it.
Ron.
Comment #22
gustav commentedI changed the title and reclassified this as a bug.
Apparently the biblio module does not register the keywords as taxonomy terms one-by-one but submits the whole string and of course the taxonomy module only splits keywords on commas. A partial solution would be to let the biblio module do the splitting first and then register the keywords individually as taxonomy terms. There is still the potential problem that taxonomy terms are not allowed to contain commas, but I don't think there will be many keywords that contain commas, so this is not a serious problem.
Why does the biblio module maintain its own Keywords field rather than always using the taxonomy module for this?
Comment #23
summit commentedSubscribing, greetings, Martijn
Comment #24
phil.cryer commentedSubscribing as well, thanks.
Comment #25
rjerome commentedIf you want to enter a taxonomy term which contains a comma, you can just enclose the whole thing in double quotes and then separate the quoted portions with commas to retain the embedded comma
i.e. "1,2-apple", "1,2-orange"
will will not get split on the comma between the 1 and 2.
As for why not only use taxonomy, I took a brief foray down that road and discovered the very real possibility that keywords could get separated from the publication data or independently deleted, then you have lost part of your data. The only real way to maintain data integrity is to manage all the data internally.
Comment #26
pimousse98 commentedsubscribing. Thanks.
Comment #27
Anonymous (not verified) commentedI'm not using taxonomies with this module, at the moment, but noticed there's a missing initialization of the keyword separator string with the biblio settings value, in biblio.pages.inc:_biblio_keyword_links:
Comment #28
rjerome commentedRight you are.
Thanks,
Ron.
Comment #29
bekasu commentedmarking this closed. The solution is to use double quotes and the most current version of biblio and drupal.
bekasu
Comment #30
tourendal commentedI am using spaces to separate keywords in my BibTeX files. This bug causes all my keywords to be mangled into one long string because the separator from Biblio is ignored.