Convert `self` to :class:`.Publication`.

        Returns:
            obj: :class:`.Publication` instance.

def to_comm(self, light_request=False):
        '''
        Convert `self` to :class:`.Publication`.

        Returns:
            obj: :class:`.Publication` instance.
        '''
        data = None
        if not light_request:
            data = read_as_base64(self.file_pointer)

        return Publication(
            title=self.title,
            author=self.author,
            pub_year=self.pub_year,
            isbn=self.isbn,
            urnnbn=self.urnnbn,
            uuid=self.uuid,
            aleph_id=self.aleph_id,
            producent_id=self.producent_id,
            is_public=self.is_public,
            filename=self.filename,
            is_periodical=self.is_periodical,
            path=self.path,

            b64_data=data,
            url=self.url,
            file_pointer=self.file_pointer,
        )