16 import(
'lib.pkp.classes.controllers.grid.GridRow');
34 function __construct($actionArgs, $query, $queryNotesGrid) {
35 $this->_actionArgs = $actionArgs;
36 $this->_query = $query;
37 $this->_queryNotesGrid = $queryNotesGrid;
39 parent::__construct();
48 function initialize($request, $template =
null) {
50 parent::initialize($request, $template);
53 $rowId = $this->
getId();
54 $headNote = $this->
getQuery()->getHeadNote();
55 if (!empty($rowId) && is_numeric($rowId) && (!$headNote || $headNote->getId() != $rowId)) {
57 $router = $request->getRouter();
58 $actionArgs = array_merge(
60 array(
'noteId' => $rowId)
64 if ($this->_queryNotesGrid->getCanManage($this->getData())) {
65 import(
'lib.pkp.classes.linkAction.request.RemoteActionConfirmationModal');
70 $request->getSession(),
71 __(
'common.confirmDelete'),
72 __(
'grid.action.delete'),
73 $router->url($request,
null,
null,
'deleteNote',
null, $actionArgs),
'modal_delete'),
74 __(
'grid.action.delete'),