16 import(
'lib.pkp.classes.controllers.grid.GridCellProvider');
26 parent::__construct();
27 $this->dateFormatShort =
\Application::get()->getRequest()->getContext()->getLocalizedDateFormatShort();
36 function getCellActions($request, $row, $column, $position = GRID_ACTION_POSITION_DEFAULT) {
37 if ($column->getId() ==
'identification') {
38 $issue = $row->getData();
39 assert(is_a($issue,
'Issue'));
40 $router = $request->getRouter();
41 import(
'lib.pkp.classes.linkAction.request.AjaxModal');
46 $router->url($request,
null,
null,
'editIssue',
null, array(
'issueId' => $issue->getId())),
47 __(
'editor.issues.editIssue', array(
'issueIdentification' => $issue->getIssueIdentification())),
51 htmlspecialchars($issue->getIssueIdentification())
66 $issue = $row->getData();
67 $columnId = $column->getId();
68 assert (is_a($issue,
'Issue'));
69 assert(!empty($columnId));
71 case 'identification':
72 return array(
'label' =>
'');
74 $datePublished = $issue->getDatePublished();
75 if ($datePublished) $datePublished = strtotime($datePublished);
76 return array(
'label' => $datePublished?strftime($this->dateFormatShort, $datePublished):
'');
78 return array(
'label' => $issue->getNumArticles());
79 default: assert(
false);
break;