Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The publication.properties file


The publication.properties file is the publication properties file. It consists of key–value pairs. A key, that is, the name of a property, is separated from the value with the equal sign (=). Each such pair is in a separate row. The file should be saved as UTF-8 encoded.

The permitted properties and their values are presented below.

  • The publication.actorsRights.<the <the login of the user or the name of the group to which the permissions are assigned> assigned> key.
    Comma-separated permissions. Note: if the login contains spaces, they must be preceded with the “\” character.
    The list of possible permissions (for more information about permissions, see here):

    • pv – access only to published publication versions,
    • pr – access to all publication editions, and
    • pe – publication management.

...

Code Block
borderStylesolid
titlepublication.properties
publication.actorsRights.publicGroup=pr
publication.collections=2,7,12
publication.destination.directoryId=1
publication.mainFile=index.htm
publication.metadataFile=metadata.rdf
publication.name=PrzykładowaSample publikacjaPublication
publication.notes=StworzoneCreated przezby JanaJan KowalskiegoKowalski
publication.published=true

...

The inheritance mechanism has been introduced to facilitate defining the properties of an object when many added publications have the same values. The properties do not have to be defined directly in every directory which describes a publication – they can be placed in the publication.properties file in the parent directory (indicated in the mass publication upload creator). They are inherited by all added publications. In particular publications, the user can define the selected properties again – in such a case, the inherited values will be overwritten.

...

  • properties which define the target location (publication.destination.directoryId and publication.destination.parentPublicationId – the parent publication and directory result from the directory structure;
  • collection identifiers (publication.collections) – the described mechanism omits them because the publication grouping mechanis mensures mechanism ensures the inheritance of those properties; and
  • permissions for accessing a publication (publication.collections) – see above.

...

That mechanism is similar to the mechanism of inheriting publication.properties files, except that the metadata file in the parent directory should be named publication.rdf. Thus, if the directory which contains directories whcih describe publications contains a publication.rdf file, the metadata from that file will be ascribed to all the created publications. That inheritance mechanism only operates on the first level of directories – it does not pertain to publications grouped in newly created publications. Metadata from group publications are inherited through the publication grouping mechanism.

Generating a Sample Property

...

File

With the use of the “Save property file” option from the “Tools” menu, the user can save the information about a publication selected on the element list to a file. The file can become a model for files which should be placed in directories which describe publications during mass publication upload.