-
Notifications
You must be signed in to change notification settings - Fork 10
Citation link replacement
Bill McKinney (EBSCO) edited this page Oct 18, 2018
·
2 revisions
You can specify find and replace regular expressions to either replace or remove links in citations. The regular expressions can also include the item's EBSCO dbid
(database id) and an
(accession number) using ruby's erb expressions: <%= dbid %>
and <%= an %>
These find and replace regular expressions can be set in the configuration or via environment vars:
configuration | ENV |
---|---|
citation_link_find | EDS_CITATION_LINK_FIND |
citation_link_replace | EDS_CITATION_LINK_REPLACE |
citation_db_find | EDS_CITATION_DB_FIND |
citation_db_replace | EDS_CITATION_DB_REPLACE |
ris_link_find | EDS_RIS_LINK_FIND |
ris_link_replace | EDS_RIS_LINK_REPLACE |
ris_db_find | EDS_RIS_DB_FIND |
ris_db_replace | EDS_RIS_DB_REPLACE |
:citation_link_find => '[.,]\s+(<i>EBSCOhost|viewed|Available|Retrieved from|(http:\/\/)?search.ebscohost.com|Disponível em).+$',
:citation_link_replace => '.',
:citation_db_find => '\s+<i>EBSCOhost<\/i>\.?',
Results:
"ABNT"
BEFORE: "CHITEA, F. Electrical Signatures of Mud Volcanoes Case Studies from Romania. <b>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</b>, jul. 2016. v. 3, p. 467–474. Disponível em: <http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536>. Acesso em: 18 out. 2018. "
AFTER: "CHITEA, F. Electrical Signatures of Mud Volcanoes Case Studies from Romania. <b>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</b>, jul. 2016. v. 3, p. 467–474."
"AMA"
BEFORE: "Chitea F. Electrical Signatures of Mud Volcanoes Case Studies from Romania. <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>. 2016;3:467-474. http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536. Accessed October 18, 2018."
AFTER: "Chitea F. Electrical Signatures of Mud Volcanoes Case Studies from Romania. <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>. 2016;3:467-474."
"APA"
BEFORE: "Chitea, F. (2016). Electrical Signatures of Mud Volcanoes Case Studies from Romania. <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, <i>3</i>, 467–474. Retrieved from http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536"
AFTER: "Chitea, F. (2016). Electrical Signatures of Mud Volcanoes Case Studies from Romania. <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, <i>3</i>, 467–474."
"Chicago/Turabian: Author-Date"
BEFORE: "Chitea, Florina. 2016. “Electrical Signatures of Mud Volcanoes Case Studies from Romania.” <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i> 3 (July): 467–74. http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536."
AFTER: "Chitea, Florina. 2016. “Electrical Signatures of Mud Volcanoes Case Studies from Romania.” <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i> 3 (July): 467–74."
"Harvard"
BEFORE: "Chitea, F. (2016) ‘Electrical Signatures of Mud Volcanoes Case Studies from Romania’, <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, 3, pp. 467–474. Available at: http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536 (Accessed: 18 October 2018)."
AFTER: "Chitea, F. (2016) ‘Electrical Signatures of Mud Volcanoes Case Studies from Romania’, <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, 3, pp. 467–474."
"Harvard: Australian"
BEFORE: "Chitea, F 2016, ‘Electrical Signatures of Mud Volcanoes Case Studies from Romania’, <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, vol. 3, pp. 467–474, viewed 18 October 2018, <http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536>."
AFTER: "Chitea, F 2016, ‘Electrical Signatures of Mud Volcanoes Case Studies from Romania’, <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, vol. 3, pp. 467–474."
"MLA"
BEFORE: "Chitea, Florina. “Electrical Signatures of Mud Volcanoes Case Studies from Romania.” <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, vol. 3, July 2016, pp. 467–474. <i>EBSCOhost</i>, search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536."
AFTER: "Chitea, Florina. “Electrical Signatures of Mud Volcanoes Case Studies from Romania.” <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i>, vol. 3, July 2016, pp. 467–474."
"Chicago/Turabian: Humanities"
BEFORE: "Chitea, Florina. “Electrical Signatures of Mud Volcanoes Case Studies from Romania.” <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i> 3 (July 2016): 467–74. http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536."
AFTER: "Chitea, Florina. “Electrical Signatures of Mud Volcanoes Case Studies from Romania.” <i>Proceedings of the International Multidisciplinary Scientific GeoConference SGEM</i> 3 (July 2016): 467–74."
"Vancouver/ICMJE"
BEFORE: "Chitea F. Electrical Signatures of Mud Volcanoes Case Studies from Romania. Proceedings of the International Multidisciplinary Scientific GeoConference SGEM [Internet]. 2016 Jul [cited 2018 Oct 18];3:467–74. Available from: http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=asn&AN=118411536"
AFTER: "Chitea F. Electrical Signatures of Mud Volcanoes Case Studies from Romania. Proceedings of the International Multidisciplinary Scientific GeoConference SGEM [Internet]. 2016 Jul [cited 2018 Oct 18];3:467–74."
citation_link_find: '(https:\/\/)?stanford\.idm\.oclc\.org\/login\?url=(http:\/\/)?search\.ebscohost\.com\/login\.aspx\?direct=true&site=eds-live&db=<%= dbid %>&AN=<%= an %>',
citation_link_replace: 'https://searchworks.stanford.edu/articles/<%= dbid %>__<%= an %>',
citation_db_find: '<i>EBSCOhost<\/i>',
citation_db_replace: '<i>SearchWorks</i>'
Results:
"AMA"
BEFORE: "Lankau EW, Rogall GM. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>.; 2016. https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076. Accessed October 18, 2018."
AFTER: "Lankau EW, Rogall GM. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>.; 2016. https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076. Accessed October 18, 2018."
"APA"
BEFORE: "Lankau, E. W., & Rogall, G. M. (2016). <i>White-nose syndrome in North American bats : U.S. Geological Survey updates</i>. Retrieved from https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076"
AFTER: "Lankau, E. W., & Rogall, G. M. (2016). <i>White-nose syndrome in North American bats : U.S. Geological Survey updates</i>. Retrieved from https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076"
"Chicago/Turabian: Author-Date"
BEFORE: "Lankau, Emily W., and Gail Moede Rogall. 2016. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>. Fact Sheet (Geological Survey (U.S.)): 2016-3084. https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076."
AFTER: "Lankau, Emily W., and Gail Moede Rogall. 2016. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>. Fact Sheet (Geological Survey (U.S.)): 2016-3084. https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076."
"Harvard"
BEFORE: "Lankau, E. W. and Rogall, G. M. (2016) <i>White-nose syndrome in North American bats : U.S. Geological Survey updates</i>. (Fact sheet (Geological Survey (U.S.)): 2016-3084). Available at: https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076 (Accessed: 18 October 2018)."
AFTER: "Lankau, E. W. and Rogall, G. M. (2016) <i>White-nose syndrome in North American bats : U.S. Geological Survey updates</i>. (Fact sheet (Geological Survey (U.S.)): 2016-3084). Available at: https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076 (Accessed: 18 October 2018)."
"Harvard: Australian"
BEFORE: "Lankau, EW & Rogall, GM 2016, <i>White-nose syndrome in North American bats : U.S. Geological Survey updates</i>, Fact sheet (Geological Survey (U.S.)): 2016-3084, viewed 18 October 2018, <https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076>."
AFTER: "Lankau, EW & Rogall, GM 2016, <i>White-nose syndrome in North American bats : U.S. Geological Survey updates</i>, Fact sheet (Geological Survey (U.S.)): 2016-3084, viewed 18 October 2018, <https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076>."
"MLA"
BEFORE: "Lankau, Emily W., and Gail Moede Rogall. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>. 2016. <i>EBSCOhost</i>, stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076."
AFTER: "Lankau, Emily W., and Gail Moede Rogall. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>. 2016. <i>SearchWorks</i>, https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076."
"Chicago/Turabian: Humanities"
BEFORE: "Lankau, Emily W., and Gail Moede Rogall. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>. Fact Sheet (Geological Survey (U.S.)): 2016-3084, 2016. https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076."
AFTER: "Lankau, Emily W., and Gail Moede Rogall. <i>White-Nose Syndrome in North American Bats : U.S. Geological Survey Updates</i>. Fact Sheet (Geological Survey (U.S.)): 2016-3084, 2016. https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076."
"Vancouver/ICMJE"
BEFORE: "Lankau EW, Rogall GM. White-nose syndrome in North American bats : U.S. Geological Survey updates [Internet]. 2016 [cited 2018 Oct 18]. (Fact sheet (Geological Survey (U.S.)): 2016-3084). Available from: https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076"
AFTER: "Lankau EW, Rogall GM. White-nose syndrome in North American bats : U.S. Geological Survey updates [Internet]. 2016 [cited 2018 Oct 18]. (Fact sheet (Geological Survey (U.S.)): 2016-3084). Available from: https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076"
ris_link_find: 'UR\s+-\s+https:\/\/stanford.idm.oclc.org\/login\?url=http:\/\/search\.ebscohost\.com\/login\.aspx\?direct=true&site=eds-live&db=<%= dbid %>&AN=<%= an %>\s+',
ris_link_replace: '',
ris_db_find: 'DP\s+-\s+EBSCOhost\s+',
ris_db_replace: ''
Result:
BEFORE:
TY - Book
ID - Accession Number:edsgpr.001022076
AU - Lankau, Emily W.
AU - Rogall, Gail Moede
T1 - White-nose syndrome in North American bats : U.S. Geological Survey updates.
T3 - Fact sheet (Geological Survey (U.S.)): 2016-3084
T3 - Fact sheet: 2016-3084
Y1 - 2016///
M3 - Monograph
KW - Bats -- Diseases -- United States.
KW - White-nose syndrome -- United States.
N1 - Accession Number: edsgpr.001022076; Corporate Authors: Geological Survey (U.S.), issuing body.; Other Notes: "National Wildlife Health Center."; "December 2016."; "By Emily W. Lankau and Gail Moede Rogall"--Page [4].; Includes bibliographical references (page [4]).; Publication Type: Book; Physical Description: 1 online resource (4 unnumbered pages) : color illustrations.; Language: English; Other Titles: White nose syndrome in North American bats, White-nose syndrome in North American bats: U.S. Geological Survey updates; OCLC: 992804331; US GPO Item Number: 0621-L (online); Gov. Doc: I 19.127:2016-3084
UR - https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076
UR - https://pubs.usgs.gov/fs/2016/3084/fs20163084.pdf
UR - http://purl.fdlp.gov/GPO/gpo81589
DP - EBSCOhost
DB - edsgpr
ER -
AFTER:
TY - Book
ID - Accession Number:edsgpr.001022076
AU - Lankau, Emily W.
AU - Rogall, Gail Moede
T1 - White-nose syndrome in North American bats : U.S. Geological Survey updates.
T3 - Fact sheet (Geological Survey (U.S.)): 2016-3084
T3 - Fact sheet: 2016-3084
Y1 - 2016///
M3 - Monograph
KW - Bats -- Diseases -- United States.
KW - White-nose syndrome -- United States.
N1 - Accession Number: edsgpr.001022076; Corporate Authors: Geological Survey (U.S.), issuing body.; Other Notes: "National Wildlife Health Center."; "December 2016."; "By Emily W. Lankau and Gail Moede Rogall"--Page [4].; Includes bibliographical references (page [4]).; Publication Type: Book; Physical Description: 1 online resource (4 unnumbered pages) : color illustrations.; Language: English; Other Titles: White nose syndrome in North American bats, White-nose syndrome in North American bats: U.S. Geological Survey updates; OCLC: 992804331; US GPO Item Number: 0621-L (online); Gov. Doc: I 19.127:2016-3084
UR - https://pubs.usgs.gov/fs/2016/3084/fs20163084.pdf
UR - http://purl.fdlp.gov/GPO/gpo81589
DB - edsgpr
ER -
ris_link_find: 'UR\s+-\s+https:\/\/stanford.idm.oclc.org\/login\?url=http:\/\/search\.ebscohost\.com\/login\.aspx\?direct=true&site=eds-live&db=<%= dbid %>&AN=<%= an %>',
ris_link_replace: 'UR - https://searchworks.stanford.edu/articles/<%= dbid %>__<%= an %>',
ris_db_find: 'DP\s+-\s+EBSCOhost',
ris_db_replace: 'DP - SearchWorks'
Result:
BEFORE:
TY - Book
ID - Accession Number:edsgpr.001022076
AU - Lankau, Emily W.
AU - Rogall, Gail Moede
T1 - White-nose syndrome in North American bats : U.S. Geological Survey updates.
T3 - Fact sheet (Geological Survey (U.S.)): 2016-3084
T3 - Fact sheet: 2016-3084
Y1 - 2016///
M3 - Monograph
KW - Bats -- Diseases -- United States.
KW - White-nose syndrome -- United States.
N1 - Accession Number: edsgpr.001022076; Corporate Authors: Geological Survey (U.S.), issuing body.; Other Notes: "National Wildlife Health Center."; "December 2016."; "By Emily W. Lankau and Gail Moede Rogall"--Page [4].; Includes bibliographical references (page [4]).; Publication Type: Book; Physical Description: 1 online resource (4 unnumbered pages) : color illustrations.; Language: English; Other Titles: White nose syndrome in North American bats, White-nose syndrome in North American bats: U.S. Geological Survey updates; OCLC: 992804331; US GPO Item Number: 0621-L (online); Gov. Doc: I 19.127:2016-3084
UR - https://stanford.idm.oclc.org/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=edsgpr&AN=edsgpr.001022076
UR - https://pubs.usgs.gov/fs/2016/3084/fs20163084.pdf
UR - http://purl.fdlp.gov/GPO/gpo81589
DP - EBSCOhost
DB - edsgpr
ER -
AFTER:
TY - Book
ID - Accession Number:edsgpr.001022076
AU - Lankau, Emily W.
AU - Rogall, Gail Moede
T1 - White-nose syndrome in North American bats : U.S. Geological Survey updates.
T3 - Fact sheet (Geological Survey (U.S.)): 2016-3084
T3 - Fact sheet: 2016-3084
Y1 - 2016///
M3 - Monograph
KW - Bats -- Diseases -- United States.
KW - White-nose syndrome -- United States.
N1 - Accession Number: edsgpr.001022076; Corporate Authors: Geological Survey (U.S.), issuing body.; Other Notes: "National Wildlife Health Center."; "December 2016."; "By Emily W. Lankau and Gail Moede Rogall"--Page [4].; Includes bibliographical references (page [4]).; Publication Type: Book; Physical Description: 1 online resource (4 unnumbered pages) : color illustrations.; Language: English; Other Titles: White nose syndrome in North American bats, White-nose syndrome in North American bats: U.S. Geological Survey updates; OCLC: 992804331; US GPO Item Number: 0621-L (online); Gov. Doc: I 19.127:2016-3084
UR - https://searchworks.stanford.edu/articles/edsgpr__edsgpr.001022076
UR - https://pubs.usgs.gov/fs/2016/3084/fs20163084.pdf
UR - http://purl.fdlp.gov/GPO/gpo81589
DP - SearchWorks
DB - edsgpr
ER -