Skip to content

Commit

Permalink
Remove md:title from page template
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerZeroMaster committed Jun 25, 2024
1 parent 64e3ee8 commit 5136633
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/src/model-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ export class ModelManager {
<document xmlns="http://cnx.rice.edu/cnxml">
<title/>
<metadata xmlns:md="http://cnx.rice.edu/mdml">
<md:title/>
<md:content-id/>
<md:uuid/>
</metadata>
Expand All @@ -689,7 +688,6 @@ export class ModelManager {

const doc = new DOMParser().parseFromString(template(), 'text/xml')
selectOne('/cnxml:document/cnxml:title', doc).textContent = title
selectOne('/cnxml:document/cnxml:metadata/md:title', doc).textContent = title
selectOne('/cnxml:document/cnxml:metadata/md:content-id', doc).textContent = newModuleId
selectOne('/cnxml:document/cnxml:metadata/md:uuid', doc).textContent = uuid4()
const xmlStr = new XMLSerializer().serializeToString(doc)
Expand Down

0 comments on commit 5136633

Please sign in to comment.