Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcategories and dependencies not working #152

Open
esyriani opened this issue Jun 14, 2024 · 0 comments
Open

Subcategories and dependencies not working #152

esyriani opened this issue Jun 14, 2024 · 0 comments

Comments

@esyriani
Copy link
Member

Describe the bug
In the data extraction form, subcategories don't work, when clicking +Add, it opens a modal dialog with a ReLiS page instead of the expected data extraction form. Also, it seems the table under Reference Categories is not created correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new demo_relis project (use the demo_relis.relis configuration below) or use the Demo ReLiS project in production.
  2. Note there is a subcategory:
    DynamicList variety "Variety" [2] = ["Bitter","Bittersweet","Semi-sweet","Sweet"] { DynamicList level1 "Level 1" depends_on cocoa_level DynamicList level2 "Level 2" depends_on cocoa_level }
    which refers to
    List cocoa_level "Cocoa level" * [1] = ["35%","40%","45%","50%","55%","60%","65%","70%","75%","80%","90%","95%","100%"]
  3. When classifying an article, variety appears in the Reference Categories menu (see image)
  4. Click on +Add of the variety field (which should be Variety)
  5. You will see an incorrect modal dialog. It should show two fields: Level 1 and Level 2 with a select.

image

image

PROJECT demo_relis "Demo ReLiS"

SCREENING

Reviews 2
Conflict on Criteria resolved_by Unanimity
Criteria = ["EC1: Too short ","EC2: Not abour chocolate" ]
Sources = ["Google Scholar","Chocolate DB"]
Strategies =["Manual search","Snowballing"]
Validation 10% Normal
Phases "Title" "Screen by title" Fields(Title),
"Full-Text" "Screen by full-text" Fields(Title,Abstract,Link,Preview)

/************************/
QA

Questions =["Is the paper about chocolate?","Is the chocolate brand available?","Is there a validation of the methodology?"]
Response=["Yes":3,"Bearly":1.5,"No":0]
Min_score 5

/************************/
CLASSIFICATION

Simple has_choco "Has chocolate" * :bool
Simple temperature "Temperature" * :real
Simple start "Start date" * :date
Simple code "Code" :string(10) style("[A-Z]+[0-9]*") = ["AB9"]
DynamicList brand "Brand" [1] "Brand" =["Ferrero","Ghirardelli","Godiva","Hersheys","Leonidas","Lindt","Nestle"]
List cocoa_origin "Cocoa origin" [-1] =["Cote dIvoire","Indonesia","Ghana","Nigeria","Cameroon","Brazil","Ecuador","Mexico","Dominican Republic","Peru"]
List cocoa_level "Cocoa level" * [1] = ["35%","40%","45%","50%","55%","60%","65%","70%","75%","80%","90%","95%","100%"]
List types "Types" [-1] = ["Raw","Dark","Milk","White","Baking","Modeling","Organic","Compound","Couverture","Ruby"]
DynamicList variety "Variety" [2] = ["Bitter","Bittersweet","Semi-sweet","Sweet"] {
DynamicList level1 "Level 1" depends_on cocoa_level
DynamicList level2 "Level 2" depends_on cocoa_level
}
Simple venue "Venue" * :string(100)
Simple year "Year" * :int(4)
Simple citation "Number of citations" [1] : int
Simple note "Note" [1] :text(500)

/************************/
REPORT

Simple year "Papers per year" on year charts(line)
Compare year_venue "Venue per year" on venue with year charts(bar)
Compare year_citation "Citations per year" on citation with year charts(bar)

Simple has_choco "Has chocolate" on has_choco charts(pie)
Simple temperature "Temperature" on temperature charts(pie)

Compare year_brand "Brand per year" on brand with year charts(line)

Compare level_origin "Cocoa level per origin" on cocoa_level with cocoa_origin charts(bar)
Compare level_types "Cocoa types per level" on types with cocoa_origin charts(bar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Minor
Development

No branches or pull requests

1 participant