cannot sync because creator name is too long
When i try to sync i keep getting the following message: The creator name _____ is too long, shorten the field and sync again.
It seems that all the articles with creator fields that are too long are coming from psycinfo which I accessed through OVID. I downloaded the file from OVID as ris. How can I fix this? I have approximately 531 articles from psycinfo, should click correct for every article.
It seems that all the articles with creator fields that are too long are coming from psycinfo which I accessed through OVID. I downloaded the file from OVID as ris. How can I fix this? I have approximately 531 articles from psycinfo, should click correct for every article.
There's no way other than scripting to delete all editor fields. This is likely legitimate data that was just incorrectly formatted, so simply deleting it wouldn't be appropriate.
Here's a truncated excerpt of the output. Can you please tell me how I can upload / otherwise share files in this forum?
118.
TY - JOUR
ID - 2013-28549-002
DO - https://dx.doi.org/10.1525/sp.2013.60.3.302
T1 - Constructing the model immigrant: Movement strategy and immigrant deservingness in the New Sanctuary Movement.
A1 - Yukich, Grace
A2 - Alba, Allman, Avery, Batstone, Benford, Benford, Brotherton, Calavita, Capetillo-Ponce, Chavez, Chin, Chiricos, Chong, Corrigall-Brown, Cunningham, Dalton, Diani, Edelman, Foner, Fox, Fried, Fujiwara, Gilens, Goffman, Halfmann, Hays, Hondagneu-Sotelo, Hondagneu-Sotelo, Hoose, Jasper, Jasper, Kane, Kapur, Kim, Kim, King, Lee, Leitz, Marrow, Matesan, Min, Nepstad, O'Reilly, Ovando, Page, Pallares, Paschel, Perez, Petersen, Portes, Preston, Puga, Reese, Saito, Smith, Smith, Smith, Snow, Staudt, Tichenor, Voss, Warner, Waters, Welch, Welch, Wellman, Wuthnow, Yoo, Yoon, Yukich, Yukich
Y1 - 2013//
N1 - Annual Meeting of the American Sociological Association. 2010. A previous version of this article was presented at the aforementioned conference.
N2 - The model minority stereotype has been widely criticized for creating distinctions between racial groups by depicting some as more deserving than others. Immigration scholars have begun exploring similar distinctions among immigrant groups, with most research highlighting the role of anti-immigrant forces, the media, and policymakers in constructing divisions. Ethnographic research on the New Sanctuary Movement, a network of interfaith immigrant rights organizations, reveals that pro-immigrant activists also construct distinctions between "deserving" and "undeserving" immigrants. Building on frame alignment theory, which often focuses on movement discourse, I use a dramaturgical approach to highlight the nonrhetorical framing practices involved in creating these distinctions: in particular, the casting of select members of stigmatized groups and their public and visual association with more powerful actors. Through a type of frame transformation I call the model movement strategy-the use of model cases to challenge negative stereotypes of members of disadvantaged groups-New Sanctuary activists drew distinctions between model immigrants and those who did not share their dominant-friendly characteristics, implicitly portraying certain undocumented immigrants as less deserving of legal residency and citizenship. These findings suggest that the model movement strategy, an approach used by a variety of contemporary social movements, may have insidious consequences for the most vulnerable movement constituents. (PsycInfo Database Record (c) 2021 APA, all rights reserved)
KW - *Activism
KW - *Immigration
KW - *Policy Making
KW - *Racial and Ethnic Groups
KW - *Social Movements
KW - Stereotyped Attitudes
KW - Strategies
M3 - Social Processes & Social Issues [2900]
JF - Social Problems
VL - 60
IS - 3
SP - 302
EP - 320
CY - US
PB - University of California Press
PB - US
SN - 0037-7791
AD - Yukich, Grace: Quinnipiac University, Department of Sociology, 275 Mount Carmel Ave., Hamden, CT, US, 06518, grace.yukich@quinnipiac.edu
AD - Yukich, Grace: grace.yukich@quinnipiac.edu
M1 - Alba, R., & Nee, V. 1997. "Rethinking Assimilation Theory for a New Era of Immigration." International Migration Review 31:826-74.
M1 - Allman, D. D., & Beaty, M. D. (eds.). 2002. Cultivating Citizens: Soulcraft and Citizenship in Contemporary America. Lanham, MD: Lexington Books.
M1 - Avery, J. M., & Peffley, M. 2003. "Race Matters: The Impact of News Coverage of Welfare Reform on Public Opinion." Pp. 131-50 in Race and the Politics of Welfare Reform, edited by S. Schram, J. Soss, and R. Fording. Ann Arbor: University of Michigan Press.
M1 - Batstone, D., & Mendieta, E. (eds.). 1999. The Good Citizen. London, UK: Routledge.
M1 - Benford, R. D., & Snow, D. A. 2000. "Framing Processes and Social Movements: An Overview and Assessment." Annual Review of Sociology 26:611-39.
M1 - Benford, R. D., & Hunt, S. A. 1992. "Dramaturgy and Social Movements: The Social Construction and Communication of Power." Sociological Inquiry 62:36-55.
In any case, that's obviously just incorrect RIS output from wherever you're getting it, and you'd want to report it to the source in question. Zotero is handling it according to the RIS spec, which for A2 and similar fields says, "Each author must be on a separate line, preceded by the tag that corresponds to the author role".
(We could consider truncating automatically at 255 characters, since the RIS spec also says that it "can contain up to 255 characters for each field", but a better solution would probably be to add a wizard like we have for long tags that allows splitting/deleting incorrectly concatenated strings like these, since sometimes these might be valid authors or editors.)
You could fix this with find/replace in the file, but since you've already imported it, here's some code to fix it. Select all potentially affected items in Zotero and run this from Tools → Developer → Run JavaScript, which should delete any creators with a Last Name field longer than 255 characters:
var items = ZoteroPane.getSelectedItems();
for (let item of items) {
if (!item.isRegularItem()) continue;
let modified = false;
for (let i = 0; i < item.getCreators().length; i++) {
if (item.getCreators()[i].lastName.length > 255) {
item.removeCreator(i);
i--;
modified = true;
}
}
if (modified) {
await item.saveTx();
}
}
I'd recommend making a backup of zotero.sqlite in your Zotero data directory and temporarily disabling auto-sync before running it.
Can you also tell me how to disable sync?
As I say, it might be nice if Zotero showed a wizard to make it easier to split these up or delete them, but you have to fix them one way or another, and it'd be better to just have valid RIS data. Again, the RIS data from the OUP page is correct, so you should ask your librarian to export from somewhere that doesn't do this, report it to whatever site they're using, or just fix the file with find/replace.
The code does what I said it does: delete any creators in the selected items with a Last Name field longer than 255 characters.
You can temporarily disable auto-sync from the Sync pane of the Zotero preferences. But if you already ran the code with items selected, it already should've deleted the long creators and there wouldn't be any reason to disable auto-sync.
for (let item of ZoteroPane.getSelectedItems()) {
if (!item.isRegularItem()) continue
let modified = false
var creators = []
for (const creator of item.getCreators()) {
if (creator.lastName.length <= 255) {
creators.push(creator)
}
else {
for (const lastName of creator.lastName.split(/\s*,\s*/).filter(n => n)) {
creators.push({ creatorTypeID: creator.creatorTypeID, lastName })
}
modified = true
}
}
if (modified) {
item.setCreators(creators)
await item.saveTx()
}
}
===>undefined<=== (undefined)
Do you have any suggestions as to what this means, and / or alternative codes that address this issue?
Editor first name field: Apple
Editor second name field: Apple Apple Asher Bell Bennett Bennett Brand Cabezas Chan Chan Chin Chun Coleman Crystal Freeman Fuller Greer Hamamota Herrnstein Hoare Kohn Koo Kozol Lawler Lee Lee Lee Mathis Min Oxnam Paige Perie Perie Peterson Peterson Ramirez Richards Ryan Scott Shin Silberman Sirotnik Sleeter Spring Suzuki Suzuki Takagi Tang Teranishi Teranishi Toppo Tsukada Wells Wong Wright Yin
However, this problem has not disappeared when running the code.
Anyway, run this code, which will check both fields, and let us know what it gives for a result:
var log = [];
var items = ZoteroPane.getSelectedItems();
for (let item of items) {
if (!item.isRegularItem()) continue;
log.push("===========\nChecking " + item.getDisplayTitle());
let modified = false;
for (let i = 0; i < item.getCreators().length; i++) {
let creator = item.getCreators()[i];
let creatorStr = `'${creator.firstName}' '${creator.lastName}'`;
if (creator.firstName.length > 255 || creator.lastName.length > 255) {
log.push(` - Removing ${creatorStr}`);
item.removeCreator(i);
i--;
modified = true;
}
else {
log.push(` - Not removing ${creatorStr}`);
}
}
if (modified) {
await item.saveTx();
}
}
return log.join("\n");
Checking Challenging the politics of the "model minority" stereotype: A case for educational equality
- Not removing 'Tianlong' 'Yu'
- Removing 'Apple Apple Asher Bell Bennett Bennett Brand Cabezas Chan Chan Chin Chun Coleman Crystal Freeman Fuller Greer Hamamota Herrnstein Hoare Kohn Koo Kozol Lawler Lee Lee Lee Mathis Min Oxnam Paige Perie Perie Peterson Peterson Ramirez Richards Ryan Scott Shin Silberman Sirotnik Sleeter Spring Suzuki Suzuki Takagi Tang Teranishi Teranishi Toppo Tsukada Wells Wong Wright Yin' 'Apple'