Skip to content

Commit 9b39194

Browse files
ajrbyersmauromsl
authored andcommitted
Bugfix for xml preview and version bump to 1.2
1 parent 83e75b9 commit 9b39194

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

plugin_settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PLUGIN_NAME = 'Back Content Plugin'
22
DESCRIPTION = 'This plugin supports the loading of back content via form or JATS XML.'
33
AUTHOR = 'Andy Byers'
4-
VERSION = '1.1'
4+
VERSION = '1.2'
55
SHORT_NAME = 'back_content'
66
MANAGER_URL = 'bc_index'
77
JANEWAY_VERSION = "1.3.6"
@@ -15,6 +15,7 @@
1515

1616
from utils import models
1717

18+
1819
def install():
1920
new_plugin, created = models.Plugin.objects.get_or_create(name=SHORT_NAME, version=VERSION, enabled=True)
2021

views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def preview_xml_galley(request, article_id, galley_id):
239239
if not galley:
240240
raise Http404
241241

242-
content = journal_logic.list_galleys(article, galley)
242+
content = journal_logic.get_galley_content(article, galley)
243243

244244
template = 'journal/article.html'
245245
context = {

0 commit comments

Comments
 (0)