2006-02-21 17:01:06 +00:00
|
|
|
<?xml version="1.0"?>
|
2006-05-31 20:29:46 +00:00
|
|
|
<?xml-stylesheet href="chrome://scholar/skin/overlay.css" type="text/css"?>
|
2006-02-21 17:01:06 +00:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://scholar/locale/scholar.dtd">
|
|
|
|
|
|
|
|
<overlay id="scholar"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
2006-06-09 15:54:44 +00:00
|
|
|
<?xul-overlay href="itemPane.xul" ?>
|
2006-02-21 17:01:06 +00:00
|
|
|
|
2006-05-27 00:20:27 +00:00
|
|
|
<!-- Include the global XPCOM object -->
|
|
|
|
<script src="include.js"/>
|
2006-05-22 18:51:22 +00:00
|
|
|
|
2006-05-30 22:06:33 +00:00
|
|
|
<script src="overlay.js"/>
|
|
|
|
<script src="itemTreeView.js"/>
|
2006-06-05 18:01:53 +00:00
|
|
|
<script src="collectionTreeView.js"/>
|
2006-07-05 22:08:25 +00:00
|
|
|
<script src="fileInterface.js"/>
|
2006-05-30 22:06:33 +00:00
|
|
|
|
2006-06-01 03:50:34 +00:00
|
|
|
<commandset id="mainCommandSet">
|
2006-07-17 14:09:12 +00:00
|
|
|
<command id="cmd_scholar_newItem" oncommand="ScholarPane.newItem(2);"/>
|
2006-06-01 03:50:34 +00:00
|
|
|
<command id="cmd_scholar_newCollection" oncommand="ScholarPane.newCollection();"/>
|
|
|
|
<command id="cmd_scholar_search" oncommand="ScholarPane.search();"/>
|
|
|
|
</commandset>
|
2006-07-26 16:42:26 +00:00
|
|
|
<toolbarpalette id="BrowserToolbarPalette">
|
|
|
|
<toolbarbutton id="scholar-toolbar-button" class="toolbarbutton-1"
|
|
|
|
label="&scholar.name;"
|
|
|
|
oncommand="ScholarPane.toggleDisplay();"/>
|
|
|
|
</toolbarpalette>
|
2006-05-30 22:06:33 +00:00
|
|
|
<vbox id="appcontent">
|
2006-07-19 16:14:27 +00:00
|
|
|
<!-- Changes to attributes of scholar-splitter and scholar-pane must be mirrored on overlay.js's onLoad() function -->
|
|
|
|
<splitter id="scholar-splitter" resizebefore="closest" resizeafter="closest" collapsed="true"/>
|
2006-07-27 18:08:09 +00:00
|
|
|
<hbox id="scholar-pane" persist="height" collapsed="true" flex="1">
|
2006-06-19 15:00:13 +00:00
|
|
|
<popupset>
|
|
|
|
<popup id="scholar-collectionmenu" onpopupshowing="ScholarPane.buildCollectionContextMenu();">
|
|
|
|
<menuitem label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();"/>
|
2006-06-21 23:22:37 +00:00
|
|
|
<menuitem label="&toolbar.removeCollection.label;" oncommand="ScholarPane.deleteSelectedCollection();"/>
|
2006-07-26 15:28:31 +00:00
|
|
|
<menuseparator/>
|
|
|
|
<menuitem label="&toolbar.exportCollection.label;" oncommand="Scholar_File_Interface.exportProject();"/>
|
|
|
|
<menuitem label="&toolbar.createBibCollection.label;" oncommand="Scholar_File_Interface.bibliographyFromProject();"/>
|
2006-06-19 15:00:13 +00:00
|
|
|
</popup>
|
|
|
|
<popup id="scholar-itemmenu" onpopupshowing="ScholarPane.buildItemContextMenu();">
|
|
|
|
<menuitem label="&toolbar.newItem.label;" command="cmd_scholar_newItem"/>
|
|
|
|
<menuseparator/>
|
2006-06-21 23:22:37 +00:00
|
|
|
<menuitem oncommand="ScholarPane.deleteSelectedItem();"/>
|
2006-07-26 15:28:31 +00:00
|
|
|
<menuseparator/>
|
|
|
|
<menuitem oncommand="Scholar_File_Interface.exportItems();"/>
|
|
|
|
<menuitem oncommand="Scholar_File_Interface.bibliographyFromItems();"/>
|
2006-06-19 15:00:13 +00:00
|
|
|
</popup>
|
|
|
|
</popupset>
|
2006-07-17 14:09:12 +00:00
|
|
|
<vbox id="collections-pane" persist="width" flex="1">
|
|
|
|
<toolbar>
|
|
|
|
<toolbarbutton id="tb-collection-add" tooltiptext="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
|
|
|
|
<toolbarbutton id="tb-collection-rename" tooltiptext="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();" disabled="true"/>
|
|
|
|
<spacer flex="1"/>
|
|
|
|
<toolbarbutton id="tb-collection-menu" type="menu">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem label="Import..." oncommand="Scholar_File_Interface.importFile();"/>
|
|
|
|
<menuitem label="Export Library..." oncommand="Scholar_File_Interface.exportFile();"/>
|
|
|
|
</menupopup>
|
|
|
|
</toolbarbutton>
|
|
|
|
</toolbar>
|
|
|
|
<tree id="collections-tree" hidecolumnpicker="true" context="scholar-collectionmenu"
|
|
|
|
onselect="ScholarPane.onCollectionSelected();" seltype="single"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event,ScholarPane.getCollectionsView())"
|
|
|
|
ondraggesture="if (event.target.localName == 'treechildren') nsDragAndDrop.startDrag(event,ScholarPane.getCollectionsView());"
|
2006-07-28 13:28:50 +00:00
|
|
|
onkeypress="if(event.keyCode == event.DOM_VK_BACK_SPACE){ ScholarPane.deleteSelectedCollection(); return false; }"
|
2006-07-17 14:09:12 +00:00
|
|
|
flex="1">
|
|
|
|
<treecols>
|
|
|
|
<treecol
|
|
|
|
id="name_column"
|
|
|
|
label="&collections.name_column;"
|
|
|
|
flex="1"
|
|
|
|
primary="true"/>
|
|
|
|
</treecols>
|
|
|
|
<treechildren/>
|
|
|
|
</tree>
|
|
|
|
</vbox>
|
|
|
|
<splitter id="scholar-tree-splitter" resizebefore="closest" resizeafter="closest"/>
|
|
|
|
<vbox id="items-pane" persist="width" flex="1">
|
|
|
|
<toolbar align="center">
|
|
|
|
<toolbarbutton id="tb-add" tooltiptext="&toolbar.newItem.label;" type="menu">
|
|
|
|
<menupopup/>
|
|
|
|
</toolbarbutton>
|
2006-07-26 14:30:38 +00:00
|
|
|
<toolbarbutton label="New Note" oncommand="ScholarPane.newNote();"/>
|
2006-07-17 14:09:12 +00:00
|
|
|
<spacer flex="1"/>
|
|
|
|
<label value="&toolbar.search.label;" control="tb-search"/>
|
|
|
|
<textbox id="tb-search" type="timed" timeout="250" command="cmd_scholar_search"/>
|
|
|
|
</toolbar>
|
|
|
|
<hbox id="scholar-search-options" hidden="true">
|
|
|
|
<hbox>
|
|
|
|
<toolbarbutton type="checkbox" label="Entire Item" checked="true" onclick="var b = this.parentNode.getElementsByAttribute('checked','true'); b[0].checked = false;" command="cmd_scholar_search"/>
|
|
|
|
<toolbarbutton type="checkbox" label="Info" onclick="var b = this.parentNode.getElementsByAttribute('checked','true'); b[0].checked = false;" command="cmd_scholar_search"/>
|
|
|
|
<toolbarbutton type="checkbox" label="Notes" onclick="var b = this.parentNode.getElementsByAttribute('checked','true'); b[0].checked = false;" command="cmd_scholar_search"/>
|
|
|
|
<toolbarbutton type="checkbox" label="Files" onclick="var b = this.parentNode.getElementsByAttribute('checked','true'); b[0].checked = false;" command="cmd_scholar_search"/>
|
2006-06-21 22:23:42 +00:00
|
|
|
</hbox>
|
2006-07-17 14:09:12 +00:00
|
|
|
<spacer flex="1"/>
|
|
|
|
<toolbarbutton label="Save"/>
|
|
|
|
<toolbarbutton label="&scholar.plus;"/>
|
|
|
|
</hbox>
|
|
|
|
<tree
|
|
|
|
id="items-tree" context="scholar-itemmenu"
|
2006-07-28 13:28:50 +00:00
|
|
|
enableColumnDrag="true" onkeypress="if(event.keyCode == event.DOM_VK_BACK_SPACE){ ScholarPane.deleteSelectedItem(); return false; }"
|
2006-07-17 14:09:12 +00:00
|
|
|
onselect="ScholarPane.itemSelected();"
|
|
|
|
ondraggesture="if (event.target.localName == 'treechildren') nsDragAndDrop.startDrag(event,ScholarPane.getItemsView());"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event,ScholarPane.getItemsView())"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event,ScholarPane.getItemsView())"
|
|
|
|
flex="1">
|
|
|
|
<treecols>
|
|
|
|
<treecol
|
|
|
|
id="title" primary="true"
|
|
|
|
label="&items.title_column;"
|
|
|
|
flex="4" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="firstCreator"
|
|
|
|
label="&items.creator_column;"
|
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="numNotes"
|
|
|
|
label="&items.numNotes_column;"
|
|
|
|
persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="typeIcon" hidden="true"
|
|
|
|
label="&items.type_column;"
|
|
|
|
width="40" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="source" hidden="true"
|
|
|
|
label="&items.source_column;"
|
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="rights" hidden="true"
|
|
|
|
label="&items.rights_column;"
|
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="dateAdded" hidden="true"
|
|
|
|
label="&items.dateAdded_column;"
|
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
<splitter class="tree-splitter"/>
|
|
|
|
<treecol
|
|
|
|
id="dateModified" hidden="true"
|
|
|
|
label="&items.dateModified_column;"
|
|
|
|
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
|
|
|
</treecols>
|
|
|
|
<treechildren/>
|
|
|
|
</tree>
|
|
|
|
</vbox>
|
|
|
|
<splitter id="scholar-view-splitter" resizebefore="closest" resizeafter="closest"/>
|
|
|
|
<vbox>
|
|
|
|
<toolbar align="right">
|
|
|
|
<toolbarbutton id="tb-fullscreen" label="Toggle Fullscreen" oncommand="ScholarPane.fullScreen();"/>
|
|
|
|
<toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/>
|
|
|
|
</toolbar>
|
2006-07-26 14:03:54 +00:00
|
|
|
<groupbox flex="1">
|
|
|
|
<caption>
|
|
|
|
<tabs id="scholar-view-tabs" onselect="document.getElementById('scholar-view-item').selectedIndex = this.selectedIndex;" hidden="true">
|
|
|
|
<tab label="&tabs.info.label;"/>
|
|
|
|
<tab label="&tabs.notes.label;"/>
|
|
|
|
<tab label="&tabs.files.label;"/>
|
|
|
|
<tab label="&tabs.tags.label;"/>
|
|
|
|
<tab label="&tabs.related.label;"/>
|
|
|
|
</tabs>
|
|
|
|
</caption>
|
2006-07-27 18:08:09 +00:00
|
|
|
<deck id="item-pane" selectedIndex="0" flex="1" onselect="document.getElementById('scholar-view-tabs').setAttribute('hidden',(this.selectedIndex != 1));">
|
2006-07-26 14:03:54 +00:00
|
|
|
<box pack="center" align="center">
|
|
|
|
<label id="scholar-view-selected-label"/>
|
|
|
|
</box>
|
|
|
|
<deck id="scholar-view-item" flex="1"/>
|
|
|
|
<vbox id="scholar-view-note" flex="1">
|
|
|
|
<noteeditor id="scholar-note-editor" flex="1"/>
|
|
|
|
<button label="Edit in a separate window" oncommand="ScholarPane.openNoteWindow(this.getAttribute('noteID'));"/>
|
|
|
|
</vbox>
|
2006-07-27 18:08:09 +00:00
|
|
|
<vbox id="scholar-view-file" flex="1">
|
|
|
|
<label id="scholar-file-label"/>
|
|
|
|
<linksbox id="scholar-file-links" flex="1"/>
|
|
|
|
</vbox>
|
2006-07-26 14:03:54 +00:00
|
|
|
</deck>
|
|
|
|
</groupbox>
|
2006-07-17 14:09:12 +00:00
|
|
|
</vbox>
|
|
|
|
</hbox>
|
2006-05-30 22:06:33 +00:00
|
|
|
</vbox>
|
|
|
|
|
2006-02-21 17:01:06 +00:00
|
|
|
<statusbar id="status-bar">
|
2006-06-02 15:27:52 +00:00
|
|
|
<statusbarpanel id="scholar-load-status" label="Scholar is NOT loaded" onclick="ScholarPane.toggleDisplay();"/>
|
2006-02-21 17:01:06 +00:00
|
|
|
</statusbar>
|
2006-02-24 14:41:15 +00:00
|
|
|
|
2006-05-27 00:20:27 +00:00
|
|
|
<script>
|
|
|
|
window.addEventListener('load', function(e){
|
|
|
|
if (Scholar){
|
|
|
|
document.getElementById('scholar-load-status').setAttribute('label', 'Scholar is loaded');
|
|
|
|
}
|
|
|
|
}, false);
|
|
|
|
</script>
|
|
|
|
|
2006-05-23 19:06:11 +00:00
|
|
|
<menupopup id="menu_ToolsPopup">
|
2006-05-24 18:43:49 +00:00
|
|
|
<menuseparator id="scholarSeparator" insertbefore="devToolsSeparator"/>
|
|
|
|
<menuitem id="tools-scholar" insertbefore="devToolsSeparator"
|
2006-06-05 17:47:36 +00:00
|
|
|
oncommand="ScholarPane.toggleDisplay();" label="&scholar.name;"
|
2006-05-23 19:06:11 +00:00
|
|
|
key="key_openScholar"/>
|
2006-05-22 18:51:22 +00:00
|
|
|
</menupopup>
|
2006-02-24 14:41:15 +00:00
|
|
|
|
2006-05-22 18:51:22 +00:00
|
|
|
<keyset id="mainKeyset">
|
2006-05-23 19:06:11 +00:00
|
|
|
<key id="key_openScholar"
|
2006-05-22 18:51:22 +00:00
|
|
|
key="S"
|
2006-06-21 23:22:37 +00:00
|
|
|
oncommand="ScholarPane.toggleDisplay();"
|
2006-05-22 18:51:22 +00:00
|
|
|
modifiers="shift accel" />
|
|
|
|
</keyset>
|
2006-05-23 19:06:11 +00:00
|
|
|
</overlay>
|