Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
163 additions
and
1,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,38 +46,6 @@ function getDescription() { | |
return 'This is the ImportExportPlugin base class. Its functions can be overridden by subclasses to provide import/export functionality for various formats.'; | ||
} | ||
|
||
/** | ||
* Set the page's breadcrumbs, given the plugin's tree of items | ||
* to append. | ||
* @param $crumbs Array ($url, $name, $isTranslated) | ||
* @param $subclass boolean | ||
*/ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
asmecher
Author
Member
|
||
function setBreadcrumbs($crumbs = array(), $isSubclass = false) { | ||
$request =& $this->getRequest(); | ||
$templateMgr =& TemplateManager::getManager($request); | ||
$pageCrumbs = array( | ||
array( | ||
$request->url(null, 'user'), | ||
'navigation.user' | ||
), | ||
array( | ||
$request->url(null, 'manager'), | ||
'user.role.manager' | ||
), | ||
array ( | ||
$request->url(null, 'manager', 'importexport'), | ||
'manager.importExport' | ||
) | ||
); | ||
if ($isSubclass) $pageCrumbs[] = array( | ||
$request->url(null, 'manager', 'importexport', array('plugin', $this->getName())), | ||
$this->getDisplayName(), | ||
true | ||
); | ||
|
||
$templateMgr->assign('pageHierarchy', array_merge($pageCrumbs, $crumbs)); | ||
} | ||
|
||
/** | ||
* Display the import/export plugin UI. | ||
* @param $args array The array of arguments the user supplied. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@asmecher : this is causing a code in the DataCite plugin to break, which still calls the setBreadcrumbs. I assume this was done because the new structure doesn't do breadcrumbs? and its safe for me to take out the call?