16 import(
'lib.pkp.classes.controllers.grid.GridCategoryRow');
19 import(
'lib.pkp.classes.linkAction.request.AjaxModal');
30 parent::initialize($request, $template);
33 $categoryId = $this->
getId();
34 if (!empty($categoryId) && is_numeric($categoryId)) {
37 $router = $request->getRouter();
40 $childCategories = $categoryDao->getByParentId($categoryId);
41 if ($childCategories->getCount() == 0) {
42 import(
'lib.pkp.classes.linkAction.request.RemoteActionConfirmationModal');
47 $request->getSession(),
48 __(
'common.confirmDelete'),
50 $router->url($request,
null,
null,
'deleteCategory',
null, array(
'categoryId' => $categoryId)),
53 __(
'grid.action.remove'),
62 $router->url($request,
null,
null,
'editCategory',
null, array(
'categoryId' => $categoryId)),
63 __(
'grid.category.edit'),
66 $category->getLocalizedTitle()
67 ), GRID_ACTION_POSITION_ROW_CLICK);