| 71 | | if(typeof(creators[0]) != "string") { // see if creators are in a container |
| 72 | | try { |
| 73 | | var creators = Zotero.RDF.getContainerElements(creators[0]); |
| 74 | | } catch(e) {} |
| | 71 | if(typeof(creators[0]) != "string") { |
| | 72 | if(typeof(creators[0]) != "string") { |
| | 73 | // see if creators are in a container, but if they don't seem to be, |
| | 74 | // then we don't attempt to extract them. |
| | 75 | try { |
| | 76 | var newCreators = Zotero.RDF.getContainerElements(creators[0]); |
| | 77 | } catch (e) { |
| | 78 | Zotero.debug("Exception caught in Zotero.RDF.getContainerElements"); |
| | 79 | } |
| | 80 | if (creators.length === newCreators.length) { |
| | 81 | creators = newCreators; |
| | 82 | } |
| | 83 | } |