16 import(
'lib.pkp.classes.controllers.grid.GridCellProvider');
25 function getCellActions($request, $row, $column, $position = GRID_ACTION_POSITION_DEFAULT) {
26 if ($column->getId() ==
'name' && !$row->isReadOnly()) {
27 $chapter = $row->getData();
28 $monograph = $row->getMonograph();
29 $publication = $row->getPublication();
31 $router = $request->getRouter();
33 'submissionId' => $monograph->getId(),
34 'publicationId' => $publication->getId(),
35 'chapterId' => $chapter->getId()
41 $router->url($request,
null,
null,
'editChapter',
null, $actionArgs),
42 __(
'submission.chapter.editChapter'),
45 htmlspecialchars($chapter->getLocalizedTitle())
49 return parent::getCellActions($request, $row, $column, $position);
58 if ($column->getId() ==
'name' && $row->isReadOnly()) {
59 $chapter = $row->getData();
60 $label = $chapter->getLocalizedTitle();
65 return array(
'label' => $label);