NAME LibreCat::App::Catalogue::Route::publication

Route handler for publications.

PREFIX /record

All actions related to a publication record are handled under this prefix.

GET /new

Prints a list of available publication types + import form.

Some fields are pre-filled.

GET /edit/:id

Displays record for id.

Checks if the user has permission the see/edit this record.

POST /update

Saves the record in the database.

Checks if the user has the rights to update this record.

GET /return/:id

Set status to 'returned'.

Checks if the user has the rights to edit this record.

GET /delete/:id

Deletes record with id. For admins only.

GET /preview/id

Prints the frontdoor for every record.

GET /internal_view/:id

Prints internal view, optionally as data dumper.

For admins only!

GET /publish/:id

Publishes private records, returns to the list.

GET /change_mode

Changes the layout of the edit form.