Skip to content

Commit

Permalink
Merge pull request #435 from massimoaria/develop
Browse files Browse the repository at this point in the history
Biblioshiny: Menu Data - Added the option to choose between Author fu…
  • Loading branch information
massimoaria authored Mar 12, 2024
2 parents cba43ef + e5ee58c commit b0180a0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions inst/biblioshiny/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ To ensure the functionality of Biblioshiny,
M <- convert2df(D,
dbsource = input$dbsource,
format = format(D))
if (input$authorName=="AF"){
M <- M %>%
rename(AU_IN = .data$AU,
AU = .data$AF)
}
})
},
### WoS Txt/Bib Files
Expand All @@ -248,6 +253,11 @@ To ensure the functionality of Biblioshiny,
M <- convert2df(inFile$datapath,
dbsource = input$dbsource,
format = format(inFile$datapath))
if (input$authorName=="AF"){
M <- M %>%
rename(AU_IN = .data$AU,
AU = .data$AF)
}
})
})
},
Expand All @@ -261,6 +271,11 @@ To ensure the functionality of Biblioshiny,
M <- convert2df(D,
dbsource = input$dbsource,
format = format(D))
if (input$authorName=="AF"){
M <- M %>%
rename(AU_IN = .data$AU,
AU = .data$AF)
}
})
},
### Scopus CSV/Bib Files
Expand All @@ -270,6 +285,11 @@ To ensure the functionality of Biblioshiny,
M <- convert2df(inFile$datapath,
dbsource = input$dbsource,
format = "csv")
if (input$authorName=="AF"){
M <- M %>%
rename(AU_IN = .data$AU,
AU = .data$AF)
}
})
},
bib = {
Expand All @@ -278,6 +298,11 @@ To ensure the functionality of Biblioshiny,
M <- convert2df(inFile$datapath,
dbsource = input$dbsource,
format = "bibtex")
if (input$authorName=="AF"){
M <- M %>%
rename(AU_IN = .data$AU,
AU = .data$AF)
}
})
})
},
Expand Down
9 changes: 9 additions & 0 deletions inst/biblioshiny/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,15 @@ body <- dashboardBody(
"Cochrane Library" = "cochrane"
),
selected = "isi"
),
selectInput(
"authorName",
label = "Author Name format",
choices = c(
"Fullname (if available)" = "AF",
"Surname and Initials" = "AU"
),
selected = "AU"
)
),
conditionalPanel(
Expand Down

0 comments on commit b0180a0

Please sign in to comment.