Skip to content

Commit

Permalink
#47: Update courses by id XML action to match values currently in out…
Browse files Browse the repository at this point in the history
…put.
  • Loading branch information
adamfranco committed Oct 10, 2024
1 parent bfc3eb2 commit 7d03296
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/partials/course.xml.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<item>
<title>{{ course.displayname }}</title>
<title>{{ course.displayname }} - {{ course.title }}</title>
<link>{{ url('view_course', {'course': osidIdToString(course.id)}) }}</link>
<guid isPermaLink="true">{{ url('view_course', {'course': osidIdToString(course.id)}) }}</guid>
<description><![CDATA[{{ course.description|raw }}]]></description>
<catalog:title>{{ course.title }}</catalog:title>
<catalog:id>{{ osidIdToString(course.id) }}</catalog:id>
<catalog:display_name>{{ course.displayname }}</catalog:display_name>
<catalog:title>{{ course.title }}</catalog:title>
{%~ if is_primary is not null %}
<catalog:enrollable>{{ is_primary ? 'true':'false' }}</catalog:enrollable>
{% endif ~%}
Expand All @@ -17,7 +19,6 @@
<catalog:term id="{{ osidIdToString(termData.term.id) }}" type="{{ termData.type }}">{{ termData.term.displayname }}</catalog:term>
{% endfor ~%}
{% endif %}
<catalog:genustype type="{{ osidTypeToString(course.genustype) }}" id="{{ osidTypeToString(course.genustype) }}">{{ course.genustype.displayname }}</catalog:genustype>
{% for topic in subjectTopics %}
<catalog:topic type="{{ osidTypeToString(topic.genustype) }}" id="{{ osidIdToString(topic.id) }}" href='{{ url('view_topic', {topic: osidIdToString(topic.id)}) }}'>{{ topic.displayname }}</catalog:topic>
{% endfor %}
Expand Down

0 comments on commit 7d03296

Please sign in to comment.