You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I wrote a small postscript that modifies some conference titles when exporting items and it works great.
I now noticed that the postscript does not run when using the quick export feature, i.e. either ctrl+shift+c or dragging and dropping an item.
I get the following outputs from the exports (booktitle is changed by my postscript):
Quick export:
@inproceedings{HuSa03a,
title = {Generalizing Preference Elicitation in Combinatorial Auctions},
booktitle = {Proc2ndaamas},
author = {Hudson, B. and Sandholm, T.},
year = {2003},
pages = {1014--1015},
publisher = {acm},
date-modified = {2015-02-19 14:55:58 +0000}
}
Export using right click, export item and choosing BetterBibTex:
@inproceedings{HuSa03a,
title = {Generalizing Preference Elicitation in Combinatorial Auctions},
author = {Hudson, B. and Sandholm, T.},
year = {2003},
pages = {1014--1015},
publisher = {acm},
date-modified = {2015-02-19 14:55:58 +0000},
booktitle = {Proceedings of the 2nd {{International Conference}} on {{Autono-mous Agents}} and {{Multiagent Systems}} ({{AAMAS}})}
}
My postscript
constconferences={aaai: "AAAI Conference on Artificial Intelligence (AAAI)",aaaiold: "National Conference on Artificial Intelligence (AAAI)",aamas: "International Conference on Autono\-mous Agents and Multiagent Systems (AAMAS)",acm: "ACM Press",acmec: "ACM Conference on Economics and Computation (ACM-EC)",acmecold: "ACM Conference on Electronic Commerce (ACM-EC)",adt: "International Conference on Algorithmic Decision Theory (ADT)",asiacrypt: "Asiacrypt Conference",ccc: "Annual IEEE Conference on Computational Complexity (CCC)",ciac: "International Conference on Algorithms and Complexity (CIAC)",cocoon: "Annual International Computing and Combinatorics Conference (COCOON)",comsoc: "International Workshop on Computational Social Choice (COMSOC)",cryptadv: "Advances in Cryptology - Proceedings of the",crypto: "Annual International Cryptology Conference (CRYPTO)",ecai: "European Conference on Artificial Intelligence (ECAI)",eurocrypt: "Eurocrypt Conference",fc: "Annual Conference on Financial Cryptography (FC)",fcds: "International Conference on Financial Cryptography and Data Security (FC)",focs: "Symposium on Foundations of Computer Science (FOCS)",fsttcs: "IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS)",icalp: "International Colloquium on Automata, Languages, and Programming (ICALP)",icml: "International Conference on Machine Learning (ICML)",ieee: "IEEE Computer Society Press",ijcai: "International Joint Conference on Artificial Intelligence (IJCAI)",ip: "In preparation",ipco: "Conference on Integer Programming and Combinatorial Optimization (IPCO)",isaac: "International Symposium on Algorithms and Computation (ISAAC)",isaim: "International Symposium on Artificial Intelligence and Mathematics (ISAIM)",kr: "International Conference on Principles of Knowledge Representation and Reasoning (KR)",lnai: "Lecture Notes in Artificial Intelligence (LNAI)",lncs: "Lecture Notes in Computer Science (LNCS)",neurips: "Conference on Neural Information Processing Systems (NeurIPS)",path: "http://dss.in.tum.de/files/brandt-research/",pkc: "International Workshop on Practice and Theory in Public Key Cryptography (PKC)",// proc: "Proceedings of the",sagt: "International Symposium on Algorithmic Game Theory (SAGT)",sb: "Submitted",soda: "Annual ACM-SIAM Symposium on Discrete Algorithms (SODA)",springer: "Springer-Verlag",stacs: "International Symposium on Theoretical Aspects of Computer Science (STACS)",stoc: "Annual ACM Symposium on Theory of Computing (STOC)",ta: "Forthcoming",tark: "Conference on Theoretical Aspects of Rationality and Knowledge (TARK)",tum: "Department for Computer Science, Technical University of Munich (TUM)",uai: "Annual Conference on Uncertainty in Artificial Intelligence (UAI)",ur: "Working paper",wine: "International Workshop on Internet and Network Economics (WINE)",wp: "Working paper",}constproc="Proceedings of the ";constconference_string=zotero.publicationTitle;console.log("POSTSCRIPT: Running...");varfull_name;if(conference_string.substring(0,4).toLowerCase()=="proc"&&conference_string.at(4)!=="e"){constconference_spaceless=conference_string.replaceAll(" ","");full_name=""full_name=full_name+proc;vari=4;console.log(conference_string,conference_spaceless)while(i<conference_spaceless.length&&conference_spaceless.at(i)>="0"&&conference_spaceless.at(i)<="9"){full_name=full_name+conference_spaceless.at(i);i+=1;}full_name=full_name+conference_spaceless.substring(i,i+2)+" ";conference_short_name=conference_spaceless.substring(i+2);if(conferences[conference_short_name]){full_name=full_name+conferences[conference_short_name];}else{console.log("POSTSCRIPT: unknown conference short name",conference_short_name);full_name=conference_string;}}else{full_name=conference_string;console.log("POSTSCRIPT: No abbreviation detected");}tex.add({name: "booktitle",value: full_name});
The text was updated successfully, but these errors were encountered:
Debug log ID
YX97ZMD8-refs-euc/6.7.258-7
What happened?
Hello,
I wrote a small postscript that modifies some conference titles when exporting items and it works great.
I now noticed that the postscript does not run when using the quick export feature, i.e. either ctrl+shift+c or dragging and dropping an item.
I get the following outputs from the exports (booktitle is changed by my postscript):
Quick export:
Export using right click, export item and choosing BetterBibTex:
My postscript
The text was updated successfully, but these errors were encountered: