Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

googleScraper #138

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions tools/editor/js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<li><a href="#section-description"><i class="icon-chevron-right"></i> Description</a></li>
<li><a href="#section-price"><i class="icon-chevron-right"></i> Price</a></li>
<li><a href="#section-customer-support"><i class="icon-chevron-right"></i> Customer Support</a></li>
<li><a href="#section-developer"><i class="icon-chevron-right"></i> Developer</a></li>
<li><a href="#section-consent"><i class="icon-chevron-right"></i> Consent</a></li>
<li><a href="#section-content-description"><i class="icon-chevron-right"></i> Content Rating and Descriptors</a></li>
<li><a href="#section-availability"><i class="icon-chevron-right"></i> Availability</a></li>
Expand Down Expand Up @@ -291,15 +292,15 @@ <h3 id="description-videos-youtubevideo-dialog-label">YouTube Video</h3>
</div>
</fieldset>
</section><!--section-apk-files-->

<section id="section-categorization">
<fieldset>
<div id="legend">
<legend class="">Category</legend>
</div>
<div class="control-group">
<!-- categorization/type -->
<label class="control-label" for="categorization-type">Application type <span class="required-mark">*</span></label>
<label class="control-label" for="categorization-type">Application type <span class="required-mark">*</span></label>
<div class="controls">
<select id="categorization-type" name="categorization-type">
<option value="application">Application</option>
Expand Down Expand Up @@ -755,6 +756,22 @@ <h3 id="add-localization-modal-label">Add Localization</h3>
</fieldset>
</section><!--section-customer-support-->

<section id="section-developer">
<fieldset>
<div id="legend">
<legend class="">Developer</legend>
</div>
<div class="control-group">
<!-- developer -->
<label class="control-label" for="developer-name">Developer</label>
<div class="controls">
<input type="text" id="developer-name" name="developer-name" maxlength="256" />
<p class="help-block">Developer company name</p>
</div>
</div><!--control-group-->
</fieldset>
</section><!--section-developer-->

<section id="section-consent">
<fieldset>
<div id="legend">
Expand Down
3 changes: 3 additions & 0 deletions tools/editor/js/js/appdfparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ var appdfParser = (function() {

$curXml = getElementsByPath($xml, "application-description-file/application");

//Developer
loadText("developer");

//Categorization
section("categorization", "categorization", function() {
loadText("type");
Expand Down
3 changes: 3 additions & 0 deletions tools/editor/js/js/appdfxmlloading.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ var appdfXMLLoader = (function() {
console.log("Description.XML is parsed");
console.log(data);

//set Developer name
$("#developer-name").val(data["developer"]);

//Set control values in the categorization section
$("#categorization-type").val(data["categorization"]["type"]);
appdfEditor.fillCategories();
Expand Down
29 changes: 17 additions & 12 deletions tools/editor/js/js/appdfxmlsaving.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

var appdfXMLSaver = (function() {

function generateDeveloperXML(xml) {
xml.addNonEmptyTextTag("<developer>", $("#developer-name").val());
};

function generateCategorizationXML(xml) {
xml.addTag("<categorization>", function() {
xml.addTag("<type>", $("#categorization-type").val());
Expand Down Expand Up @@ -443,18 +447,19 @@ var appdfXMLSaver = (function() {
xml.addLine('<?xml version="1.0" encoding="UTF-8"?>');
xml.addTag('<application-description-file version="1">', function() {
xml.addTag('<application platform="android" package="' + appdfEditor.firstApkFileData.package + '">', function() {
generateCategorizationXML(xml);
generateDescriptionXML(xml);
generateDescriptionLocalizationsXML(xml);
generateContentDescriptionXML(xml);
generateAvailabilityXML(xml);
generatePriceXML(xml);
generateApkFilesXML(xml);
generateRequirementsXML(xml);
generateTestingInstructionsXML(xml);
generateConsentXML(xml);
generateCustomerSupportXML(xml);
generateStoreSpecificXML(xml);
generateDeveloperXML(xml);
generateCategorizationXML(xml);
generateDescriptionXML(xml);
generateDescriptionLocalizationsXML(xml);
generateContentDescriptionXML(xml);
generateAvailabilityXML(xml);
generatePriceXML(xml);
generateApkFilesXML(xml);
generateRequirementsXML(xml);
generateTestingInstructionsXML(xml);
generateConsentXML(xml);
generateCustomerSupportXML(xml);
generateStoreSpecificXML(xml);
});
});
return xml.getXmlText();
Expand Down
Loading