old_contents: # file findingaids/urls.py
  #
  #   Copyright 2012 Emory University Library
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   distributed under the License is distributed on an "AS IS" BASIS,
  #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #   See the License for the specific language governing permissions and
  #   limitations under the License.
  
  from django.conf.urls.defaults import *
  from django.contrib import admin
  from django.views.generic.simple import direct_to_template
  from django.views.generic.base import RedirectView
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  from findingaids.fa.sitemaps import FindingAidSitemap
  from findingaids.content.sitemaps import ContentSitemap
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
     url(r'^robots\.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'}),
     # embedded url on non-library Emory sites that gets picked up by search bots
     url(r'^-Libraries-EmoryFindingAids$', RedirectView.as_view(url='/', permanent=True)),
  
     url(r'^db-admin/', include(admin.site.urls)),
     url(r'^admin/', include('findingaids.fa_admin.urls', namespace='fa-admin')),
     url(r'^$', 'findingaids.content.views.site_index', name='site-index'),
     url(r'^content/', include('findingaids.content.urls', namespace='content')),
     # everything else should fall through to the main app
     url(r'^', include('findingaids.fa.urls', namespace='fa')),
  )
  
  # xml sitemaps for search-engine discovery
  sitemaps = {
      'findingaids': FindingAidSitemap,
      'content': ContentSitemap
  }
  urlpatterns += patterns('django.contrib.sitemaps.views',
      (r'^sitemap\.xml$', 'index', {'sitemaps': sitemaps}),
      (r'^sitemap-(?P<section>.+)\.xml$', 'sitemap', {'sitemaps': sitemaps}),
  )
  
  # enable serving static files for development (DEBUG mode only)
  urlpatterns += staticfiles_urlpatterns()
  
  
new_contents: # file findingaids/urls.py
  #
  #   Copyright 2012 Emory University Library
  #
  #   Licensed under the Apache License, Version 2.0 (the "License");
  #   you may not use this file except in compliance with the License.
  #   You may obtain a copy of the License at
  #
  #       http://www.apache.org/licenses/LICENSE-2.0
  #
  #   Unless required by applicable law or agreed to in writing, software
  #   distributed under the License is distributed on an "AS IS" BASIS,
  #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #   See the License for the specific language governing permissions and
  #   limitations under the License.
  
  from django.conf.urls.defaults import *
  from django.contrib import admin
  from django.contrib.sitemaps import views as sitemaps_views
  from django.views.generic.simple import direct_to_template
  from django.views.generic.base import RedirectView
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  from findingaids.fa.sitemaps import FINDINGAID_SITEMAPS
  from findingaids.content.sitemaps import ContentSitemap
  
  admin.autodiscover()
  
  urlpatterns = patterns(
      '',
      url(r'^robots\.txt$', direct_to_template, {
          'template': 'robots.txt', 'mimetype': 'text/plain'
          }),
      # embedded url on non-library Emory sites that gets picked up by search bots
      url(r'^-Libraries-EmoryFindingAids$',
          RedirectView.as_view(url='/', permanent=True)),
  
      url(r'^db-admin/', include(admin.site.urls)),
      url(r'^admin/', include('findingaids.fa_admin.urls',
                              namespace='fa-admin')),
      url(r'^$', 'findingaids.content.views.site_index',
          name='site-index'),
      url(r'^content/', include('findingaids.content.urls',
                                namespace='content')),
      # everything else should fall through to the main app
      url(r'^', include('findingaids.fa.urls', namespace='fa')),
  )
  
  # xml sitemaps for search-engine discovery
  sitemap_cfg = {'content': ContentSitemap}
  sitemap_cfg.update(FINDINGAID_SITEMAPS)
  
  urlpatterns += patterns(
      '',
      (r'^sitemap\.xml$', sitemaps_views.index, {'sitemaps': sitemap_cfg}),
      (r'^sitemap-(?P<section>.+)\.xml$', sitemaps_views.sitemap,
       {'sitemaps': sitemap_cfg}),
  )
  
  # enable serving static files for development (DEBUG mode only)
  urlpatterns += staticfiles_urlpatterns()
  
subject: add sitemaps for each variant of findingaid or partial findingaid url; tweak relative priorities [#45319013]