Difference between revisions of "SUNScholar/Repository Website Metrics"
Jump to navigation
Jump to search
Google
m (→Robots) |
m (→Robots) |
||
| Line 17: | Line 17: | ||
To enable, create a "robots.txt" file in the modules folder for the XMLUI. | To enable, create a "robots.txt" file in the modules folder for the XMLUI. | ||
| − | nano /home/dspace/source/dspace/modules/src/main/webapp/static/robots.txt | + | |
| + | mdir /home/dspace/source/dspace/modules/xmlui/src/main/webapp/static | ||
| + | |||
| + | nano /home/dspace/source/dspace/modules/xmlui/src/main/webapp/static/robots.txt | ||
| + | Copy and paste the contents of the github file mentioned above and modify as required. Then rebuild DSpace to activate. | ||
| + | |||
| + | {{NANO}} | ||
==HTML Head Tag Metadata== | ==HTML Head Tag Metadata== | ||
Revision as of 11:39, 9 January 2015
Back to Web Analytics
Webometrics
Harvesters
Robots
Check the following.
- https://github.com/DSpace/DSpace/pull/498
- https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/static/robots.txt
For an example visit: http://scholar.sun.ac.za/robots.txt.
To enable, create a "robots.txt" file in the modules folder for the XMLUI.
mdir /home/dspace/source/dspace/modules/xmlui/src/main/webapp/static
nano /home/dspace/source/dspace/modules/xmlui/src/main/webapp/static/robots.txt
Copy and paste the contents of the github file mentioned above and modify as required. Then rebuild DSpace to activate.
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
HTML Head Tag Metadata
If you have heavily customized your metadata fields away from Dublin Core, you can modify the crosswalk that generates these elements by modifying:
[dspace]/config/crosswalks/xhtml-head-item.properties
