Zotero: add basic icons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I6b38667c660c165afc7d762bced1a1c4d8213554
This commit is contained in:
parent
976b466796
commit
425471634b
4 changed files with 14 additions and 4 deletions
1
browser/images/lc_zoterobook.svg
Normal file
1
browser/images/lc_zoterobook.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.2 KiB |
1
browser/images/lc_zoterojournalArticle.svg
Normal file
1
browser/images/lc_zoterojournalArticle.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m5 3v18h14v-14.2705905l-4-3.7294095z" fill="#fafafa"/><path d="m5 2c-.554 0-1 .446-1 1v18c0 .554.446 1 1 1h14c.554 0 1-.446 1-1v-10.109375-3.6412209-.2079239c0-.4506799.09887-.4265951-.604637-1.0675892l-3.307389-3.2370335c-.709525-.7368575-.711223-.7368575-1.094804-.7368575h-.331557-.661613zm0 1h9v4c0 .554.446 1 1 1h4v13h-14z" fill="#3a3a38"/><path d="m15 7h4l-4-4z" fill="#fafafa" fill-rule="evenodd"/><g fill="#1e8bcd" stroke-width="5.01122"><path d="m13 9h5v1h-5z" stroke-width="5.602714"/><path d="m6 15h12l-.000152 1h-11.999848z"/><path d="m6.000114 18h7.999886l-.000114 1h-7.999886z"/><path d="m13 12h5l-.00019 1h-4.99981z" stroke-width="5.602714"/></g><path d="m21.089844 15h-2.65625q-.46875 0-.722657-.214844-.253906-.214843-.351562-.605468l-1.523437-6.2304693h-11.0156255l-3.0664063 6.2304693q-.15625.332031-.4882812.585937-.33203125.234375-.76171875.234375h-2.67578125l13.027344-25.664063h3.496094zm-15.0390628-9.53125h9.1796878l-2.558594-10.5078125q-.09766-.46875-.234375-1.0742187-.117187-.625-.214844-1.328125-.273437.703125-.527343 1.328125-.253907.625-.46875 1.09375z" fill="#3a3a38" transform="matrix(.27234042 0 0 .27234042 6.591489 8.914894)"/></svg>
|
After Width: | Height: | Size: 1.2 KiB |
1
browser/images/lc_zoterothesis.svg
Normal file
1
browser/images/lc_zoterothesis.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.7 KiB |
|
@ -203,12 +203,18 @@ L.Control.Zotero = L.Control.extend({
|
|||
|
||||
// columns: Array of details which will be displayed in the dialog
|
||||
// entryData: Object containing extra details related to the entry
|
||||
createEntry: function (index, columns, entryData) {
|
||||
this.items.push(Object.assign({ 'columns': columns.map(
|
||||
createEntry: function (index, columns, entryData, hasIcon) {
|
||||
if (hasIcon) {
|
||||
var icon = 'zotero' + entryData.itemType;
|
||||
var firstColumn = [ { collapsed: icon, expanded: icon } ];
|
||||
} else {
|
||||
firstColumn = [];
|
||||
}
|
||||
this.items.push(Object.assign({ 'columns': firstColumn.concat(columns.map(
|
||||
function (item) {
|
||||
return { text: item };
|
||||
}
|
||||
), row: index,
|
||||
)), row: index,
|
||||
}, entryData));
|
||||
},
|
||||
|
||||
|
@ -224,7 +230,8 @@ L.Control.Zotero = L.Control.extend({
|
|||
var creatorString = creatorArray.join(', ');
|
||||
this.createEntry(iterator,
|
||||
[items[iterator].data.title, creatorString, items[iterator].data.date],
|
||||
{citation: items[iterator].citation, bib: items[iterator].bib, type: 'item'}
|
||||
{citation: items[iterator].citation, bib: items[iterator].bib, type: 'item', itemType: items[iterator].data.itemType},
|
||||
true
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue