Skip to content

Commit

Permalink
Merge pull request #68 from lcnetdev/fix-html-encoding-literals
Browse files Browse the repository at this point in the history
Decode subject searches after url creation
  • Loading branch information
f-osorio authored Oct 2, 2024
2 parents 53b402f + daf6413 commit 0738a3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/utils_network.js
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,8 @@ const utilsNetwork = {
let subjectUrlGeographicLCSH = useConfigStore().lookupConfig['http://id.loc.gov/authorities/subjects'].modes[0]['LCSH All'].url.replace('<QUERY>',searchVal).replace('&count=25','&count=5').replace("<OFFSET>", "1")+'&rdftype=Geographic&memberOf=http://id.loc.gov/authorities/subjects/collection_Subdivisions'
let subjectUrlGeographicLCNAF = useConfigStore().lookupConfig['http://preprod.id.loc.gov/authorities/names'].modes[0]['NAF All'].url.replace('<QUERY>',searchVal).replace('&count=25','&count=5').replace("<OFFSET>", "1")+'&rdftype=Geographic&memberOf=http://id.loc.gov/authorities/subjects/collection_Subdivisions'

searchVal = decodeURIComponent(searchVal)

// console.log('subjectUrlSimpleSubdivison',subjectUrlSimpleSubdivison)
let searchPayloadNames = {
processor: 'lcAuthorities',
Expand Down Expand Up @@ -2023,6 +2025,8 @@ const utilsNetwork = {
subjectUrlHierarchicalGeographic = subjectUrlHierarchicalGeographic.replace('&count=4','&count=12').replace("<OFFSET>", "1")
}

searchVal = decodeURIComponent(searchVal)
complexVal = decodeURIComponent(complexVal)

let searchPayloadNames = {
processor: 'lcAuthorities',
Expand Down

0 comments on commit 0738a3a

Please sign in to comment.