Initial support for microsummaries via a service and integration into the bookmarks UI.
bug=334471 r=brettw a=ben for the branch
This commit is contained in:
@@ -540,6 +540,46 @@
|
||||
#endif
|
||||
</toolbarbutton>
|
||||
</rule>
|
||||
<!-- A rule to match bookmarks with microsummary generated titles.
|
||||
- We have to use the extended template syntax to specify the rule
|
||||
- because the simplified syntax doesn't permit conditions that test
|
||||
- for the mere presence of a property, and microsummarized bookmarks
|
||||
- are identified by the mere presence of the GeneratedTitle property.
|
||||
-->
|
||||
<rule>
|
||||
<conditions>
|
||||
<content uri="?start" tag="hbox"/>
|
||||
<member container="?start" child="?bookmark"/>
|
||||
<triple subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#GeneratedTitle"
|
||||
object="?GeneratedTitle"/>
|
||||
</conditions>
|
||||
<bindings>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/WEB-rdf#status"
|
||||
object="?status"/>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#Bookmark"
|
||||
object="?xBookmark"/>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#Icon"
|
||||
object="?Icon"/>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#URL"
|
||||
object="?URL"/>
|
||||
</bindings>
|
||||
<action>
|
||||
<toolbarbutton class="bookmark-item-microsummarized bookmark-item"
|
||||
uri="?bookmark"
|
||||
editable="true"
|
||||
status="?status"
|
||||
rdf:type="?xBookmark"
|
||||
image="?Icon"
|
||||
statustext="?URL"
|
||||
tooltip="btTooltip"
|
||||
label="?GeneratedTitle"/>
|
||||
</action>
|
||||
</rule>
|
||||
<rule parent="hbox">
|
||||
<toolbarbutton class="bookmark-item" uri="rdf:*" editable="true"
|
||||
status="rdf:http://home.netscape.com/WEB-rdf#status"
|
||||
@@ -581,6 +621,42 @@
|
||||
</menu>
|
||||
</menupopup>
|
||||
</rule>
|
||||
<!-- A rule to match bookmarks with microsummary generated titles.
|
||||
- We have to use the extended template syntax to specify the rule
|
||||
- because the simplified syntax doesn't permit conditions that test
|
||||
- for the mere presence of a property, and microsummarized bookmarks
|
||||
- are identified by the mere presence of the GeneratedTitle property.
|
||||
-->
|
||||
<rule>
|
||||
<conditions>
|
||||
<content uri="?start"/>
|
||||
<member container="?start" child="?bookmark"/>
|
||||
<triple subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#GeneratedTitle"
|
||||
object="?GeneratedTitle"/>
|
||||
</conditions>
|
||||
<bindings>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/WEB-rdf#status"
|
||||
object="?status"/>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#Icon"
|
||||
object="?Icon"/>
|
||||
<binding subject="?bookmark"
|
||||
predicate="http://home.netscape.com/NC-rdf#URL"
|
||||
object="?URL"/>
|
||||
</bindings>
|
||||
<action>
|
||||
<menupopup>
|
||||
<menuitem class="menuitem-iconic bookmark-item"
|
||||
uri="?bookmark"
|
||||
label="?GeneratedTitle"
|
||||
image="?Icon"
|
||||
status="?status"
|
||||
statustext="?URL"/>
|
||||
</menupopup>
|
||||
</action>
|
||||
</rule>
|
||||
<rule>
|
||||
<menupopup>
|
||||
<menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"
|
||||
|
||||
Reference in New Issue
Block a user