This page shows you the source code and the detail of importing Content Keywords from Google webmaster tools.
- The function of this page
- Location of Source code
- Import Content Keywords csv
- View imported data with datatable
This page is to import Content Keywords csv.
The location of source code is "[ALINOUS_HOME]/admin/internallinks/" folder.
In order to import the Content Keywords csv file, you have to show the popup window, by clicking the "import Content Keywords Csv" button of the page.
After that, the popup window to import the Csv file appears.
The source code is "importpopup.html" and "importpopup.alns".
When you push the "Import Google webmaster tool's CSV" button, source code below is executed.
The "ProgressJob.startJob()" function starts the background job with progressbar. The detail of launching background job with progress bar is written in "Start back ground job with the progress bar" section of Robot access log's implementation.
This time, it starts "
backbroundWrapper()" function and the source code is below.
This function calls "doUploadCsv()". It uses Csv functions and handle each records by calling "
handleOneRecord()" process single csv record.
The format of csv record's 3'rd record is below.
This string starts with "[" and end with ]. If multiple urls are there, separate it with ":". The "GoogleContentKeywords.parseTopUrl()" function parse it. it is written in java.
The location of the Java source code is picture below.
By parsing the csv file and import the data into database table. You can analyze the data with datatable viewer.
In the "index.html" next section defines the column of datatable to view the Content Keywords data.
This table has 4 columns. If you want to add new column when you customize this application, please add here at first.
By this script, specify the data below.
- Columns to sort and default sort order
- Ajax url to get Content Keyrowds data
- Additional parameters to query the data from the hidden input in the form in this html
The "aaSorting" is the default order of sorting data. In this page, it sorts with the path.
The "aoColumns" specify the available sorting. in this setting, we can sort this table with Host, Path and coount.
The Datatable get data form "/admin/content/serverData.alns". The source code is below.
This source code is
- Get limit and offset to query from the parameter
- Get order and direction from the parameter
- Get fulltext search string and make it
- Select data
- Select data count
- Make json data
In this program, it uses "ADJUST_WHERE". It is one of the Alinous-Core programming language's function. About the function, please take a look at Connect SQL and HTML.