Skip to content

Commit

Permalink
updating metadata page
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolvin committed Nov 21, 2024
1 parent 55fef15 commit 053ed14
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion current/all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion current/analyse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion current/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>brightcove.core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion current/it.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion current/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<packaging>pom</packaging>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<description>Brightcove Connector</description>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion current/ui.apps.structure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion current/ui.apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,21 @@
<%@ page import="org.apache.sling.commons.json.JSONObject" %>
<%@ page import="com.coresecure.brightcove.wrapper.sling.ServiceUtil" %>
<%@ page import="org.apache.sling.commons.json.JSONArray" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@include file="/libs/foundation/global.jsp" %>
<%
Resource asset_res = slingRequest.getParameter("item") != null ? resourceResolver.resolve(slingRequest.getParameter("item")) : resourceResolver.resolve(slingRequest.getRequestPathInfo().getSuffix());
ValueMap parentProps = asset_res.getParent().getValueMap();
Resource metadataRes = asset_res.getChild("jcr:content/metadata");
ValueMap map = metadataRes.adaptTo(ValueMap.class);
String brcid = map.get("brc_id","");
Node parentNode = asset_res.getParent().adaptTo(Node.class);
if ( parentProps != null && parentNode.hasProperty("brc_folder_id")) {
if ( StringUtils.isNotBlank("brc_id")) {
String requestedAccount;
Expand All @@ -55,8 +59,6 @@
requestedAccount = parentNode.getName();
}
Resource metadataRes = asset_res.getChild("jcr:content/metadata");
ValueMap map = metadataRes.adaptTo(ValueMap.class);
ServiceUtil serviceUtil = new ServiceUtil(requestedAccount);
Expand Down
2 changes: 1 addition & 1 deletion current/ui.config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion current/ui.content/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion current/ui.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>com.coresecure</groupId>
<artifactId>brightcove</artifactId>
<version>6.1.9</version>
<version>6.1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 053ed14

Please sign in to comment.