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

Release 1.5.1 #244

Merged
merged 23 commits into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7a0a7ed
Merge remote-tracking branch 'upstream/master' into develop
charvolant Feb 3, 2021
6ad67a0
Bump development version
charvolant Feb 3, 2021
723a4fa
Merge pull request #235 from charvolant/develop
charvolant Feb 3, 2021
bfa5441
Only use specific language tags in EoL
charvolant Mar 25, 2021
56c59bd
Fix test cases
charvolant Mar 25, 2021
23abbf5
Upgrade bootstrap and auth libraries
charvolant Mar 25, 2021
6ec533b
Merge pull request #239 from charvolant/issue-238
charvolant Mar 25, 2021
081b0d6
Make plugin run stand-alone for testing
charvolant Mar 30, 2021
dd747e1
Blacklist for EoL
charvolant Mar 30, 2021
a597dcb
Provide more sophisticated model for article matching.
charvolant Apr 1, 2021
39dcda3
Update doco
charvolant Apr 5, 2021
670a096
Clarifiy blacklist functionality
charvolant Apr 6, 2021
39ea8ff
Merge pull request #240 from charvolant/issue-238
charvolant Apr 6, 2021
1779c60
Additional labels and consistency requested by functional recview
charvolant Apr 27, 2021
7c07bf6
Merge branch 'master' into develop
charvolant Apr 27, 2021
8bbe6aa
Merge remote-tracking branch 'upstream/develop' into develop
charvolant Apr 27, 2021
f92603b
Merge pull request #241 from charvolant/develop
charvolant Apr 27, 2021
398b9fa
More labels and messages
charvolant Apr 28, 2021
e90582d
Merge pull request #242 from charvolant/develop
charvolant Apr 28, 2021
6db15d2
Fix download error
charvolant May 6, 2021
65c1785
Merge pull request #243 from charvolant/develop
charvolant May 6, 2021
57d4fa4
Merge remote-tracking branch 'upstream/master'
charvolant May 13, 2021
147a6ad
Release 1.5.1
charvolant May 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Additional labels and consistency requested by functional recview
  • Loading branch information
charvolant committed Apr 27, 2021
commit 1779c6091431bdbe6e99c75a8188116874142038
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@ dependencies {
compile "org.jsoup:jsoup:1.8.3"

compile group: 'org.grails.plugins', name: 'ala-bootstrap3', version: '3.0.6'
compile group: 'org.grails.plugins', name: 'ala-auth', version:'3.1.2', changing: true
compile group: 'org.grails.plugins', name: 'ala-auth', version:'3.1.3', changing: true
compile group: 'au.org.ala.plugins.grails', name: 'ala-citation-plugin', version: '1.0'
runtime group: 'au.org.ala.plugins.grails', name: 'ala-charts-plugin', version: '2.0.1'
compile group: 'au.org.ala.plugins.grails', name: 'images-client-plugin', version: '1.2'
//runtime group: 'org.grails.plugins', name: 'ala-charts-plugin', version: '1.3', changing: true
//compile (group: 'org.grails.plugins', name: 'images-client-plugin', version: '0.8', changing: true) {
// exclude group: 'org.grails.plugins', module: 'ala-auth'
//}
runtime group: 'xml-apis', name: 'xml-apis', version: '1.4.01'
runtime "org.hibernate:hibernate-validator:5.4.2.Final"
}

bootRun {
Expand Down
5 changes: 4 additions & 1 deletion grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ endpoints:
app:
name: bie-plugin
dataDir: /tmp/gbif-ecat
security:
cas:
appServerName: http:https://dev.ala.org.au:8080
skin:
layout: generic
orgNameLong: BIE Plugin
Expand All @@ -111,7 +114,7 @@ projectNameShort: ALA
projectName: Atlas of Living Australia
languageCodesUrl: /languages.json
biocache:
baseURL: "http:https://biocache.ala.org.au"
baseURL: http:https://biocache.ala.org.au
biocacheService:
baseURL: http:https://biocache.ala.org.au/ws
queryContext:
Expand Down
92 changes: 59 additions & 33 deletions grails-app/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -118,48 +118,74 @@ imageAvailable.false=No
imageAvailable.yes=Yes
imageAvailable.true=Yes

rank.kingdom=Kingdom
rank.phylum=Phylum
rank.order=Order
rank.family=Family
rank.genus=Genus
rank.species=Species
rank.subspecies=Subspecies
rank.variety=Variety
rank.(rank\ not\ specified)=(Rank not specified)
rank.subgenus=Subgenus
rank.Incertae\ Sedis\ (uncertain\ rank)=Incertae Sedis (uncertain rank)
rank.Species\ Inquirenda\ (doubtful\ identity)=Species Inquirenda (doubtful identity)
rank.anamorph=Anamorph
rank.biovar=Biovar
rank.class=Class
rank.cohort=Cohort
rank.cultivar=Cultivar
rank.division=Division
rank.division\ zoology=Division (Zoology)
rank.family=Family
rank.form=Form
rank.forma\ specialis=Forma Specialis
rank.genus=Genus
rank.genus\ group=Genus Group
rank.incertae\ sedis=Incertae Sedis (uncertain rank)
rank.informal=Informal
rank.infraclass=Infraclass
rank.infrafamily=Infrafamily
rank.infraorder=Infraorder
rank.infraspecific=Infraspecific
rank.infraspecificname=Infraspecific Name
rank.kingdom=Kingdom
rank.nothovariety=Nothovariety
rank.null=(not specified)
rank.order=Order
rank.pathovar=Pathovar
rank.phylum/division=Phylum/Division
rank.phylum=Phylum
rank.section=Section
rank.subfamily=Subfamily
rank.tribe=Tribe
rank.section\ botany=Section (Botany)
rank.section\ zoology=Section (Zoology)
rank.series=Series
rank.superfamily=Superfamily
rank.subtribe=Subtribe
rank.subsection=Subsection
rank.series\ botany=Series (Botany)
rank.serovar=Serovar
rank.species=Species
rank.species\ group=Species Group
rank.species\ inquirenda=Species Inquirenda (doubtful identity)
rank.subclass=Subclass
rank.subdivision\ zoology=Subdivision (Zoology)
rank.subfamily=Subfamily
rank.subform=Subform
rank.subgenus=Subgenus
rank.subinfraclass=Subinfraclass
rank.subkingdom=Subkingdom
rank.suborder=Suborder
rank.subphylum/subdivision=Subphylum/Subdivision
rank.subphylum=Subphylum
rank.subsection=Subsection
rank.subsection\ botany=Subsection (Botany)
rank.subsection\ zoology=Subsection (Zoology)
rank.subseries=Subseries
rank.subseries\ botany=Subseries (Botany)
rank.subspecies=Subspecies
rank.subspecies\ aggregate=Subspecies Aggregate
rank.subtribe=Subtribe
rank.subvariety=Subvariety
rank.subclass=Subclass
rank.class=Class
rank.suprageneric\ tax_\ of\ undefined\ rank=Suprageneric taxon of undefined rank
rank.superclass=Superclass
rank.superfamily=Superfamily
rank.superorder=Superorder
rank.superspecies=Superspecies
rank.supertribe=Supertribe
rank.suprageneric\ tax.\ of\ undefined\ rank=Suprageneric taxon of undefined rank
rank.suprageneric\ tax_\ of\ undefined\ rank=Suprageneric taxon of undefined rank
rank.supragenericname=Subfamily
rank.infraorder=Infraorder
rank.infraspecific=Infraspecific
rank.infraspecificname=Infraspecific Name
rank.subspecies\ aggregate=Subspecies Aggregate
rank.supertribe=Supertribe
rank.phylum/division=Phylum/Division
rank.superorder=Superorder
rank.subphylum/subdivision=Subphylum/Subdivision
rank.infraclass=Infraclass
rank.null=(not specified)
rank.superclass=Superclass
rank.form=Form
rank.Incertae\ Sedis\ (uncertain\ rank)=Incertae Sedis (uncertain rank)
rank.Species\ Inquirenda\ (doubtful\ identity)=Species Inquirenda (doubtful identity)
rank.cohort=Cohort
rank.division=Division
rank.tribe=Tribe
rank.unranked=Unranked
rank.variety=Variety

idxtype.TAXON=Species
idxtype.INSTITUTION=Institution
Expand Down
13 changes: 11 additions & 2 deletions grails-app/services/au/org/ala/bie/UtilityService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ class UtilityService {
namesSet
}

def stripQuotes(String str) {
if (str == null || str.length() < 2)
return str
if (str.startsWith('"') && str.endsWith('"'))
str = str.substring(1, str.length() - 1)
return str.trim()
}

/**
* Group names which are equivalent into a map with a list of their name objects.
* <p>
Expand Down Expand Up @@ -103,7 +111,7 @@ class UtilityService {
if (term.contains(":")) {
String[] fqBits = StringUtils.split(term, ":", 2);
def values = facetMap.get(fqBits[0], [])
values << fqBits[-1] ?: ""
values << this.stripQuotes(fqBits[-1]) ?: ""
}
}
}
Expand Down Expand Up @@ -202,4 +210,5 @@ class UtilityService {
}
log.debug "synonyms = ${synonyms}"
synonyms
}}
}
}
8 changes: 4 additions & 4 deletions grails-app/views/species/_literature.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<div class="side-menu" id="sidebar">
<nav class="navbar navbar-default" role="navigation">
<ul class="nav nav-stacked">
<li><a href="#bhl-integration">Biodiversity Heritage Library</a></li>
<li><a href="#trove-integration">Trove</a></li>
<li><a href="#bhl-integration"><g:message code="bhl.title.bhl"/></a></li>
<li><a href="#trove-integration"><g:message code="bhl.title.trove"/></a></li>
</ul>
</nav>
</div>
Expand All @@ -17,7 +17,7 @@

<div id="bhl-integration">
<%-- Scientific name search --%>
<h3><g:message code="bhl.reference.found.bhl"/> <a href="${grailsApplication.config.literature.bhl.url}/search?SearchTerm=%22${synonyms?.join('%22+OR+%22')}%22&SearchCat=M#/names" target="_blank">Biodiversity Heritage Library</a></h3>
<h3><g:message code="bhl.reference.found.bhl"/> <a href="${grailsApplication.config.literature.bhl.url}/search?SearchTerm=%22${synonyms?.join('%22+OR+%22')}%22&SearchCat=M#/names" target="_blank"><g:message code="bhl.title.bhl"/></a></h3>
<div id="bhl-results-list" class="result-list">
<!-- Search results go here -->
</div>
Expand All @@ -26,7 +26,7 @@
<div id="trove-integration" class="column-wrap" style="padding-top:50px;">
%{--<h2>&nbsp;</h2>--}%
<hr />
<h3><g:message code="bhl.reference.found.trove"/> <a href="${grailsApplication.config.literature.trove.url}/result?q=%22${synonyms?.join('%22+OR+%22')}%22" target="_trove">Trove - NLA</a></h3>
<h3><g:message code="bhl.reference.found.trove"/> <a href="${grailsApplication.config.literature.trove.url}/result?q=%22${synonyms?.join('%22+OR+%22')}%22" target="_trove"><g:message code="bhl.title.trove"/></a></h3>

<div id="trove-result-list" class="result-list">
<!-- Search results go here -->
Expand Down