def getCoinsDict(self):
     """ Select which values to display in the COinS tag for this item """
     coinsData = BaseEntry.getCoinsDict(self)
     coinsData['rft.genre'] = "book"
     coinsData['rft.btitle'] = self.Title()
     coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:book"
     return coinsData
Exemplo n.º 2
0
 def getCoinsDict(self):
     """ Select which values to display in the COinS tag for this item """
     coinsData = BaseEntry.getCoinsDict(self)
     coinsData['rft.genre'] = "document"
     coinsData['rft.btitle'] = self.Title()
     coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:book"
     return coinsData
 def getCoinsDict(self):
     """ Select which values to display in the COinS tag for this item """
     coinsData = BaseEntry.getCoinsDict(self)
     coinsData['rft.edition'] = self.getEdition()
     coinsData['rft.aucorp'] = self.getOrganization()
     coinsData['rft.genre'] = "document"
     coinsData['rft.btitle'] = self.Title()
     coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:book"
     return coinsData
 def getCoinsDict(self):
     """ Select which values to display in the COinS tag for this item """
     coinsData = BaseEntry.getCoinsDict(self)
     coinsData['rft.pub'] = self.getPublisher()
     coinsData['rft.place'] = self.getAddress()
     coinsData['rft.series'] = self.getSeries()
     coinsData['rft.genre'] = "proceeding"
     coinsData['rft.aucorp'] = self.getOrganization()
     coinsData['rft.btitle'] = self.Title()
     coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:book"
     return coinsData
 def getCoinsDict(self):
     """ Select which values to display in the COinS tag for this item """
     coinsData = BaseEntry.getCoinsDict(self)
     coinsData['rft.pub'] = self.getPublisher()
     coinsData['rft.place'] = self.getAddress()
     coinsData['rft.series'] = self.getSeries()
     coinsData['rft.genre'] = "proceeding"
     coinsData['rft.aucorp'] = self.getOrganization()
     coinsData['rft.btitle'] = self.Title()
     coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:book"
     return coinsData
Exemplo n.º 6
0
    def pre_validate(self, REQUEST, errors):

        amazon_tool = getToolByName(self, 'amazon_tool', None)
        if (self.ISBN() or (REQUEST.form.has_key('isbn') and REQUEST.form['isbn'])) and ((self.Authors() == 'No names specified') and not self.Title()) and amazon_tool and amazon_tool.hasValidLicenseKey():

            self.Schema()['isbn'].set(self, value=REQUEST.form['isbn'])
            self.setDetailsFromISBN(is_new_object=True)

            # for BaseEntry.pre_validate we need at least authors 
            # in REQUEST.form
            REQUEST.form['authors'] = self.Schema()['authors']._to_dict(self.Schema()['authors'].get(self) )

            # to ship around required schema fields we need these
            # as well (especially on BookReference creation)
            REQUEST.form['publication_year'] = self.getPublication_year()
            REQUEST.form['publication_month'] = self.getPublication_month()
            REQUEST.form['title'] = self.Title()
            REQUEST.form['publisher'] = self.getPublisher()

        BaseEntry.pre_validate(self, REQUEST, errors)
    def getCoinsDict(self):
        """ Select which values to display in the COinS tag for this item """
        coinsData = BaseEntry.getCoinsDict(self)
        coinsData['rft.part'] = self.getNumber()
        coinsData['rft.volume'] = self.getVolume()
        coinsData['rft.pages'] = self.getPages()
        coinsData['rft.genre'] = "article"
        coinsData['rft.atitle'] = self.Title()
        coinsData['rft.title'] = self.getJournal()
        coinsData['rft.jtitle'] = self.getJournal()

        coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:journal"
        return coinsData
    def getCoinsDict(self):
        """ Select which values to display in the COinS tag for this item """
        coinsData = BaseEntry.getCoinsDict(self)
        coinsData['rft.part'] = self.getNumber()
        coinsData['rft.volume'] = self.getVolume()
        coinsData['rft.pages'] = self.getPages()
        coinsData['rft.genre'] = "article"
        coinsData['rft.atitle'] = self.Title()
        coinsData['rft.title'] = self.getJournal()
        coinsData['rft.jtitle'] = self.getJournal()

        coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:journal"
        return coinsData
Exemplo n.º 9
0
    def pre_validate(self, REQUEST, errors):

        amazon_tool = getToolByName(self, 'amazon_tool', None)
        if (self.ISBN() or
            (REQUEST.form.has_key('isbn') and REQUEST.form['isbn'])) and (
                (self.Authors() == 'No names specified') and not self.Title()
            ) and amazon_tool and amazon_tool.hasValidLicenseKey():

            self.Schema()['isbn'].set(self, value=REQUEST.form['isbn'])
            self.setDetailsFromISBN(is_new_object=True)

            # for BaseEntry.pre_validate we need at least authors
            # in REQUEST.form
            REQUEST.form['authors'] = self.Schema()['authors']._to_dict(
                self.Schema()['authors'].get(self))

            # to ship around required schema fields we need these
            # as well (especially on BookReference creation)
            REQUEST.form['publication_year'] = self.getPublication_year()
            REQUEST.form['publication_month'] = self.getPublication_month()
            REQUEST.form['title'] = self.Title()
            REQUEST.form['publisher'] = self.getPublisher()

        BaseEntry.pre_validate(self, REQUEST, errors)
    def getCoinsDict(self):
        """ Select which values to display in the COinS tag for this item """

        coinsData = BaseEntry.getCoinsDict(self)
        coinsData["rft.atitle"] = self.Title()
        coinsData["rft.btitle"] = self.getBooktitle()
        coinsData["rft.pages"] = self.getPages()
        coinsData["rft.genre"] = "bookitem"
        coinsData["rft.pub"] = self.getPublisher()
        coinsData["rft.place"] = self.getAddress()
        coinsData["rft.series"] = self.getSeries()
        coinsData["rft_val_fmt"] = "info:ofi/fmt:kev:mtx:book"

        # Why do we have fields in the superclass that aren't in the subclasses?
        schema = self.schema.keys()
        coinsData["rft.edition"] = ("edition" in schema) and self.getEdition() or ""
        coinsData["rft.chapter"] = ("chapter" in schema) and self.getChapter() or ""

        return coinsData
Exemplo n.º 11
0
    def getCoinsDict(self):
        """ Select which values to display in the COinS tag for this item """

        coinsData = BaseEntry.getCoinsDict(self)
        coinsData['rft.atitle'] = self.Title()
        coinsData['rft.btitle'] = self.getBooktitle()
        coinsData['rft.pages'] = self.getPages()
        coinsData['rft.genre'] = "bookitem"
        coinsData['rft.pub'] = self.getPublisher()
        coinsData['rft.place'] = self.getAddress()
        coinsData['rft.series'] = self.getSeries()
        coinsData['rft_val_fmt'] = "info:ofi/fmt:kev:mtx:book"

        # Why do we have fields in the superclass that aren't in the subclasses?
        schema = self.schema.keys()
        coinsData['rft.edition'] = ('edition'
                                    in schema) and self.getEdition() or ""
        coinsData['rft.chapter'] = ('chapter'
                                    in schema) and self.getChapter() or ""

        return coinsData