Skip to content

Commit

Permalink
improving EAD 2002 template to cope with empty dates
Browse files Browse the repository at this point in the history
  • Loading branch information
luis100 committed Apr 7, 2016
1 parent 2a05fcb commit c222c18
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/resources/templates/ead2002.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@
<did>
<unittitle>{{title}}</unittitle>
<unitid>{{id}}</unitid>
<unitdate normal="{{dateInitial}}/{{dateFinal}}">{{dateInitial}}/{{dateFinal}}</unitdate>
{{#dateInitial}}
{{#dateFinal}}
<unitdate normal="{{dateInitial}}/{{dateFinal}}">{{dateInitial}}/{{dateFinal}}</unitdate>
{{/dateFinal}}
{{^dateFinal}}
<unitdate normal="{{dateInitial}}">{{dateInitial}}</unitdate>
{{/dateFinal}}
{{/dateInitial}}
{{^dateInitial}}
{{#dateFinal}}
<unitdate normal="{{dateFinal}}">{{dateFinal}}</unitdate>
{{/dateFinal}}
{{/dateInitial}}
<origination label="producer">{{producer}}</origination>
<origination label="creator">{{creator}}</origination>
<langmaterial>{{language}}</langmaterial>
Expand Down

0 comments on commit c222c18

Please sign in to comment.