Fix für Publish von Items, die aus dem ItemSearchWidget angelegt werden (Ticket #1388)
git-svn-id: https://svn.libreccm.org/ccm/trunk@1868 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
e66a75e8b2
commit
e15d1c45da
|
|
@ -81,7 +81,7 @@ public class GenericOrganizationalUnitPersonAddForm
|
|||
findByAssociatedObjectType(getPersonType()));
|
||||
/*m_itemSearch.getItemField().addValidationListener(
|
||||
new NotNullValidationListener());*/
|
||||
m_itemSearch.setDisableCreatePane(false);
|
||||
m_itemSearch.setDisableCreatePane(true);
|
||||
add(this.m_itemSearch);
|
||||
|
||||
selectedPersonNameLabel = new Label("");
|
||||
|
|
@ -188,6 +188,7 @@ public class GenericOrganizationalUnitPersonAddForm
|
|||
GenericOrganizationalUnitPersonCollection.PERSON_ROLE),
|
||||
(String) data.get(
|
||||
GenericOrganizationalUnitPersonCollection.STATUS));
|
||||
m_itemSearch.publishCreatedItem(data, personToAdd);
|
||||
} else {
|
||||
GenericOrganizationalUnitPersonCollection persons;
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ public class ArticleInCollectedVolumeCollectedVolumeForm
|
|||
article.getLanguage());
|
||||
|
||||
article.setCollectedVolume(collectedVolume);
|
||||
itemSearch.publishCreatedItem(data, article);
|
||||
itemSearch.publishCreatedItem(data, collectedVolume);
|
||||
}
|
||||
|
||||
init(fse);
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ public class ArticleInJournalJournalForm
|
|||
journal = (Journal) journal.getContentBundle().getInstance(article.getLanguage());
|
||||
|
||||
article.setJournal(journal);
|
||||
itemSearch.publishCreatedItem(data, article);
|
||||
itemSearch.publishCreatedItem(data, journal);
|
||||
}
|
||||
|
||||
init(fse);
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ public class PublicationGenericOrganizationalUnitAddForm
|
|||
getInstance(publication.getLanguage(), true);
|
||||
|
||||
publication.addOrganizationalUnit(orgaunit);
|
||||
itemSearch.publishCreatedItem(data, orgaunit);
|
||||
}
|
||||
|
||||
init(fse);
|
||||
|
|
|
|||
|
|
@ -37,10 +37,11 @@ public interface SciPublicationsImporter {
|
|||
* Parses the provided string and creates publications from the string.
|
||||
*
|
||||
* @param publications The string conaining the publications in the format supported by this importer
|
||||
* @param pretend If set to {@link true} no publications will be created. This can be used for debugging purposes
|
||||
* or to check an file containing publications
|
||||
* @param pretend If set to {@code true} no publications will be created. This can be used for debugging purposes
|
||||
* or to check an file containing publications.
|
||||
* @param publishNewItems If set to {@code true} the items created by the importer will also be published.
|
||||
* @return A report describing what the importer has done
|
||||
*/
|
||||
String importPublications(String publications, boolean pretend);
|
||||
String importPublications(String publications, boolean pretend, boolean publishNewItems);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue