|
1588 | 1588 | } |
1589 | 1589 | } |
1590 | 1590 |
|
1591 | | - if (this.statementOfResponsibility && this.statementOfResponsibility.split(/,?\s+and\s+|,/).length>1){ |
1592 | | - this.statementOfResponsibilityOptions = this.statementOfResponsibility.split(/,?\s+and\s+|,/) |
1593 | | - } else if (this.statementOfResponsibility && this.statementOfResponsibility.split(/,?\s+und\s+|\s+e\s+|;/).length>1){ |
1594 | | - this.statementOfResponsibilityOptions = this.statementOfResponsibility.split(/,?\s+und\s+|\s+e\s+|;/) |
| 1591 | + // /\s{1};\s{1}|,\s*(?=[^)^\]]*(?:\(|\[|$))|\&|and|und/g) --> split on <space>;<space> and commas not in () |
| 1592 | + // favor splitting on semicolon. Seems reliable to get the first name without bleed from other names. But after that, anything can happen |
| 1593 | + if (this.statementOfResponsibility && this.statementOfResponsibility.split(/,?\s+and|und|\&\s+|\s+e\s+|;/g).length>1){ |
| 1594 | + this.statementOfResponsibilityOptions = this.statementOfResponsibility.split(/,?\s+and|und|\&\s+|\s+e\s+|;/g) |
| 1595 | + } else if (this.statementOfResponsibility && this.statementOfResponsibility.split(/,?\s+and|und|\&\s+|,/g).length>1){ |
| 1596 | + this.statementOfResponsibilityOptions = this.statementOfResponsibility.split(/,?\s+and|und|\&\s+|,/g) |
1595 | 1597 | } |
1596 | 1598 |
|
| 1599 | + // SOR examples that make rules difficult |
| 1600 | + // Cecilia Leibovitz ; photographs by David Lewis Taylor & Talia Marek |
| 1601 | + // Ana Rodriguez Alvarez, Jeffrey J. Mora Sanchez (directores) ; prologo E. Raul Zaffaroni; prologo a la edicion costarricense Javier Llobet Rodriguez |
| 1602 | + // Sally Friedman and Davy Schultz, Editors |
| 1603 | + // Pedro Romaguera Esteva ; pròleg, Dr. Jordi Maíz Chacón, Professor de la UIB |
| 1604 | + // Dina de Sousa e Santos (organizadora) ; prefácios, Professor Phillip Rothwell (Universidade de Oxford), Doutora Elisabete Vera Cruz (Universidade Agostinho Neto, UAN) |
| 1605 | + // Archie Bogle and Don McKay ; compiled by by Gordon Andreassend, Andrew Blackman and Don McKay |
| 1606 | + // editor-in-chief, Elaine Wyllie ; associate editors, Barry E. Gidal, Ahsan Moosa Naduvil Valappil, Howard P. Goodkin, Elaine Wirrell, Stephan Schuele |
| 1607 | + // Alberto Pitta ; organização, Thais Darzé, Paulo Darzé ; curadoria e texto, Daniel Rangel |
| 1608 | +
|
1597 | 1609 | let addingDefaultExtraMarcStatements = false |
1598 | 1610 |
|
1599 | 1611 | if (this.preferenceStore.returnValue('--b-edit-complex-nar-advanced-mode')){ |
|
0 commit comments