JILS-23: Google Sitemap Generation



Issue Information

Issue Type: New Feature
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: Jira Issue Listing Script (JILS)
Resolution: Done (2016-04-29 15:03:09)
Affects Version: 0.01b,
Target version: 0.01b,

Created: 2014-11-08 17:36:52
Time Spent Working


Description
As the script is now being used to generate a public static HTML mirror, it'd probably be helpful to have the script also generate a XML sitemap.

Issues that are closed should be marked as being updated infrequently, whilst those that are open should be marked as being updated more frequently.

The update frequency for projects can probably be determined by whether there are open issues.

Need to look into whether relative paths can be used in Sitemaps as the mirror is in a subdirectory


Toggle State Changes

Activity


btasker changed status from 'Open' to 'In Progress'
Google requires the full URL, so will need to implement a method for the requesting client to specify the base domain etc. See https://support.google.com/webmasters/answer/183668?hl=en for Google's Sitemap documentation
For the purposes of implementation and testing, an additional request header should be included

X-SITEMAP-BASE: https://www.bentasker.co.uk


An additional element has been added to the SEF functions, so links to the sitemap can now be generated by calling

qs2sef('action=sitemap')



Repo: Jira-Issue-Listing
Commit: 584ff22306246230f9895426d2627090c2b5470d
Author: Ben Tasker <github@<Domain Hidden>>

Date: Mon Nov 10 23:54:52 2014 +0000
Commit Message: Added XML sitemap containing project indexes. See JILS-23



Added (+)
-------
sitemap.php


Modified (-)(+)
-------
index.php
utils.class.php




Webhook User-Agent

GitHub-Hookshot/0687198


View Commit


Repo: Jira-Issue-Listing
Commit: 3a55398c664928e746d47953008df77281a43b56
Author: Ben Tasker <github@<Domain Hidden>>

Date: Mon Nov 10 23:58:12 2014 +0000
Commit Message: Removed leading whitespace and added link to sitemap to homepage. See JILS-23



Modified (-)(+)
-------
projects.php
sitemap.php




Webhook User-Agent

GitHub-Hookshot/0687198


View Commit

The basic sitemap works/validates (http://www.validome.org/google/validate?url=http://projects.bentasker.co.uk/jira_projects/sitemap.xml&lang=en&googleTyp=SITEMAP) just needs updating to include additional items, such as project issues
Have added the issue pages to the sitemap. If an issue has no resolution date set, it's changefreq will be set to daily. If resolved it's set to yearly.
btasker changed status from 'In Progress' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'

Repo: Jira-Issue-Listing
Commit: 2c897b352d987905bbe8189fc2163b1049523e3f
Author: Ben Tasker <github@<Domain Hidden>>

Date: Tue Nov 11 00:05:19 2014 +0000
Commit Message: Removed insertion of additional /. See JILS-23



Modified (-)(+)
-------
sitemap.php




Webhook User-Agent

GitHub-Hookshot/0687198


View Commit


Repo: Jira-Issue-Listing
Commit: 825ae51cfdc5be818394a5a8a9fb9dcfce7e5b8c
Author: Ben Tasker <github@<Domain Hidden>>

Date: Tue Nov 11 00:25:16 2014 +0000
Commit Message: Added issue pages to sitemap. See JILS-23



Modified (-)(+)
-------
sitemap.php




Webhook User-Agent

GitHub-Hookshot/0687198


View Commit

Re-opening to assign to a version
btasker removed 'Done' from resolution
btasker changed status from 'Closed' to 'Reopened'
Assigning to v0.01b
btasker added '0.01b' to Version
btasker added '0.01b' to Fix Version
Re-Closing
btasker changed status from 'Reopened' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'