Skip to content

Commit e4cd261

Browse files
authored
Merge pull request #728 from lcnetdev/sor-splits
SOR Splitting
2 parents f29d620 + 22695a9 commit e4cd261

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/components/panels/edit/modals/NacoStubCreateModal.vue

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,12 +1588,24 @@
15881588
}
15891589
}
15901590
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)
15951597
}
15961598
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+
15971609
let addingDefaultExtraMarcStatements = false
15981610
15991611
if (this.preferenceStore.returnValue('--b-edit-complex-nar-advanced-mode')){

0 commit comments

Comments
 (0)