GithubHelp home page GithubHelp logo

aortego / fix_report_url Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 100 KB

This script repairs the erroneous <a> tag's created by the Esri Report Designer, if hyperlinks are enabled.

Python 12.87% HTML 87.13%

fix_report_url's Introduction

Repairing URL's from the Report Designer output

This script repairs the erroneous tag's created by the Report Designer, if hyperlinks are enabled.

If you're creating a report and saving it as an HTM or HTML file, the tags will look like this: http://www.esri.com/

This creates a hyperlink using the URL, but that link leads to a non-existent file call "True".

This script will repair those links, and remove the redacted tags, making the URL's function correctly.

Occasionally the user will want to make a Table of Contents HTM file in conjunction with the report. This script will detect that TOC file as long as it has the same name as the report HTM file, and update the links in that TOC file to utilize the repaired HTML file.

Caveat

  • This script requires the Beautiful Soup 4 module, found here: http://www.crummy.com/software/BeautifulSoup/#Download From that zip file, move the "bs4" folder into the following directory: C:\Python27\ArcGIS10.x\Lib\site-packages
  • This script could potentially run just fine with any HTM file, so verify that you are using it to correct HTM or HTML files created with the Report Designer.

How can I run this?

This runs as a standalone script in any Python IDE, using Python 2 from Esri.

Unfamiliar with Python?

fix_report_url's People

Contributors

aortego avatar drewortego avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.