Example #1
0
class WebInterfaceInvenio(WebInterfaceSearchInterfacePages):
    """ The global URL layout is composed of the search API plus all
    the other modules."""

    _exports = WebInterfaceSearchInterfacePages._exports + \
        WebInterfaceAuthorPages._exports + [
        'youraccount',
        'youralerts',
        'yourbaskets',
        'yourmessages',
        'yourloans',
        'yourgroups',
        'yourtickets',
        'comments',
        'error',
        'oai2d', ('oai2d.py', 'oai2d'),
        ('getfile.py', 'getfile'),
        'submit',
        'rss',
        'stats',
        'journal',
        'help',
        'unapi',
        'exporter',
        'kb',
        'batchuploader',
        'person',
        'bibsword'
        ] + test_exports + openaire_exports

    def __init__(self):
        self.getfile = websubmit_legacy_getfile
        if CFG_DEVEL_SITE:
            self.httptest = WebInterfaceHTTPTestPages()
        if CFG_OPENAIRE_SITE:
            self.deposit = WebInterfaceOpenAIREDepositPages()

    author = WebInterfaceAuthorPages()
    submit = WebInterfaceSubmitPages()
    youraccount = WebInterfaceYourAccountPages()
    youralerts = WebInterfaceYourAlertsPages()
    yourbaskets = WebInterfaceYourBasketsPages()
    yourmessages = WebInterfaceYourMessagesPages()
    yourloans = WebInterfaceYourLoansPages()
    yourgroups = WebInterfaceYourGroupsPages()
    yourtickets = WebInterfaceYourTicketsPages()
    comments = WebInterfaceCommentsPages()
    error = WebInterfaceErrorPages()
    oai2d = WebInterfaceOAIProviderPages()
    rss = WebInterfaceRSSFeedServicePages()
    stats = WebInterfaceStatsPages()
    journal = WebInterfaceJournalPages()
    help = WebInterfaceDocumentationPages()
    unapi = WebInterfaceUnAPIPages()
    exporter = WebInterfaceFieldExporterPages()
    kb = WebInterfaceBibKnowledgePages()
    batchuploader = WebInterfaceBatchUploaderPages()
    bibsword = WebInterfaceSword()
    person = WebInterfaceBibAuthorIDPages()
    def __init__(self, recid, tab, format=None):
        self.recid = recid
        self.tab = tab
        self.format = format

        self.files = WebInterfaceFilesPages(self.recid)
        self.reviews = WebInterfaceCommentsPages(self.recid, reviews=1)
        self.comments = WebInterfaceCommentsPages(self.recid)
        self.usage = self
        self.references = self
        self.keywords = self
        self.holdings = WebInterfaceHoldingsPages(self.recid)
        self.citations = self
        self.plots = self
        self.export = WebInterfaceRecordExport(self.recid, self.format)
        self.edit = WebInterfaceEditPages(self.recid)
        self.merge = WebInterfaceMergePages(self.recid)

        return
Example #3
0
class WebInterfaceInvenio(WebInterfaceSearchInterfacePages):
    """ The global URL layout is composed of the search API plus all
    the other modules."""

    _exports = WebInterfaceSearchInterfacePages._exports + \
               [
                   'youraccount',
                   'youralerts',
                   'yourbaskets',
                   'yourmessages',
                   'yourloans',
                   'yourcomments',
                   'ill',
                   'yourgroups',
                   'yourtickets',
                   'comments',
                   'error',
                   'oai2d', ('oai2d.py', 'oai2d'),
                   ('getfile.py', 'getfile'),
                   'submit',
                   'rss',
                   'stats',
                   'journal',
                   'help',
                   'unapi',
                   'exporter',
                   'kb',
                   'batchuploader',
                   'bibsword',
                   'ping',
                   'admin2',
                   'linkbacks',
                   'author',
                   'person',
                   'textmining',
                   'goto',
                   'info',
                   'authorlist',
               ] + test_exports + openaire_exports

    def __init__(self):
        self.getfile = bibdocfile_legacy_getfile
        if CFG_DEVEL_SITE:
            self.httptest = WebInterfaceHTTPTestPages()
        if CFG_OPENAIRE_SITE:
            self.deposit = WebInterfaceOpenAIREDepositPages()

    if CFG_ACCESS_CONTROL_LEVEL_SITE > 0:
        submit = WebInterfaceDisabledPages()
        youraccount = WebInterfaceDisabledPages()
        youralerts = WebInterfaceDisabledPages()
        yourbaskets = WebInterfaceDisabledPages()
        yourmessages = WebInterfaceDisabledPages()
        yourloans = WebInterfaceDisabledPages()
        ill = WebInterfaceDisabledPages()
        yourgroups = WebInterfaceDisabledPages()
        yourtickets = WebInterfaceDisabledPages()
        comments = WebInterfaceDisabledPages()
        error = WebInterfaceErrorPages()
        oai2d = WebInterfaceDisabledPages()
        rss = WebInterfaceRSSFeedServicePages()
        stats = WebInterfaceDisabledPages()
        journal = WebInterfaceDisabledPages()
        help = WebInterfaceDocumentationPages()
        info = WebInterfaceInfoPages()
        unapi = WebInterfaceUnAPIPages()
        exporter = WebInterfaceDisabledPages()
        kb = WebInterfaceBibKnowledgePages()
        admin2 = WebInterfaceDisabledPages()
        batchuploader = WebInterfaceDisabledPages()
        bibsword = WebInterfaceDisabledPages()
        ping = WebInterfacePingPages()
        linkbacks = WebInterfaceDisabledPages()
        author = WebInterfaceDisabledPages()
        person = WebInterfaceDisabledPages()
        textmining = WebInterfaceDocExtract()
        yourcomments = WebInterfaceDisabledPages()
        goto = WebInterfaceDisabledPages()
        authorlist = WebInterfaceDisabledPages()
    else:
        submit = WebInterfaceSubmitPages()
        youraccount = WebInterfaceYourAccountPages()
        youralerts = WebInterfaceYourAlertsPages()
        yourbaskets = WebInterfaceYourBasketsPages()
        yourmessages = WebInterfaceYourMessagesPages()
        yourloans = WebInterfaceYourLoansPages()
        ill = WebInterfaceILLPages()
        yourgroups = WebInterfaceYourGroupsPages()
        yourtickets = WebInterfaceYourTicketsPages()
        comments = WebInterfaceCommentsPages()
        error = WebInterfaceErrorPages()
        oai2d = WebInterfaceOAIProviderPages()
        rss = WebInterfaceRSSFeedServicePages()
        stats = WebInterfaceStatsPages()
        journal = WebInterfaceJournalPages()
        help = WebInterfaceDocumentationPages()
        info = WebInterfaceInfoPages()
        unapi = WebInterfaceUnAPIPages()
        exporter = WebInterfaceFieldExporterPages()
        kb = WebInterfaceBibKnowledgePages()
        admin2 = WebInterfaceAdminPages()
        batchuploader = WebInterfaceBatchUploaderPages()
        bibsword = WebInterfaceSword()
        ping = WebInterfacePingPages()
        linkbacks = WebInterfaceRecentLinkbacksPages()
        author = WebInterfaceAuthor()
        person = WebInterfacePerson()
        textmining = WebInterfaceDocExtract()
        yourcomments = WebInterfaceYourCommentsPages()
        goto = WebInterfaceGotoPages()
        authorlist = WebInterfaceAuthorlistPages()