#339 closed (fixed)
Enable annotations for extracts
Reported by: | Fredrik Levander | Owned by: | olle |
---|---|---|---|
Milestone: | Proteios 2.1 | Keywords: | |
Cc: |
Description
It should be possible to view and add annotations for extracts, as is currently possible for samples.
Change History (12)
comment:1 Changed 15 years ago by
Milestone: | Proteios Future Release → Proteios 2.1 |
---|
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
comment:3 Changed 15 years ago by
severity: | 16 → 2 |
---|
Severity changed to 2, as changes needed for Extract.class and LabeledExtract.class in order to add annotations can be based on corresponding code for Sample.class. Similarly, new needed classes can be based on corresponding classes used for adding annotations to Sample items.
comment:4 Changed 15 years ago by
(In [2477]) Refs #339. Class/file action/write/AddAnnotation.java in client/servlet/ updated in public method void runMe():
- An
ItemFactory
instance is obtained by calling getItemFactory(dc), instead of always creating a newItemFactory
instance.
- A
BasicItem
item with known id 'id' is obtained by calling factory.getById(Item.valueOf(itemType).getItemClass(), id) instead of Item.valueOf(itemType).getById(dc, id). This removes the need for the core class for the item to have a getById(...) method.
comment:5 Changed 15 years ago by
(In [2479]) Refs #339. Update to allow annotation support for extracts and labeled extracts.
- Classes/files action/extract/ViewActiveExtract.java and action/extract/ViewActiveLabeledExtract.java in client/servlet/ updated in protected method void runMe() by adding an annotation form analogously to action/sample/ViewActiveSample.java in client/servlet/.
- New classes/files action/extract/AddExtractFile.java and action/extract/AddLabeledExtractFile.java in client/servlet/ based on class/file action/sample/AddSampleFile.java in client/servlet/.
- New classes/files action/extract/CreateExtractFile.java and action/extract/CreateLabeledExtractFile.java in client/servlet/ based on class/file action/sample/CreateSampleFile.java in client/servlet/.
comment:6 Changed 15 years ago by
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:8 Changed 12 years ago by
(In [4158]) Refs #741. Refs #339. Annotation management for biomaterials, i.e. samples, extracts, and labeled extracts, updated with view action for an annotation, that allows the value to be edited, and support for deleting an annotation:
- Class/file action/annotation/SaveAnnotation.java in client/servlet/ updated to obtain an action link id from valid parameter
VString ForwardField.VPARAM
, and forward action to this when it is finished.
- Class/file action/annotation/ViewAnnotation.java in client/servlet/ updated to obtain an action link id from valid parameter
VString ForwardField.VPARAM
, and transfer the value toSaveAnnotation
, if the latter action is called.
- Class/file action/file/ViewActiveFile.java in client/servlet/ updated to set value of valid parameter
VString ForwardField.VPARAM
to that of the class itself (in this caseViewActiveFile
), when actionViewAction
is called.
- Class/file action/sample/ViewActiveSample.java in client/servlet/ updated in private method
Table createAnnotationsTable(TableFactory tableFactory, ItemQuery<Annotation> annotationQuery)
to set view action for annotation value toViewAnnotation
and add tool bar with button coupled to action link toDeleteAnnotations
.
- Class/file action/extract/ViewActiveExtract.java in client/servlet/ updated to create annotation table using same private method
Table createAnnotationsTable(TableFactory tableFactory, ItemQuery<Annotation> annotationQuery)
as was used forViewActiveSample
.
- Class/file action/extract/ViewActiveLabeledExtract.java in client/servlet/ updated to create annotation table using same private method
Table createAnnotationsTable(TableFactory tableFactory, ItemQuery<Annotation> annotationQuery)
as was used forViewActiveSample
.
comment:9 Changed 12 years ago by
(In [4159]) Refs #741. Refs #339. View action defined for items when listing labeled extracts:
- Class/file action/ActionFactory.java in client/servlet/ updated in public synchronized method
ActionLink getViewActionLink(AttributeDefinition ad)
to set view action for labeled extract items toViewLabeledExtract
.
comment:10 Changed 12 years ago by
(In [4161]) Refs #741. Refs #339. Annotation management for biomaterials, i.e. samples, extracts, and labeled extracts, updated with links for associated file items, that leads to the properties form for the file:
- Class/file action/sample/ViewActiveSample.java in client/servlet/ updated in private method
Table createFileTable(Sample sample)
with action link for associated file items. The action link is coupled to actionViewFile
, and the file id value is added to valid parameterVInteger FormFactory.VID
.
- Class/file action/extract/ViewActiveExtract.java in client/servlet/ updated in protected method
void runMe()
with action link for associated file items. The action link is coupled to actionViewFile
, and the file id value is added to valid parameterVInteger FormFactory.VID
.
- Class/file action/extract/ViewActiveLabeledExtract.java in client/servlet/ updated in protected method
void runMe()
with action link for associated file items. The action link is coupled to actionViewFile
, and the file id value is added to valid parameterVInteger FormFactory.VID
.
Ticket accepted.