Some small enhancements
git-svn-id: https://svn.libreccm.org/ccm/trunk@2761 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
e34ba310c8
commit
0ab4e576e6
|
|
@ -9,7 +9,7 @@
|
||||||
name="ScientificCMS"
|
name="ScientificCMS"
|
||||||
prettyName="Scientific CMS"
|
prettyName="Scientific CMS"
|
||||||
version="2.3.0"
|
version="2.3.0"
|
||||||
release="devel-SNAPSHOT-r2755"
|
release="devel-SNAPSHOT-r2758"
|
||||||
webxml="sci-web.xml"
|
webxml="sci-web.xml"
|
||||||
portletxml="sci-portlet.xml"
|
portletxml="sci-portlet.xml"
|
||||||
webapp="libreccm"
|
webapp="libreccm"
|
||||||
|
|
|
||||||
|
|
@ -889,7 +889,7 @@ span.cmsGlobalNavigationHelp :before {
|
||||||
content:url('../../images/cms/help.png');
|
content:url('../../images/cms/help.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
span.cmsPreview :before {
|
span.cmsPreview a:before {
|
||||||
content:url('../../images/cms/preview.png');
|
content:url('../../images/cms/preview.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,9 +89,10 @@ public class PublicationAuthorAddForm
|
||||||
add(selectedAuthorLabel);
|
add(selectedAuthorLabel);
|
||||||
|
|
||||||
isEditor = new CheckboxGroup("isEditorGroup");
|
isEditor = new CheckboxGroup("isEditorGroup");
|
||||||
isEditor.addOption(new Option(ISEDITOR, ""));
|
isEditor.addOption(new Option(ISEDITOR, new Label(PublicationGlobalizationUtil.globalize(
|
||||||
isEditor.setLabel(PublicationGlobalizationUtil.globalize(
|
"publications.ui.authors.author.is_editor"))));
|
||||||
"publications.ui.authors.author.is_editor"));
|
// isEditor.setLabel(PublicationGlobalizationUtil.globalize(
|
||||||
|
// "publications.ui.authors.author.is_editor"));
|
||||||
add(isEditor);
|
add(isEditor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,17 +54,15 @@ public class PublicationAuthorsTable
|
||||||
extends Table
|
extends Table
|
||||||
implements TableActionListener {
|
implements TableActionListener {
|
||||||
|
|
||||||
private static final Logger s_log =
|
private static final Logger s_log = Logger.getLogger(PublicationAuthorsTable.class);
|
||||||
Logger.getLogger(PublicationAuthorsTable.class);
|
|
||||||
private final String TABLE_COL_EDIT = "table_col_edit";
|
private final String TABLE_COL_EDIT = "table_col_edit";
|
||||||
private final String TABLE_COL_EDIT_ASSOC = "table_col_edit_assoc";
|
private final String TABLE_COL_EDIT_ASSOC = "table_col_edit_assoc";
|
||||||
private final String TABLE_COL_DEL = "table_col_del";
|
private final String TABLE_COL_DEL = "table_col_del";
|
||||||
private final String TABLE_COL_UP = "table_col_up";
|
private final String TABLE_COL_UP = "table_col_up";
|
||||||
private final String TABLE_COL_DOWN = "table_col_down";
|
private final String TABLE_COL_DOWN = "table_col_down";
|
||||||
public static final String SELECTED_PUBLICATION =
|
public static final String SELECTED_PUBLICATION
|
||||||
"selected_publication_author_association_publication";
|
= "selected_publication_author_association_publication";
|
||||||
public static final String SELECTED_AUTHOR =
|
public static final String SELECTED_AUTHOR = "selected_publication_author_association_author";
|
||||||
"selected_publication_author_association_author";
|
|
||||||
private ItemSelectionModel m_itemModel;
|
private ItemSelectionModel m_itemModel;
|
||||||
private SimpleEditStep editStep;
|
private SimpleEditStep editStep;
|
||||||
|
|
||||||
|
|
@ -135,8 +133,7 @@ public class PublicationAuthorsTable
|
||||||
@Override
|
@Override
|
||||||
public TableModel makeModel(Table table, PageState state) {
|
public TableModel makeModel(Table table, PageState state) {
|
||||||
table.getRowSelectionModel().clearSelection(state);
|
table.getRowSelectionModel().clearSelection(state);
|
||||||
Publication publication =
|
Publication publication = (Publication) m_itemModel.getSelectedObject(state);
|
||||||
(Publication) m_itemModel.getSelectedObject(state);
|
|
||||||
return new PublicationAuthorsTableModel(table, state, publication);
|
return new PublicationAuthorsTableModel(table, state, publication);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -219,8 +216,7 @@ public class PublicationAuthorsTable
|
||||||
Object key,
|
Object key,
|
||||||
int row,
|
int row,
|
||||||
int col) {
|
int col) {
|
||||||
SecurityManager securityManager =
|
SecurityManager securityManager = CMS.getSecurityManager(state);
|
||||||
CMS.getSecurityManager(state);
|
|
||||||
Publication publication = (Publication) m_itemModel.
|
Publication publication = (Publication) m_itemModel.
|
||||||
getSelectedObject(state);
|
getSelectedObject(state);
|
||||||
|
|
||||||
|
|
@ -250,29 +246,25 @@ public class PublicationAuthorsTable
|
||||||
ItemResolver resolver = section.getItemResolver();
|
ItemResolver resolver = section.getItemResolver();
|
||||||
Link link;
|
Link link;
|
||||||
if (value instanceof GlobalizedMessage) {
|
if (value instanceof GlobalizedMessage) {
|
||||||
link =
|
link = new Link(new Label((GlobalizedMessage) value),
|
||||||
new Link(new Label((GlobalizedMessage) value),
|
|
||||||
resolver.generateItemURL(state,
|
resolver.generateItemURL(state,
|
||||||
author,
|
author,
|
||||||
section,
|
section,
|
||||||
author.getVersion()));
|
author.getVersion()));
|
||||||
} else if (value instanceof Label) {
|
} else if (value instanceof Label) {
|
||||||
link =
|
link = new Link((Label) value,
|
||||||
new Link((Label) value,
|
|
||||||
resolver.generateItemURL(state,
|
resolver.generateItemURL(state,
|
||||||
author,
|
author,
|
||||||
section,
|
section,
|
||||||
author.getVersion()));
|
author.getVersion()));
|
||||||
} else {
|
} else {
|
||||||
link =
|
link = new Link(value.toString(),
|
||||||
new Link(value.toString(),
|
|
||||||
resolver.generateItemURL(state,
|
resolver.generateItemURL(state,
|
||||||
author,
|
author,
|
||||||
section,
|
section,
|
||||||
author.getVersion()));
|
author.getVersion()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return link;
|
return link;
|
||||||
} else {
|
} else {
|
||||||
GenericPerson author;
|
GenericPerson author;
|
||||||
|
|
@ -304,8 +296,7 @@ public class PublicationAuthorsTable
|
||||||
Object key,
|
Object key,
|
||||||
int row,
|
int row,
|
||||||
int col) {
|
int col) {
|
||||||
SecurityManager securityManager =
|
SecurityManager securityManager = CMS.getSecurityManager(state);
|
||||||
CMS.getSecurityManager(state);
|
|
||||||
Publication publication = (Publication) m_itemModel.
|
Publication publication = (Publication) m_itemModel.
|
||||||
getSelectedObject(state);
|
getSelectedObject(state);
|
||||||
|
|
||||||
|
|
@ -315,11 +306,10 @@ public class PublicationAuthorsTable
|
||||||
publication);
|
publication);
|
||||||
|
|
||||||
if (canEdit) {
|
if (canEdit) {
|
||||||
ControlLink link = new ControlLink(value.toString());
|
ControlLink link = new ControlLink((Label) value);
|
||||||
return link;
|
return link;
|
||||||
} else {
|
} else {
|
||||||
Label label = new Label(value.toString());
|
return (Label) value;
|
||||||
return label;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -337,8 +327,7 @@ public class PublicationAuthorsTable
|
||||||
Object key,
|
Object key,
|
||||||
int row,
|
int row,
|
||||||
int col) {
|
int col) {
|
||||||
SecurityManager securityManager =
|
SecurityManager securityManager = CMS.getSecurityManager(state);
|
||||||
CMS.getSecurityManager(state);
|
|
||||||
Publication publication = (Publication) m_itemModel.
|
Publication publication = (Publication) m_itemModel.
|
||||||
getSelectedObject(state);
|
getSelectedObject(state);
|
||||||
|
|
||||||
|
|
@ -348,13 +337,12 @@ public class PublicationAuthorsTable
|
||||||
publication);
|
publication);
|
||||||
|
|
||||||
if (canDelete) {
|
if (canDelete) {
|
||||||
ControlLink link = new ControlLink(value.toString());
|
ControlLink link = new ControlLink((Label) value);
|
||||||
link.setConfirmation(PublicationGlobalizationUtil.globalize(
|
link.setConfirmation(PublicationGlobalizationUtil.globalize(
|
||||||
"publications.ui.authors.author.confirm_remove"));
|
"publications.ui.authors.author.confirm_remove"));
|
||||||
return link;
|
return link;
|
||||||
} else {
|
} else {
|
||||||
Label label = new Label(value.toString());
|
return (Label) value;
|
||||||
return label;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue