Skip to content

Commit

Permalink
revert previous fixes for #1 and #8
Browse files Browse the repository at this point in the history
no need to override the urn in the view args and it breaks other plugins
  • Loading branch information
balmas committed Jul 11, 2016
1 parent 124f4ef commit c322b25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions perseus_nemo_ui/data/templates/passage_footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="ctsurn">
<a href="http://catalog.perseus.org/cite-collections/versions/search?field_type=version&search={{ urn['version'] }}" target='_blank'>Catalog Record</a> -
<a href="http://www.perseids.org/apps/treebank?text_uri=http://perseids.org/cts5/nemo/citations/{{urn['full']}}" target='_blank'>Create Treebank</a> <br />
<a href="/api/cts?request=GetPassage&urn={{urn['full']}}" target='_blank'>{{urn['full']}}</a>
<a href="http://catalog.perseus.org/cite-collections/versions/search?field_type=version&search={{ urn.upTo(urn['NO_PASSAGE']) }}" target='_blank'>Catalog Record</a> -
<a href="http://www.perseids.org/apps/treebank?text_uri=http://perseids.org/cts5/nemo/citations/{{urn}}" target='_blank'>Create Treebank</a> <br />
<a href="/api/cts?request=GetPassage&urn={{urn}}" target='_blank'>{{urn}}</a>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='perseus_nemo_ui',
version="0.0.5",
version="0.0.6",
packages=find_packages(exclude=["examples", "tests"]),
url='https://github.com/PerseusDL/perseus_nemo_ui',
license='GNU GPL',
Expand Down
3 changes: 1 addition & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
api_url="http://cts.perseids.org/api/cts",
chunker={"default": level_grouper},
plugins=[PerseusNemoUi()],
transform={"default": resource_filename("perseus_nemo_ui","data/assets/static/xslt/epidocShort.xsl")},
urntransform={ "default": lambda x : { 'version':x.upTo(URN.NO_PASSAGE), 'full':x } }
transform={"default": resource_filename("perseus_nemo_ui","data/assets/static/xslt/epidocShort.xsl")}
)

app.run()

0 comments on commit c322b25

Please sign in to comment.