Skip to content

Commit

Permalink
Revert showing dateModified in UI (2c3f79d, #244)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Oct 11, 2022
1 parent e2b4e0c commit 3131fc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/models/AuthorityResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,4 @@ private static String year(JsonNode node) {
String text = node.elements().next().asText();
return text.matches("\\d{4}-\\d{2}-\\d{2}") ? text.split("-")[0] : text;
}

public String dateModified() {
return json.findValue("dateModified").asText().split("T")[0];
}
}
1 change: 0 additions & 1 deletion app/views/details.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
<a title='Turtle aus GND anzeigen' href='https://d-nb.info/gnd/@resource.getId()/about/lds.ttl'>Turtle</a>)
@if(entityFacts){und <a href='https://www.dnb.de/entityfacts'>EntityFacts</a> (<a title="JSON-LD in EntityFacts anzeigen" href='@(controllers.HomeController.config("entityfacts.live")+resource.getId)'>JSON-LD</a>)}
| <a href='https://creativecommons.org/publicdomain/zero/1.0/'>CC0</a>
| @resource.dateModified
</div></p>
}}

Expand Down

0 comments on commit 3131fc1

Please sign in to comment.