<GuiXml>
    <Controls>
        <Button name="LibrarianBookRow" virtual="true">
            <Dimensions y="30" />
            <Anchor point="RIGHT" relativeTo="$(parent)" />
            <OnMouseEnter>
                LibrarianRow_OnMouseEnter(self)
            </OnMouseEnter>
            <OnMouseExit>
                LibrarianRow_OnMouseExit(self)
            </OnMouseExit>
            <OnMouseUp>
                LibrarianRow_OnMouseUp(self, button, upInside)
            </OnMouseUp>
            <Controls>
                <Texture name="$(parent)Unread" textureFile="EsoUI/Art/Inventory/newitem_icon.dds">
                    <Dimensions x="32" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetX="19" />
                </Texture>
                <Label name="$(parent)Found" font="ZoFontWinH2" wrapMode="ELLIPSIS">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetX="90" offsetY="1" />
                </Label>
                <Label name="$(parent)WordCount" font="ZoFontWinH2" wrapMode="ELLIPSIS">
                    <Anchor point="TOPRIGHT" relativeTo="$(parent)" offsetY="1" />
                </Label>
                <Label name="$(parent)Title" font="ZoFontWinH2" wrapMode="ELLIPSIS">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetX="290" offsetY="1" />
                </Label>
            </Controls>
        </Button>
        <TopLevelControl name="LibrarianFrame" inherits="ZO_RightPanelFootPrint" hidden="true">
            <Controls>
                <Button name="$(parent)Options" mouseOverBlendMode="ADD" inherits="ZO_ButtonBehaviorClickSound">
                    <Dimensions x="48" y="48" />
                    <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
                    <Textures
                        normal="EsoUI/Art/ChatWindow/chat_options_up.dds"
                        pressed="EsoUI/Art/ChatWindow/chat_options_down.dds"
                        mouseOver="EsoUI/Art/ChatWindow/chat_options_over.dds"
                    />
                    <OnClicked>
                        SLASH_COMMANDS["/librarianOptions"]()
                    </OnClicked>
                </Button>
                <Label name="$(parent)BookCount" font="ZoFontHeader3" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL">
                    <Anchor point="TOPLEFT" offsetY="10" />
                </Label>
                <Backdrop name="$(parent)Search" inherits="ZO_EditBackdrop">
                    <Anchor point="TOPRIGHT" offsetX="-12" offsetY="10"/>
                    <Dimensions x="270"/>
                    <Controls>
                        <EditBox name="$(parent)Box" inherits="ZO_DefaultEditForBackdrop ZO_EditDefaultText">
                            <OnInitialized>
                                ZO_EditDefaultText_Initialize(self, GetString(SI_LIBRARIAN_SEARCH_HINT))
                            </OnInitialized>
                        </EditBox>
                    </Controls>
                </Backdrop>
                <Label name="$(parent)SearchLabel" text="SI_LIBRARIAN_FULLTEXT_SEARCH" font="ZoFontGameLargeBold" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL">
                    <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$(parent)Search" offsetX="-5" offsetY="3"/>
                </Label>
                <Control name="$(parent)Headers">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)" offsetY="40" />
                    <Anchor point="TOPRIGHT" relativeTo="$(parent)" offsetY="40" />
                    <Dimensions y="32" />
                    <Controls>
                        <Control name="$(parent)Unread" inherits="ZO_SortHeader">
                            <OnInitialized>
                                ZO_SortHeader_Initialize(self, GetString(SI_LIBRARIAN_SORT_TYPE_UNREAD), "unread", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                            </OnInitialized>
                            <Anchor point="TOPLEFT" />
                            <Dimensions x="90" y="32" />
                        </Control>
                        <Control name="$(parent)Found" inherits="ZO_SortHeader">
                            <OnInitialized>
                                ZO_SortHeader_Initialize(self, GetString(SI_LIBRARIAN_SORT_TYPE_FOUND), "timeStamp", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                            </OnInitialized>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)Unread" relativePoint="TOPRIGHT" />
                            <Dimensions x="200" y="32" />
                        </Control>
                        <Control name="$(parent)WordCount" inherits="ZO_SortHeader">
                            <OnInitialized>
                                ZO_SortHeader_Initialize(self, GetString(SI_LIBRARIAN_SORT_TYPE_WORD_COUNT), "wordCount", ZO_SORT_ORDER_UP, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                            </OnInitialized>
                            <Anchor point="TOPRIGHT" />
                            <Dimensions x="80" y="32" />
                        </Control>
                        <Control name="$(parent)Title" inherits="ZO_SortHeader">
                            <OnInitialized>
                                ZO_SortHeader_Initialize(self, GetString(SI_LIBRARIAN_SORT_TYPE_TITLE), "title", ZO_SORT_ORDER_UP, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                            </OnInitialized>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)Found" relativePoint="TOPRIGHT" />
                            <Anchor point="TOPRIGHT" relativeTo="$(parent)WordCount" relativePoint="TOPLEFT" />
                            <Dimensions y="32" />
                        </Control>
                    </Controls>
                </Control>
                <Control name="$(parent)List" inherits="ZO_ScrollList">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Headers" relativePoint="BOTTOMLEFT" />
                    <Anchor point="BOTTOMRIGHT" offsetX="-12" offsetY="-29" />
                </Control>
                <Label name="$(parent)Message" font="ZoFontGame" horizontalAlignment="center" verticalAlignment="center" hidden="true">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Headers" relativePoint="BOTTOMLEFT" />
                    <Anchor point="BOTTOMRIGHT" offsetX="-12" offsetY="-29" />
                    <OnInitialized>
                        self:SetText(GetString(SI_LIBRARIAN_EMPTY_LIBRARY_IMPORT_PROMPT))
                    </OnInitialized>
                </Label>
                <Label name="$(parent)BackupPSA" font="ZoFontGame" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_DISABLED">
                    <Anchor point="BOTTOMLEFT" offsetX="29" />
                    <OnInitialized>
                        self:SetText(GetString(SI_LIBRARIAN_BACKUP_REMINDER))
                    </OnInitialized>
                </Label>
                <Button name="$(parent)ShowAllBooks" inherits="ZO_CheckButton">
                    <Anchor point="BOTTOMLEFT" offsetX="29" offsetY="27"/>
                    <Controls>
                        <Label name="$(parent)Text" font="ZoFontGame" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" text="SI_LIBRARIAN_SHOW_ALL_BOOKS">
                            <Anchor point="LEFT" relativePoint="RIGHT" offsetX="5" />
                        </Label>
                    </Controls>
                </Button>
                <Label name="$(parent)Credit" font="ZoFontGame" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_DISABLED">
                    <Anchor point="BOTTOMRIGHT" offsetX="-15" offsetY="27" />
                    <OnInitialized>
                        self:SetText(GetString(SI_LIBRARIAN_CREDIT))
                    </OnInitialized>
                </Label>
            </Controls>
        </TopLevelControl>
    </Controls>
</GuiXml>