Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
MonographlessCatalogEntryLinkAction.inc.php
1 <?php
15 import('lib.pkp.classes.linkAction.LinkAction');
16 import('lib.pkp.classes.linkAction.request.AjaxModal');
17 
19 
25  $router = $request->getRouter();
26  $dispatcher = $router->getDispatcher();
27 
28  AppLocale::requireComponents(LOCALE_COMPONENT_APP_SUBMISSION);
29 
30  $modal = new AjaxModal(
31  $dispatcher->url(
32  $request, ROUTE_COMPONENT, null,
33  'modals.submissionMetadata.SelectMonographHandler',
34  'fetch', null
35  ),
36  __('submission.catalogEntry.new'),
37  'modal_more_info'
38  );
39 
40  // Configure the link action.
41  if (!isset($action)) {
42  $action = 'newCatalogEntry';
43  }
44  parent::LinkAction($action, $modal, __('submission.catalogEntry.new'), 'information');
45  }
46 }
47 
48 ?>
static requireComponents()
A modal that retrieves its content from via AJAX.
Add a catalog entry, including first selecting a monograph.
Base class defining an action that can be performed by the user in the user interface.