Fix whitespace and description in build_typeSchemaData.html
This commit is contained in:
parent
12e70460dc
commit
b60fdacd3f
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
<title>Build schemaData.js</title>
|
<title>Build schemaData.js</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>This script builds schemaData.js, which contains Zotero schema information for the connector.</p>
|
<p>This script builds typeSchemaData.js, which contains Zotero schema information for the connector.</p>
|
||||||
<p id="result"></p>
|
<p id="result"></p>
|
||||||
<script src="../include.js"></script>
|
<script src="../include.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
var types = Zotero.ItemTypes.getTypes();
|
var types = Zotero.ItemTypes.getTypes();
|
||||||
|
|
||||||
var fieldIDs = yield Zotero.DB.columnQueryAsync("SELECT fieldID FROM fieldsCombined");
|
var fieldIDs = yield Zotero.DB.columnQueryAsync("SELECT fieldID FROM fieldsCombined");
|
||||||
var baseMappedFields = Zotero.ItemFields.getBaseMappedFields();
|
var baseMappedFields = Zotero.ItemFields.getBaseMappedFields();
|
||||||
|
|
||||||
for (let fieldID of fieldIDs) {
|
for (let fieldID of fieldIDs) {
|
||||||
var fieldObj = [/* name */Zotero.ItemFields.getName(fieldID)];
|
var fieldObj = [/* name */Zotero.ItemFields.getName(fieldID)];
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write to file
|
// Write to file
|
||||||
var nsIFilePicker = Components.interfaces.nsIFilePicker;
|
var nsIFilePicker = Components.interfaces.nsIFilePicker;
|
||||||
var fp = Components.classes["@mozilla.org/filepicker;1"]
|
var fp = Components.classes["@mozilla.org/filepicker;1"]
|
||||||
.createInstance(nsIFilePicker);
|
.createInstance(nsIFilePicker);
|
||||||
fp.init(window, Zotero.getString('dataDir.selectDir'), nsIFilePicker.modeGetFolder);
|
fp.init(window, Zotero.getString('dataDir.selectDir'), nsIFilePicker.modeGetFolder);
|
||||||
|
|
Loading…
Reference in a new issue